Class hierarchy   Compound list   Header files   Member list  

dimeBlock Class Reference

The dimeBlock class handles a BLOCK entity. More...

#include <Block.h>

Inherits dimeEntity.

List of all members.

Public Members

Protected Members


Detailed Description

The dimeBlock class handles a BLOCK entity.

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.


Member Function Documentation

dimeBlock::dimeBlock(dimeMemHandler * const memhandler)

Constructor.

dimeBlock::~dimeBlock() [virtual]

Destructor.

const dimeVec3f &dimeBlock::getBasePoint() const

Returns the base point of this block.

void dimeBlock::setBasePoint(const dimeVec3f &v)

Sets the base point of this entity.

int dimeBlock::getNumEntities() const

Returns the number of entities in this block.

dimeEntity *dimeBlock::getEntity(const int idx)

Returns the entity at index idx.

See also:
dimeBlock::getNumEntities()

void dimeBlock::insertEntity(dimeEntity * const entity, const int idx)

Inserts an entity in this block at position idx.

void dimeBlock::removeEntity(const int idx, const bool deleteIt)

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.

void dimeBlock::fitEntities()

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.

const char *dimeBlock::getName() const

Returns the name of this block (used by INSERT to reference the block).

void dimeBlock::setName(const char * const name)

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.

dimeEntity* dimeBlock::copy(dimeModel * const model) const

Reimplemented from dimeEntity.

bool dimeBlock::getRecord(const int groupcode, dimeParam &param, const int index) const [virtual]

Reimplemented from dimeRecordHolder.

const char* dimeBlock::getEntityName() const [virtual]

Reimplemented from dimeEntity.

bool dimeBlock::read(dimeInput * const file) [virtual]

This method reads a BLOCK entity from file.

Reimplemented from dimeRecordHolder.

bool dimeBlock::write(dimeOutput * const file) [virtual]

This methods writes a BLOCK entity to file.

Reimplemented from dimeRecordHolder.

int dimeBlock::typeId() const [virtual]

Reimplemented from dimeBase.

int dimeBlock::countRecords() const [virtual]

Reimplemented from dimeRecordHolder.

bool dimeBlock::handleRecord(const int groupcode, const dimeParam &param, dimeMemHandler * const memhandler) [protected, virtual]

Reimplemented from dimeRecordHolder.

void dimeBlock::fixReferences(dimeModel * const model) [protected, virtual]

Reimplemented from dimeEntity.

bool dimeBlock::traverse(const dimeState * const state, dimeCallback callback, void *userdata) [protected, virtual]

Reimplemented from dimeEntity.


The documentation for this class was generated from the following files:
Copyright © 1998-1999, Systems In Motion <sales@sim.no>. All rights reserved.
System documentation was generated using doxygen.