A class representing a region of the graphics system drawing plane.
![]() | PRegion () Create new region object. |
![]() | PRegion ( const PRegion & rgn ) Create a copy of the specified region. |
![]() | operator= ( const PRegion & rgn ) Assign one region to another. |
![]() | ~PRegion () Destroy the region. |
![]() | Compare ( const PObject & obj ) const Determine if the two regions are identical. |
![]() | Add ( const PRect & rect ) Add the specified area of the drawing plane to the region. |
![]() | ContainsPoint ( const PPoint & pt ) const Determine if the point is contined within the regions space. |
![]() | ContainsRect (const PRect & rect) const Determine if the rectangle is wholly contiained within the region. |
![]() | OverlapsRect (const PRect & rect) const Determine if any part of the rectangle overlapps any part of the region. |
![]() | IsEmpty () const Determine if the region is empty. |
![]() | Offset ( PORDINATE dx, PORDINATE dy ) Move the region the specified delta amount. |
![]() | GetBounds () const Calculate the smallest enclosing bounding box around the region. |
![]() | Intersection (const PRegion & rgn) const Calculate the region that is the intersection of the object and the specified region. |
![]() | Union (const PRegion & rgn) const Calcaulte the region that is the union of the object and the specified region. |
![]() | Overrides from class PObject |
![]() | New functions for class |
Run Time Type functions
Comparison functions
I/O functions
Miscellaneous functions
A class representing a region of the graphics system drawing plane. This is an arbitrary enclosed shape. It is often made up from a collection of rectangles.
PRegion( const PRegion & rgn )
PRegion& operator=( const PRegion & rgn )
virtual ~PRegion()
Overrides from class PObject
virtual Comparison Compare( const PObject & obj ) const
New functions for class
void Add( const PRect & rect )
BOOL ContainsPoint( const PPoint & pt ) const
BOOL ContainsRect(const PRect & rect) const
BOOL OverlapsRect(const PRect & rect) const
BOOL IsEmpty() const
void Offset( PORDINATE dx, PORDINATE dy )
dy - Amount ot move region vertically.PRect GetBounds() const
PRegion Intersection(const PRegion & rgn) const
PRegion Union(const PRegion & rgn) const
Alphabetic index HTML hierarchy of classes or Java