#include <dime/sections/EntitiesSection.h>
Inheritance diagram for dimeEntitiesSection::
Public Methods | |
dimeEntitiesSection (dimeMemHandler *const memhandler=NULL) | |
virtual | ~dimeEntitiesSection () |
virtual const char * | getSectionName () const |
virtual dimeSection * | copy (dimeModel *const model) const |
virtual bool | read (dimeInput *const file) |
virtual bool | write (dimeOutput *const file) |
virtual int | typeId () const |
virtual int | countRecords () const |
void | fixReferences (dimeModel *const model) |
int | getNumEntities () const |
dimeEntity * | getEntity (const int idx) |
void | removeEntity (const int idx) |
void | insertEntity (dimeEntity *const entity, const int idx=-1) |
Friends | |
class | dimeModel |
|
Constructor. |
|
Destructor. |
|
Returns the number of records in this section. Reimplemented from dimeSection. |
|
This function should be called after loading has ended, and will find all forward BLOCK references. |
|
Returns the entity at index idx. |
|
Returns the number of entities in this section. Be aware that a POLYLINE entity with attached VERTEX entities will count as a single entity. |
|
Inserts a new entity at index idx. If idx is negative, the entity will be inserted at the end of the list of entities. Entities should never be allocated on the stack. Use the new and delete operators to create/destroy entities. |
|
Removes (and deletes if no memhandler is used) the entity at index idx. |
|
Must be implemented by all subclasses, and should return an unique id for that class. Reimplemented from dimeSection. |