CFx SDK Documentation
2020SP3
|
#include <SiSpatialIndex.h>
Public Types | |
enum | CreationFlags { kSiNoFlags = 0, kSiPlanar = (1 << 0), kSiModifyMtAware = (1 << 1), kSiAccessMtAware = (1 << 2), kSiFullMtAware = (kSiModifyMtAware | kSiAccessMtAware) } |
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdSiSpatialIndex) | |
virtual void | insert (OdSiEntity *entity)=0 |
virtual bool | remove (OdSiEntity *entity)=0 |
virtual void | query (const OdSiShape &shape, OdSiVisitor &visitor) const =0 |
virtual void | clear ()=0 |
virtual void | setMaxTreeDepth (unsigned char maxDepth)=0 |
virtual void | setMaxNodeSize (unsigned char maxCount)=0 |
virtual bool | extents (OdGeExtents3d &extents) const =0 |
virtual unsigned | maxTreeDepth () const =0 |
virtual unsigned | maxNodeSize () const =0 |
virtual const OdGeTol & | tolerance () const =0 |
virtual void | setTolerance (const OdGeTol &tol)=0 |
Public Member Functions inherited from OdRxObject | |
ODRX_HEAP_OPERATORS () | |
OdRxObject () | |
virtual | ~OdRxObject () |
virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
virtual OdRxObject * | x (const OdRxClass *pClass) const |
virtual OdRxClass * | isA () const |
virtual void | addRef ()=0 |
virtual void | release ()=0 |
virtual long | numRefs () const |
bool | isKindOf (const OdRxClass *pClass) const |
virtual OdRxObjectPtr | clone () const |
virtual void | copyFrom (const OdRxObject *pSource) |
virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
virtual bool | isEqualTo (const OdRxObject *pOther) const |
Static Public Member Functions | |
static OdSiSpatialIndexPtr | createObject (OdUInt32 flags, unsigned int initialNumEntity, unsigned int maxDepth=30, unsigned int maxCount=20, double eps=1e-10) |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
This class represents SpatialIndex objects. Corresponding C++ library: SpatialIndex <group OdSi_Classes>
Definition at line 117 of file SiSpatialIndex.h.
Spatial Index creation flags.
Enumerator | |
---|---|
kSiNoFlags | |
kSiPlanar | |
kSiModifyMtAware | |
kSiAccessMtAware | |
kSiFullMtAware |
Definition at line 125 of file SiSpatialIndex.h.
|
pure virtual |
Clears this SpatialIndex object.
|
static |
Creates a SpatialIndex object with the specified parameters.
flags | [in] Specifies set of flags for Spatial Index creation. |
maxDepth | [in] Maximum depth of the Spatial Index. |
maxCount | [in] Maximum number of nodes in the SpatialIndex. |
eps | [in] Relative tolerance (equalVector). |
|
pure virtual |
Returns the extents of this SpatialIndex object.
extents | [out] Receives the extents. |
|
pure virtual |
Inserts the specified SiEntity object into the this SpatialIndex object.
entity | [in] Pointer to the OdSiEntity to insert. |
|
pure virtual |
Returns the maxiumum number of nodes in this SpatialIndex object.
|
pure virtual |
Returns the maximum depth of this SpatialIndex object.
OdSiSpatialIndex::ODRX_DECLARE_MEMBERS | ( | OdSiSpatialIndex | ) |
|
pure virtual |
shape | [in] Any OdSiShape object. |
visitor | [in] Any OdSiVisitor object. |
|
pure virtual |
Removes the specified SiEntity object into the this SpatialIndex object.
entity | [in] Pointer to the OdSiEntity to remove. |
|
pure virtual |
Sets the maxiumum number of nodes in this SpatialIndex object.
maxCount | [in] Maximum number of nodes. |
|
pure virtual |
Sets the maximum depth of this SpatialIndex object.
maxDepth | [in] Maximum depth. |
|
pure virtual |
Returns the tolerance of this SpatialIndex object.