|
http://www.sim.no http://www.coin3d.org |
#include <dime/sections/BlocksSection.h>
Inheritance diagram for dimeBlocksSection:

Public Member Functions | |
| dimeBlocksSection (dimeMemHandler *const memhandler=NULL) | |
| virtual | ~dimeBlocksSection () |
| 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 | getNumBlocks () const |
| dimeBlock * | getBlock (const int idx) |
| void | removeBlock (const int idx) |
| void | insertBlock (dimeBlock *const block, const int idx=-1) |
| dimeBlocksSection::dimeBlocksSection | ( | dimeMemHandler *const | memhandler = NULL |
) |
Constructor which stores the sectioname.
| dimeBlocksSection::~dimeBlocksSection | ( | ) | [virtual] |
Destructor. Should only be called when no memhandler is used.
| int dimeBlocksSection::countRecords | ( | ) | const [virtual] |
Returns the number of records in this section.
Implements dimeSection.
| void dimeBlocksSection::fixReferences | ( | dimeModel *const | model | ) |
This function should be called after loading has ended, and will find all forward BLOCK references.
| dimeBlock * dimeBlocksSection::getBlock | ( | const int | idx | ) |
Returns the block at index idx.
| int dimeBlocksSection::getNumBlocks | ( | ) | const |
Returns the number of blocks in this section.
| void dimeBlocksSection::insertBlock | ( | dimeBlock *const | block, | |
| const int | idx = -1 | |||
| ) |
Inserts a new block at index idx. If idx is negative, the block will be inserted at the end of the list of blocks.
| bool dimeBlocksSection::read | ( | dimeInput *const | file | ) | [virtual] |
This method reads a DXF BLOCKS section.
Implements dimeSection.
| void dimeBlocksSection::removeBlock | ( | const int | idx | ) |
Removes (and deletes if no memhandler is used) the block at index idx.
| int dimeBlocksSection::typeId | ( | ) | const [virtual] |
Must be implemented by all subclasses, and should return an unique id for that class.
Implements dimeSection.
| bool dimeBlocksSection::write | ( | dimeOutput *const | file | ) | [virtual] |
This method writes a DXF BLOCKS section.
Implements dimeSection.
Copyright © 1998-2005 by Systems in Motion AS. All rights reserved.
Generated on Tue Dec 2 23:27:14 2008 for DIME by Doxygen. 1.4.7