Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

C2DHoledPolyArc Class Reference

class which represents a curved polygon with holes. More...

#include <2DHoledPolyArc.h>

Inheritance diagram for C2DHoledPolyArc:

C2DHoledPolyBase C2DBase List of all members.

Public Member Functions

 C2DHoledPolyArc (void)
 Constructor.
 C2DHoledPolyArc (const C2DHoledPolyBase &Other)
 Constructor.
 C2DHoledPolyArc (const C2DHoledPolyArc &Other)
 Constructor.
 ~C2DHoledPolyArc (void)
 Destructor.
void SetRim (const C2DPolyArc &Polygon)
 Sets the rim to a copy of the polygon given.
void AddHole (const C2DPolyArc &Polygon)
 Adds a copy of the polygon given.
void SetHole (const C2DPolyArc &Polygon, unsigned short usIndex)
 Sets the holes to be a copy of the polygon given.
void SetRimDirect (C2DPolyArc *Polygon)
 Sets the rim to be the polygon provided. Will delete on destruction.
void AddHoleDirect (C2DPolyArc *Polygon)
 Adds the hole provided. Will delete on destruction.
void SetHoleDirect (C2DPolyArc *Polygon, unsigned short usIndex)
 Sets the hole to be the polygon provided. Will delete on destruction. Deletes old one.
void RemoveHole (unsigned short usIndex)
 Removes the hole at the index given.
C2DPolyArc * GetRim (void)
 Returns the rim.
const C2DPolyArc * GetRim (void) const
 Returns the rim.
C2DPolyArc * ExtractRim (void)
 Extracts the rim. Deletion of the rim needs to be managed elsewhere.
C2DPolyArc * GetHole (unsigned short usIndex)
 Returns a pointer to the hole specified.
const C2DPolyArc * GetHole (unsigned short usIndex) const
 Returns a pointer to the hole specified.
C2DPolyArc * ExtractHole (unsigned short usIndex)
 Extracts the hole. Deletion of the hole needs to be managed elsewhere.
double GetArea (void) const
 Returns the area.
C2DPoint GetCentroid (void) const
 Returns the centroid.
void GetOverlaps (const C2DHoledPolyArc &Other, C2DHoledPolyArcSet &HoledPolys, CGrid::eDegenerateHandling eDegen=CGrid::None) const
 Returns the overlaps between this and the other complex polygon.
void GetOverlaps (const C2DHoledPolyArc &Other, C2DHoledPolyBaseSet &HoledPolys, CGrid::eDegenerateHandling eDegen=CGrid::None) const
 Returns the overlaps between this and the other complex polygon.
void GetNonOverlaps (const C2DHoledPolyArc &Other, C2DHoledPolyArcSet &HoledPolys, CGrid::eDegenerateHandling eDegen=CGrid::None) const
 Returns the difference between this and the other polygon.
void GetNonOverlaps (const C2DHoledPolyArc &Other, C2DHoledPolyBaseSet &HoledPolys, CGrid::eDegenerateHandling eDegen=CGrid::None) const
 Returns the difference between this and the other polygon.
void GetUnion (const C2DHoledPolyArc &Other, C2DHoledPolyArcSet &HoledPolys, CGrid::eDegenerateHandling eDegen=CGrid::None) const
 Returns the union of this and the other.
void GetUnion (const C2DHoledPolyArc &Other, C2DHoledPolyBaseSet &HoledPolys, CGrid::eDegenerateHandling eDegen=CGrid::None) const
 Returns the union of this and the other.

Detailed Description

class which represents a curved polygon with holes.

Class which represents a curved polygon with holes. Simply consists of a set of simple curved polygons (without holes) representing the rim and the holes.

---------------------------------------------------------------------------


Constructor & Destructor Documentation

C2DHoledPolyArc::C2DHoledPolyArc (  void   ) 
 

Constructor.

--------------------------------------------------------------------------
C2DHoledPolyArc::C2DHoledPolyArc

---------------------------------------------------------------------------

C2DHoledPolyArc::C2DHoledPolyArc (  const C2DHoledPolyBase &  Other  ) 
 

Constructor.

--------------------------------------------------------------------------
C2DHoledPolyArc::C2DHoledPolyArc

---------------------------------------------------------------------------

C2DHoledPolyArc::C2DHoledPolyArc (  const C2DHoledPolyArc &  Other  ) 
 

Constructor.

--------------------------------------------------------------------------
C2DHoledPolyArc::C2DHoledPolyArc

---------------------------------------------------------------------------

C2DHoledPolyArc::~C2DHoledPolyArc (  void   ) 
 

Destructor.

--------------------------------------------------------------------------
C2DHoledPolyArc::C2DHoledPolyArc

---------------------------------------------------------------------------


Member Function Documentation

void C2DHoledPolyArc::AddHole (  const C2DPolyArc &  Polygon  ) 
 

Adds a copy of the polygon given.

--------------------------------------------------------------------------
C2DHoledPolyArc::SetRim

---------------------------------------------------------------------------

void C2DHoledPolyArc::AddHoleDirect (  C2DPolyArc *  Polygon  ) 
 

Adds the hole provided. Will delete on destruction.

--------------------------------------------------------------------------
C2DHoledPolyArc::AddHoleDirect

---------------------------------------------------------------------------

C2DPolyArc * C2DHoledPolyArc::ExtractHole (  unsigned short  usIndex  ) 
 

Extracts the hole. Deletion of the hole needs to be managed elsewhere.

--------------------------------------------------------------------------
C2DHoledPolyArc::ExtractRim

---------------------------------------------------------------------------

C2DPolyArc * C2DHoledPolyArc::ExtractRim (  void   ) 
 

