Main Page   Class Hierarchy   Compound List   File List   Compound Members  

dimeUCSTable Class Reference

The dimeUCSTable class reads and writes UCS tables. More...

#include <dime/tables/UCSTable.h>

Inheritance diagram for dimeUCSTable::

dimeTableEntry dimeRecordHolder dimeBase List of all members.

Public Methods

 dimeUCSTable ()
virtual dimeTableEntrycopy (dimeModel *const model) const
virtual const char * getTableName () const
const dimeVec3fgetOrigin () const
const dimeVec3fgetXaxis () const
const dimeVec3fgetYaxis () const
void setOrigin (const dimeVec3f &v)
void setXaxis (const dimeVec3f &v)
void setYaxis (const dimeVec3f &v)
virtual bool write (dimeOutput *const out)
virtual int typeId () const
virtual int countRecords () const

Protected Methods

virtual bool handleRecord (const int groupcodes, const dimeParam &param, dimeMemHandler *const memhandler)

Detailed Description

The dimeUCSTable class reads and writes UCS tables.


Constructor & Destructor Documentation

dimeUCSTable::dimeUCSTable  
 

Constructor.


Member Function Documentation

int dimeUCSTable::countRecords   const [virtual]
 

Returns the number of records for this table. Tables overloading this function should first count the number of records they will write, then add the return value of this function to get the total number of records.

Reimplemented from dimeTableEntry.

bool dimeUCSTable::handleRecord const int    groupcode,
const dimeParam   param,
dimeMemHandler *const    memhandler
[protected, virtual]
 

Must be overloaded by entities that directly supports a record type. During dimeRecordHolder::read(), dimeRecordHolder::setRecord and dimeRecordHolder::setRecords, this function is called for every record found, and it is up to the subclass if the record should be stored internally, or if a generic record should be created and stored in this superclass. A subclass should return \true when it will handle the record, false otherwise. Default function does nothing, and returns false.

For entities, records with group codes 8 (layer name) and 62 (color number) are automatically handled by the dimeEntity class.

See also:
dimeRecordHolder::read() , dimeRecordHolder::setRecord()

Reimplemented from dimeTableEntry.

int dimeUCSTable::typeId   const [virtual]
 

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

Reimplemented from dimeTableEntry.

bool dimeUCSTable::write dimeOutput *const    file [virtual]
 

Will write the records to file.

Reimplemented from dimeTableEntry.


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.