![]() |
Coin3D is Free Software, published under the BSD 3-clause license. |
https://bitbucket.org/Coin3D/ http://www.kongsberg.com/kogt/ |
The dimeTablesSection class handles a TABLES section. More...
#include <dime/sections/TablesSection.h>
Public Member Functions | |
dimeTablesSection (dimeMemHandler *const memhandler=NULL) | |
virtual | ~dimeTablesSection () |
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 |
int | getNumTables () const |
class dimeTable * | getTable (const int idx) |
void | removeTable (const int idx) |
void | insertTable (dimeTable *const table, const int idx=-1) |
![]() | |
dimeSection (dimeMemHandler *const memhandler) | |
virtual | ~dimeSection () |
virtual bool | isOfType (const int thetypeid) const |
![]() | |
dimeBase (void) | |
virtual | ~dimeBase () |
void * | operator new (size_t size, dimeMemHandler *memhandler=NULL, const int alignment=4) |
void | operator delete (void *ptr) |
Additional Inherited Members | |
![]() | |
enum | { dimeBaseType = 1, dimeRecordType, dimeStringRecordType, dimeFloatRecordType, dimeDoubleRecordType, dimeInt8RecordType, dimeInt16RecordType, dimeInt32RecordType, dimeHexRecordType, dimeRecordHolderType, dimeClassType, dimeUnknownClassType, dimeObjectType, dimeUnknownObjectType, dimeEntityType, dimeUnknownEntityType, dimePolylineType, dimeVertexType, dimeFaceEntityType, dimeExtrusionEntityType, dime3DFaceType, dimeSolidType, dimeTraceType, dimeLineType, dimeTextType, dimePointType, dimeBlockType, dimeInsertType, dimeCircleType, dimeArcType, dimeLWPolylineType, dimeEllipseType, dimeSplineType, dimeSectionType, dimeUnknownSectionType, dimeEntitiesSectionType, dimeBlocksSectionType, dimeTablesSectionType, dimeHeaderSectionType, dimeClassesSectionType, dimeObjectsSectionType, dimeTableType, dimeTableEntryType, dimeUnknownTableType, dimeUCSTableType, dimeLayerTableType, dimeLastTypeTag } |
![]() | |
static dimeSection * | createSection (const char *const sectionname, dimeMemHandler *memhandler) |
![]() | |
dimeMemHandler * | memHandler |
The dimeTablesSection class handles a TABLES section.
dimeTablesSection::dimeTablesSection | ( | dimeMemHandler *const | memhandler = NULL | ) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Will read a dxf TABLES section.
Implements dimeSection.
|
virtual |
Must be implemented by all subclasses, and should return an unique id for that class.
Implements dimeSection.
|
virtual |
Returns the number of records in this section.
Implements dimeSection.
int dimeTablesSection::getNumTables | ( | ) | const |
Returns the number of tables in this section.
dimeTable * dimeTablesSection::getTable | ( | const int | idx | ) |
Returns the table at index idx.
void dimeTablesSection::removeTable | ( | const int | idx | ) |
Removes (and deletes if no memhandler is used) the table at index idx.
void dimeTablesSection::insertTable | ( | dimeTable *const | table, |
const int | idx = -1 |
||
) |
Inserts a new table at index idx. If idx is negative, the table will be inserted at the end of the list of tables. Be aware that the order of the tables might be important. For instance, the LTYPE table should always precede the LAYER table.