| http://www.coin3d.org/ http://www.kongsberg.com/kogt/

Public Member Functions | Friends | List of all members
dimeObjectsSection Class Reference

The dimeObjectsSection object handles an OBJECTS section. More...

`#include <dime/sections/ObjectsSection.h>`

Inheritance diagram for dimeObjectsSection:

## Public Member Functions

| dimeObjectsSection (dimeMemHandler *const memhandler=NULL)
virtual | ~dimeObjectsSection ()
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 | getNumObjects () const
class dimeObject * | getObject (const int idx)
void | removeObject (const int idx)
void | insertObject (dimeObject *const object, const int idx=-1)
Public Member Functions inherited from dimeSection
| dimeSection (dimeMemHandler *const memhandler)
virtual | ~dimeSection ()
virtual bool | isOfType (const int thetypeid) const
Public Member Functions inherited from dimeBase
| dimeBase (void)
virtual | ~dimeBase ()
void * | operator new (size_t size, dimeMemHandler *memhandler=NULL, const int alignment=4)
void | operator delete (void *ptr)

## Friends

class | dimeModel

## Additional Inherited Members

Public Types inherited from dimeBase

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 Public Member Functions inherited from dimeSection
static dimeSection * | createSection (const char *const sectionname, dimeMemHandler *memhandler)
Protected Attributes inherited from dimeSection
dimeMemHandler * | memHandler

## Detailed Description

The dimeObjectsSection object handles an OBJECTS section.

## Constructor & Destructor Documentation

## ◆ dimeObjectsSection()

dimeObjectsSection::dimeObjectsSection | ( | dimeMemHandler *const | memhandler = `NULL` | ) |

Constructor.

Referenced by ~dimeObjectsSection().

## ◆ ~dimeObjectsSection()

dimeObjectsSection::~dimeObjectsSection | ( |  | ) |

virtual

Destructor.

References dimeModel::copy(), dimeArray< T >::count(), dimeObject::createObject(), dimeObjectsSection(), dimeInput::getMemHandler(), dimeModel::getMemHandler(), dimeArray< T >::makeEmpty(), dimeObject::read(), dimeInput::readGroupCode(), dimeInput::readString(), dimeModel::write(), dimeOutput::writeGroupCode(), and dimeOutput::writeString().

## Member Function Documentation

## ◆ countRecords()

int dimeObjectsSection::countRecords | ( |  | ) | const

virtual

Returns the number of records in this section.

Implements dimeSection.

References dimeArray< T >::count().

## ◆ getNumObjects()

int dimeObjectsSection::getNumObjects | ( |  | ) | const

Returns the number of objects in this section.

References dimeArray< T >::count().

## ◆ getObject()

dimeObject * dimeObjectsSection::getObject | ( | const int | idx | ) |

Returns the object at index idx.

References dimeArray< T >::count().

## ◆ insertObject()

void dimeObjectsSection::insertObject | ( | dimeObject *const | object,
|  | const int | idx = `-1`
| ) |  |

Inserts a new object at index idx. If idx is negative, the object will be inserted at the end of the list of objects.

References dimeArray< T >::count().

## ◆ removeObject()

void dimeObjectsSection::removeObject | ( | const int | idx | ) |

Removes (and deletes if no memhandler is used) the object at index idx.

References dimeArray< T >::count(), and dimeArray< T >::removeElem().

## ◆ typeId()

int dimeObjectsSection::typeId | ( |  | ) | const

virtual

Must be implemented by all subclasses, and should return an unique id for that class.

Implements dimeSection.

The documentation for this class was generated from the following files:

- ObjectsSection.h
- ObjectsSection.cpp

Copyright © by Kongsberg Oil & Gas Technologies. All rights reserved.