36#include <dime/Basic.h>
37#include <dime/entities/Entity.h>
38#include <dime/util/Linear.h>
58 int getNumEntities()
const;
60 void insertEntity(
dimeEntity *
const entity,
const int idx = -1);
61 void removeEntity(
const int idx,
const bool deleteIt =
true);
64 const char *getName()
const;
65 void setName(
const char *
const name);
68 virtual bool getRecord(
const int groupcode,
70 const int index = 0)
const;
75 virtual int typeId()
const;
85 dimeCallback callback,
92 dimeArray <dimeEntity*> entities;
101 return this->basePoint;
113 return this->entities.
count();
119 assert(idx >= 0 && idx < this->entities.
count());
120 return this->entities[idx];
int count() const
Definition Array.h:256
virtual int typeId() const =0
The dimeBlock class handles a BLOCK entity.
Definition Block.h:46
dimeEntity * getEntity(const int idx)
Definition Block.h:117
int getNumEntities() const
Definition Block.h:111
const char * getName() const
Definition Block.h:124
void setName(const char *const name)
Definition Block.h:130
void setBasePoint(const dimeVec3f &v)
Definition Block.h:105
const dimeVec3f & getBasePoint() const
Definition Block.h:99
The dimeBlocksSection class handles a BLOCKS section.
Definition BlocksSection.h:40
The dimeEntitiesSection class handles an ENTITIES section.
Definition EntitiesSection.h:40
The dimeEntity class is the superclass of all entity classes.
Definition Entity.h:61
virtual bool getRecord(const int groupcode, dimeParam ¶m, const int index=0) const
Definition Entity.cpp:715
virtual bool write(dimeOutput *const out)
Definition Entity.cpp:271
virtual void fixReferences(dimeModel *const model)
Definition Entity.cpp:476
virtual bool read(dimeInput *const in)
Definition Entity.cpp:612
virtual const char * getEntityName() const =0
virtual int countRecords() const
Definition Entity.cpp:526
virtual bool handleRecord(const int groupcode, const dimeParam ¶m, dimeMemHandler *const memhandler)
Definition Entity.cpp:659
virtual dimeEntity * copy(dimeModel *const model) const =0
virtual bool traverse(const dimeState *const state, dimeCallback callback, void *userdata)
Definition Entity.cpp:541
The dimeInsert class handles an INSERT entity.
Definition Insert.h:43
The dimeMemHandler class is a special-purpose memory manager.
Definition MemHandler.h:39
The dimeModel class organizes a model.
Definition Model.h:55
The dimeOutput class handles writing of DXF and DXB files.
Definition Output.h:42
The dimeState class manages various state variables while the model is traversed.
Definition State.h:41
The dimeVec3f class is for containing and operating on a 3D vector / coordinate.
Definition Linear.h:62
The dimeParam class is a union of the different parameter types.
Definition Basic.h:102