Dillo v3.1.1-119-g140d9ebd
|
Implementation for a point set. More...
#include <types.hh>
Public Member Functions | |
Region () | |
~Region () | |
void | clear () |
void | addRectangle (Rectangle *r) |
Add a rectangle to the region and combine it with existing rectangles if possible. | |
lout::container::typed::Iterator< Rectangle > | rectangles () |
Private Attributes | |
lout::container::typed::List< Rectangle > * | rectangleList |
Implementation for a point set.
Currently represented as a set of rectangles not containing each other. It is guaranteed that the rectangles returned by rectangles () cover all rectangles that were added with addRectangle ().
dw::core::Region::Region | ( | ) |
Definition at line 223 of file types.cc.
References rectangleList.
dw::core::Region::~Region | ( | ) |
Definition at line 228 of file types.cc.
References rectangleList.
void dw::core::Region::addRectangle | ( | Rectangle * | rPointer | ) |
Add a rectangle to the region and combine it with existing rectangles if possible.
The number of rectangles is forced to be less than 16 by combining excessive rectangles.
Definition at line 239 of file types.cc.
References lout::container::typed::Iterator< T >::getNext(), lout::container::typed::Iterator< T >::hasNext(), dw::core::Rectangle::height, lout::misc::max(), lout::misc::min(), rectangleList, dw::core::Rectangle::width, dw::core::Rectangle::x, and dw::core::Rectangle::y.
Referenced by dw::fltk::FltkViewBase::queueDraw().
|
inline |
Definition at line 149 of file types.hh.
References rectangleList.
Referenced by dw::fltk::FltkViewBase::draw().
|
inline |
Definition at line 153 of file types.hh.
References rectangleList.
Referenced by dw::fltk::FltkViewBase::draw().
|
private |
Definition at line 143 of file types.hh.
Referenced by addRectangle(), clear(), rectangles(), Region(), and ~Region().