
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 DPolygon2 & | GetPolygon (unsigned int num) const |
| DPolygon2 & | GetPolygon (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 |
|
|
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. |
|
|
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. |
|
|
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. |
1.4.5