Extracts the rim. Deletion of the rim needs to be managed elsewhere.

--------------------------------------------------------------------------
C2DHoledPolyArc::ExtractRim

---------------------------------------------------------------------------

Reimplemented from C2DHoledPolyBase.

double C2DHoledPolyArc::GetArea (  void   )  const
 

Returns the area.

--------------------------------------------------------------------------
C2DHoledPolyArc::GetArea

---------------------------------------------------------------------------

C2DPoint C2DHoledPolyArc::GetCentroid (  void   )  const
 

Returns the centroid.

--------------------------------------------------------------------------
C2DHoledPolyArc::GetCentroid

---------------------------------------------------------------------------

const C2DPolyArc * C2DHoledPolyArc::GetHole (  unsigned short  usIndex  )  const
 

Returns a pointer to the hole specified.

--------------------------------------------------------------------------
C2DHoledPolyArc::GetHole

---------------------------------------------------------------------------

C2DPolyArc * C2DHoledPolyArc::GetHole (  unsigned short  usIndex  ) 
 

Returns a pointer to the hole specified.

--------------------------------------------------------------------------
C2DHoledPolyArc::GetHole

---------------------------------------------------------------------------

void C2DHoledPolyArc::GetNonOverlaps (  const C2DHoledPolyArc &  Other,
C2DHoledPolyBaseSet &  HoledPolys,
CGrid::eDegenerateHandling  eDegen = CGrid::None
)  const
 

Returns the difference between this and the other polygon.

--------------------------------------------------------------------------
C2DHoledPolygon::GetNonOverlaps

---------------------------------------------------------------------------

void C2DHoledPolyArc::GetNonOverlaps (  const C2DHoledPolyArc &  Other,
C2DHoledPolyArcSet &  HoledPolys,
CGrid::eDegenerateHandling  eDegen = CGrid::None
)  const
 

Returns the difference between this and the other polygon.

--------------------------------------------------------------------------
C2DHoledPolygon::GetNonOverlaps

---------------------------------------------------------------------------

void C2DHoledPolyArc::GetOverlaps (  const C2DHoledPolyArc &  Other,
C2DHoledPolyBaseSet &  HoledPolys,
CGrid::eDegenerateHandling  eDegen = CGrid::None
)  const
 

Returns the overlaps between this and the other complex polygon.

--------------------------------------------------------------------------
C2DHoledPolygon::GetOverlaps

---------------------------------------------------------------------------

void C2DHoledPolyArc::GetOverlaps (  const C2DHoledPolyArc &  Other,
C2DHoledPolyArcSet &  HoledPolys,
CGrid::eDegenerateHandling  eDegen = CGrid::None
)  const
 

Returns the overlaps between this and the other complex polygon.

--------------------------------------------------------------------------
C2DHoledPolygon::GetOverlaps

---------------------------------------------------------------------------

const C2DPolyArc * C2DHoledPolyArc::GetRim (  void   )  const
 

Returns the rim.

--------------------------------------------------------------------------
C2DHoledPolyArc::GetRim

---------------------------------------------------------------------------

Reimplemented from C2DHoledPolyBase.

C2DPolyArc * C2DHoledPolyArc::GetRim (  void   ) 
 

Returns the rim.

--------------------------------------------------------------------------
C2DHoledPolyArc::GetRim

---------------------------------------------------------------------------

Reimplemented from C2DHoledPolyBase.

void C2DHoledPolyArc::GetUnion (  const C2DHoledPolyArc &  Other,
C2DHoledPolyBaseSet &  HoledPolys,
CGrid::eDegenerateHandling  eDegen = CGrid::None
)  const
 

Returns the union of this and the other.

--------------------------------------------------------------------------
C2DHoledPolygon::GetUnion

---------------------------------------------------------------------------

void C2DHoledPolyArc::GetUnion (  const C2DHoledPolyArc &  Other,
C2DHoledPolyArcSet &  HoledPolys,
CGrid::eDegenerateHandling  eDegen = CGrid::None
)  const
 

Returns the union of this and the other.

--------------------------------------------------------------------------
C2DHoledPolygon::GetUnion

---------------------------------------------------------------------------

void C2DHoledPolyArc::RemoveHole (  unsigned short  usIndex  ) 
 

Removes the hole at the index given.

--------------------------------------------------------------------------
C2DHoledPolyArc::RemoveHole

---------------------------------------------------------------------------

void C2DHoledPolyArc::SetHole (  const C2DPolyArc &  Polygon,
unsigned short  usIndex
) 
 

Sets the holes to be a copy of the polygon given.

--------------------------------------------------------------------------
C2DHoledPolyArc::SetHole

---------------------------------------------------------------------------

void C2DHoledPolyArc::SetHoleDirect (  C2DPolyArc *  Polygon,
unsigned short  usIndex
) 
 

Sets the hole to be the polygon provided. Will delete on destruction. Deletes old one.

--------------------------------------------------------------------------
C2DHoledPolyArc::SetHoleDirect

---------------------------------------------------------------------------

void C2DHoledPolyArc::SetRim (  const C2DPolyArc &  Polygon  ) 
 

Sets the rim to a copy of the polygon given.

--------------------------------------------------------------------------
C2DHoledPolyArc::SetRim

---------------------------------------------------------------------------

void C2DHoledPolyArc::SetRimDirect (  C2DPolyArc *  Polygon  ) 
 

Sets the rim to be the polygon provided. Will delete on destruction.

--------------------------------------------------------------------------
C2DHoledPolyArc::SetRimDirect

---------------------------------------------------------------------------


The documentation for this class was generated from the following files:
Generated on Mon Apr 21 11:43:51 2008 for GeoLib by  doxygen 1.4.4