CFx SDK Documentation
2020SP3
|
#include <DbObjectIterator.h>
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdDbObjectIterator) | |
OdDbObjectIterator () | |
virtual void | start (bool atBeginning=true, bool skipErased=true)=0 |
virtual bool | done () const =0 |
virtual OdDbObjectId | objectId () const =0 |
virtual OdDbEntityPtr | entity (OdDb::OpenMode openMode=OdDb::kForRead, bool openErasedEntity=false)=0 |
virtual void | step (bool forward=true, bool skipErased=true)=0 |
virtual bool | seek (OdDbObjectId objectId)=0 |
virtual bool | seek (const OdDbEntity *pEntity)=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 |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
This class defines bidirectional Iterator objects that traverse entities contained in complex entities.
OdDbBlock Table Records in an OdDbDatabase instance.
Iterated entities OdDbBlockReference All OdDb2dPolyline Vertex OdDb3dPolyline Vertex OdDbPolyFaceMesh Vertex OdDbPolygonMesh Vertex
This class cannot directly instantiated, but must be instantiated with the iterator creation methods of the class to be iterated through.
<group OdDb_Classes>
Definition at line 65 of file DbObjectIterator.h.
|
inline |
Definition at line 70 of file DbObjectIterator.h.
|
pure virtual |
Returns true if and only if the traversal by this Iterator object is complete.
|
pure virtual |
Opens and returns the entity currently referenced by this Iterator object.
openMode | [in] Mode in which to open the entity. |
openErasedEntity | [in] If and only if true, erased records will be opened or retrieved. |
|
pure virtual |
Returns the Object ID of the entity currently referenced by this Iterator object.
OdDbObjectIterator::ODRX_DECLARE_MEMBERS | ( | OdDbObjectIterator | ) |
|
pure virtual |
Positions this Iterator object at the specified record.
pEntity | [in] Pointer to the entity. |
|
pure virtual |
Positions this Iterator object at the specified record.
objectId | [in] Object ID of the entity. |
|
pure virtual |
Sets this Iterator object to reference the entity that it would normally return first.
atBeginning | [in] True to start at the beginning, false to start at the end. |
skipErased | [in] If and only if true, erased records are skipped. |
Steps this Iterator object.
forward | [in] True to step forward, false to step backward. |
skipErased | [in] If and only if true, erased records are skipped. |