The dimeBlock class handles a BLOCK entity. More...
#include <Block.h>
Inherits dimeEntity.
It cannot strictly be called an entity, as you will only find BLOCKs in the BLOCKS section, not in the ENTITIES section. But BLOCKs share a lot of attributes and functionality with "real" entities, so in DXFLIB, a BLOCK is called an entity.
Constructor.
[virtual]
Destructor.
Returns the base point of this block.
Sets the base point of this entity.
Returns the number of entities in this block.
Returns the entity at index idx.
Inserts an entity in this block at position idx.
Removes the entity at position idx. If deleteIt is true, and no memory handler is used, the entity will be deleted before returing from this method.
Since a growable array is used to hold the entities, it might sometimes use more memory than absolutely needed. Call this method after you have finished modifying a block if you want to free that overhead memory.
Returns the name of this block (used by INSERT to reference the block).
Sets the name of this block. name Must be a static char pointer, or some pointer that will not be deleted before the block, as the text string will not be copied. It is best to avoid using this method. Use dimeModel::addBlock() instead.
Reimplemented from dimeEntity.
[virtual]
Reimplemented from dimeRecordHolder.
[virtual]
Reimplemented from dimeEntity.
[virtual]
This method reads a BLOCK entity from file.
Reimplemented from dimeRecordHolder.
[virtual]
This methods writes a BLOCK entity to file.
Reimplemented from dimeRecordHolder.
[virtual]
Reimplemented from dimeBase.
[virtual]
Reimplemented from dimeRecordHolder.
[protected, virtual]
Reimplemented from dimeRecordHolder.
[protected, virtual]
Reimplemented from dimeEntity.
[protected, virtual]
Reimplemented from dimeEntity.