![]() | InDesign SDK 20.5 |
#include <IRectRegion.h>

Public Member Functions | |
| virtual void | SetOrigin (const PMRect &rOrigin)=0 |
| virtual const PMRect & | GetOrigin () const =0 |
| virtual void | Subtract (const PMRect &rRect, PMReal nMinHeight)=0 |
| virtual void | Invert ()=0 |
| virtual uint32 | Compress ()=0 |
| virtual const PMRectCollection & | GetRectCollection () const =0 |
| virtual void | CopyRectCollection (PMRectCollection *pRects) const =0 |
| virtual bool16 | IsModified () const =0 |
| virtual bool16 | IsInverted () const =0 |
| virtual bool16 | IsEmpty () const =0 |
| virtual bool16 | IsRectangular () const =0 |
| virtual void | Sort (PMRect::PointIndex nIndex, bool16 bXFirst)=0 |
Public Member Functions inherited from grRefCountedObj | |
| grRefCountedObj () | |
| virtual | ~grRefCountedObj ()=0 |
| virtual void | AddRef () const |
| virtual void | Release () const |
Additional Inherited Members | |
Protected Attributes inherited from grRefCountedObj | |
| int32 | fRefCount |
IRectRegion has an origin PMRect from which you can substract other PMRects. The area that is left after substraction is stored in a PMRectCollection. You can also invert a IRectRegion so the rects in the PMRectCollections are treated as holes to origin. IRectRegion is used in the overlap management. It is designed to replace the old BandMap.
BP 8/2/96: Here are two examples that describe Subtract with a minimum height. You have always a choice how you divide an origin rect. If you specify a minimum height, Subtract() will look for a solution that avoids rects with a lower height. (Notice that we keep the rects, that are too small) The numbers shows the order of rects that are calculated by Subtract().
This sophisticated class is used by the SpreadOverlapManager and the StandOffs for evaluation of text 'tiles'. Subtract and Compress have to be very fast.
| pure virtual |
Optimizes and tries to reduce the number of rects and returns the number of deleted rects.
| pure virtual |
Copies the PMRectCollection with the rectangles that are left into pRects;
| pRects | OUT. The rectangle to be copied to. |
| pure virtual |
Returns the origin rectangle of the rect region.
| pure virtual |
Returns the PMRectCollection with the rectangles that are left.
| pure virtual |
Inverts the rect region in such a way that holes become rects and rects become holes.
| pure virtual |
Returns whether the rect region is empty or not.
| pure virtual |
Returns whether the rect region has been inverted or not.
| pure virtual |
Returns whether the rect region has been modified or not.
| pure virtual |
Returns whether the rect region is rectangular or not.
| pure virtual |
Sets the origin of the rect region.
| rOrigin | IN. Origin rectangle. |
| pure virtual |
Sorts the rect region.
| nIndex | IN. Specifies the point index for sorting. |
| bXFirst | IN. If bXFirst is true it will be sorted by PMPoint::X(). If bXFirst is false it will be sorted by PMPoint::Y(). |