vtFeatureSetPolygon Class Reference

Inheritance diagram for vtFeatureSetPolygon:

Inheritance graph
[legend]

List of all members.

Public Member Functions

unsigned int GetNumEntities () const
void SetNumGeometries (int iNum)
void Reserve (int iNum)
bool ComputeExtent (DRECT &rect) const
void Offset (const DPoint2 &p, bool bSelectedOnly=false)
bool TransformCoords (OCT *pTransform, bool progress_callback(int)=0)
bool AppendGeometryFrom (vtFeatureSet *pFromSet)
int AddPolygon (const DPolygon2 &poly)
void SetPolygon (unsigned int num, const DPolygon2 &poly)
const DPolygon2GetPolygon (unsigned int num) const
DPolygon2GetPolygon (unsigned int num)
int FindSimplePolygon (const DPoint2 &p) const
int FindPolygon (const DPoint2 &p) const
void CreateIndex (int iSize)
void FreeIndex ()
virtual bool IsInsideRect (int iElem, const DRECT &rect)
virtual void CopyGeometry (unsigned int from, unsigned int to)
virtual void SaveGeomToSHP (SHPHandle hSHP, bool progress_callback(int)=0) const
virtual void LoadGeomFromSHP (SHPHandle hSHP, bool progress_callback(int)=0)

Protected Attributes

DPolyArray m_Poly
SpatialIndex * m_pIndex


Detailed Description

A set of polygon features. Each polygon is a DPolygon2 object, which consists of a number of rings: one external ring, and any number of internal rings (holes).

Member Function Documentation

int vtFeatureSetPolygon::FindPolygon ( const DPoint2 p  )  const

Find the first polygon in this feature set which contains the given point.

The index of the polygon is return, or -1 if no polygon was found.

int vtFeatureSetPolygon::FindSimplePolygon ( const DPoint2 p  )  const

Find the first polygon in this feature set which contains the given point. This method makes the simplification assumption that none of the polygons have holes.

The index of the polygon is return, or -1 if no polygon was found.

void vtFeatureSetPolygon::Reserve ( int  iNum  )  [virtual]

If you know how many entities you will be adding to this FeatureSet, is it more efficient to reserve space for that many.

Implements vtFeatureSet.


Generated on Wed Dec 24 13:08:41 2008 for vtdata library by  doxygen 1.5.7.1