![]() |
Coin3D is Free Software, published under the BSD 3-clause license. |
https://bitbucket.org/Coin3D/ http://www.kongsberg.com/kogt/ |
The dimeBase class is the superclass for most classes in Dime. More...
#include <dime/Base.h>
Public Member Functions | |
dimeBase (void) | |
virtual | ~dimeBase () |
virtual int | typeId () const =0 |
virtual bool | isOfType (const int thetypeid) const |
void * | operator new (size_t size, dimeMemHandler *memhandler=NULL, const int alignment=4) |
void | operator delete (void *ptr) |
The dimeBase class is the superclass for most classes in Dime.
dimeBase implements the new operator to enable use of the special-purpose memory manager class, dimeMemHandler. It also implements a simple run-time type checking system.
dimeBase::dimeBase | ( | void | ) |
Constructor.
|
virtual |
virtual destructor.
|
pure virtual |
Must be implemented by all subclasses, and should return an unique id for that class.
Implemented in dimePolyline, dimeSpline, dimeVertex, dimeBlock, dime3DFace, dimeEllipse, dimeText, dimeFaceEntity, dimeArc, dimeInsert, dimeCircle, dimeHeaderSection, dimeRecord, dimeObject, dimeLayerTable, dimeStringRecord, dimeUCSTable, dimeLine, dimePoint, dimeSection, dimeUnknownSection, dimeTable, dimeTableEntry, dimeExtrusionEntity, dimeLWPolyline, dimeClassesSection, dimeEntitiesSection, dimeObjectsSection, dimeDoubleRecord, dimeFloatRecord, dimeInt16Record, dimeInt32Record, dimeInt8Record, dimeBlocksSection, dimeTablesSection, dimeUnknownClass, dimeSolid, dimeTrace, dimeUnknownObject, dimeUnknownEntity, dimeUnknownTable, and dimeHexRecord.
|
virtual |
Returns true if the object is of type typeid or is inherited from it. Function in base class checks whether thetypeid equals the virtual dimeBase::typeId() value or equals dimeBaseType. Must be implemented by all subclasses that are superclasses of other classes, and should check if thetypeid equals its typeId, and then call its parent's isOfType function. Leaf-classes do not have to implement this method.
Reimplemented in dimeEntity, dimeFaceEntity, dimeRecordHolder, dimeClass, dimeObject, dimeSection, dimeTableEntry, and dimeExtrusionEntity.