dw::core::Region Class Reference

#include <types.hh>

List of all members.

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. The number of rectangles is forced to be less than 16 by combining excessive rectangles.
lout::container::typed::Iterator
< Rectangle
rectangles ()

Private Attributes

lout::container::typed::List
< Rectangle > * 
rectangleList


Detailed Description

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 ().

Constructor & Destructor Documentation

dw::core::Region::Region (  ) 

References rectangleList.

dw::core::Region::~Region (  ) 

References rectangleList.


Member Function Documentation

void dw::core::Region::addRectangle ( Rectangle r  ) 

void dw::core::Region::clear (  )  [inline]

lout::container::typed::Iterator<Rectangle> dw::core::Region::rectangles (  )  [inline]


Member Data Documentation


The documentation for this class was generated from the following files:

Generated on Wed Sep 7 02:00:37 2011 for Dillo by  doxygen 1.5.9