![]() |
VR-Forces 4.0.4 Class Documentation
|
This is the abstract base class for all terrain records in a metafile. More...

Public Member Functions | |
| DtTerrainMetafileRecord () | |
| default constructor. | |
| virtual | ~DtTerrainMetafileRecord () |
| destructor | |
| DtTerrainMetafileRecord (const DtTerrainMetafileRecord &orig) | |
| copy constructor | |
| DtTerrainMetafileRecord & | operator= (const DtTerrainMetafileRecord &orig) |
| assignment operator | |
| virtual const DtFilename & | filename () const |
| Returns filename of database. | |
| virtual void | setFilename (const DtFilename &name) |
| virtual DtConfigCategoryType | recordCategory () const |
| Returns DtConfigTerrainType;. | |
| virtual const unsigned int | terrainType () const |
| Specfic kind of terrain source. | |
| virtual void | resetFileLists () |
| Clears the terrain file initializer list. | |
| virtual bool | get (std::istream &stream) |
| Read self from stream. | |
| virtual bool | processToken (std::istream &stream, DtString &token) |
| Identifies a token or passes it to the parent class. | |
Protected Member Functions | |
| virtual bool | writeAttributes (std::ostream &stream) const |
| Write attributes to stream. This is called by put(stream) | |
| virtual bool | getAttribute (const DtString attrName, DtString &value, unsigned index=0) |
| Given the name of a record's attribute, returns its value in the 'value' parameter. | |
| virtual bool | setToken (const DtString &token, const DtString value) |
| identifies a token and returns true if the value can be set to it, false otherwise | |
Protected Attributes | |
| long | myZone |
| DtPoint | myDatabaseOrigin |
| bool | myOriginSet |
| DtFilename | myFile |
| unsigned int | myTerrainType |
Static Protected Attributes | |
| static const DtString | theZone |
| These variables will be used to override any latitude/longitude or zone information found in header files. | |
| static const DtString | theOrigin |
| Note that latitude and longitude origin will be defined as latitude, longitude, 0.0 (the z value must be 0.0) | |
| static const DtString | theNumVertices |
| static const DtString | theNumSurfaces |
| static const DtString | theIsLargeTerrain |
This is the abstract base class for all terrain records in a metafile.
default constructor.
| virtual DtTerrainMetafileRecord::~DtTerrainMetafileRecord | ( | ) | [virtual] |
destructor
copy constructor
| DtTerrainMetafileRecord& DtTerrainMetafileRecord::operator= | ( | const DtTerrainMetafileRecord & | orig | ) |
assignment operator
| virtual const DtFilename& DtTerrainMetafileRecord::filename | ( | ) | const [virtual] |
Returns filename of database.
| virtual void DtTerrainMetafileRecord::setFilename | ( | const DtFilename & | name | ) | [virtual] |
Reimplemented in DtC7bMetafileRecord.
| virtual DtConfigCategoryType DtTerrainMetafileRecord::recordCategory | ( | ) | const [virtual] |
Returns DtConfigTerrainType;.
Implements DtMetafileRecord.
| virtual const unsigned int DtTerrainMetafileRecord::terrainType | ( | ) | const [virtual] |
Specfic kind of terrain source.
| virtual void DtTerrainMetafileRecord::resetFileLists | ( | ) | [virtual] |
Clears the terrain file initializer list.
Reimplemented from DtMetafileRecord.
Reimplemented in DtShapeMetafileRecord.
| virtual bool DtTerrainMetafileRecord::get | ( | std::istream & | stream | ) | [virtual] |
Read self from stream.
Reimplemented from DtMetafileRecord.
Reimplemented in DtShapeMetafileRecord, DtFltMetafileRecord, DtC4bMetafileRecord, DtAsciiMetafileRecord, DtC7bMetafileRecord, DtDtedMetafileRecord, DtMtFltMetafileRecord, and DtGdbMetafileRecord.
| virtual bool DtTerrainMetafileRecord::processToken | ( | std::istream & | stream, |
| DtString & | token | ||
| ) | [virtual] |
Identifies a token or passes it to the parent class.
Reimplemented from DtMetafileRecord.
Reimplemented in DtShapeMetafileRecord, DtFltMetafileRecord, DtAsciiMetafileRecord, DtC4bMetafileRecord, DtC7bMetafileRecord, DtDtedMetafileRecord, DtMtFltMetafileRecord, and DtGdbMetafileRecord.
| virtual bool DtTerrainMetafileRecord::writeAttributes | ( | std::ostream & | stream | ) | const [protected, virtual] |
Write attributes to stream. This is called by put(stream)
Reimplemented from DtMetafileRecord.
Reimplemented in DtShapeMetafileRecord, DtFltMetafileRecord, DtAsciiMetafileRecord, DtC7bMetafileRecord, DtC4bMetafileRecord, DtDtedMetafileRecord, DtGdbMetafileRecord, and DtMtFltMetafileRecord.
| virtual bool DtTerrainMetafileRecord::getAttribute | ( | const DtString | attrName, |
| DtString & | value, | ||
| unsigned | index = 0 |
||
| ) | [protected, virtual] |
Given the name of a record's attribute, returns its value in the 'value' parameter.
Returns True if successful; false otherwise
Reimplemented from DtMetafileRecord.
Reimplemented in DtShapeMetafileRecord, DtFltMetafileRecord, DtAsciiMetafileRecord, DtC4bMetafileRecord, DtC7bMetafileRecord, DtDtedMetafileRecord, DtGdbMetafileRecord, and DtMtFltMetafileRecord.
| virtual bool DtTerrainMetafileRecord::setToken | ( | const DtString & | token, |
| const DtString | value | ||
| ) | [protected, virtual] |
identifies a token and returns true if the value can be set to it, false otherwise
Reimplemented from DtMetafileRecord.
Reimplemented in DtShapeMetafileRecord, DtC4bMetafileRecord, DtFltMetafileRecord, DtAsciiMetafileRecord, DtC7bMetafileRecord, DtDtedMetafileRecord, DtGdbMetafileRecord, and DtMtFltMetafileRecord.
const DtString DtTerrainMetafileRecord::theZone [static, protected] |
These variables will be used to override any latitude/longitude or zone information found in header files.
const DtString DtTerrainMetafileRecord::theOrigin [static, protected] |
Note that latitude and longitude origin will be defined as latitude, longitude, 0.0 (the z value must be 0.0)
Reimplemented in DtShapeMetafileRecord, DtDtedMetafileRecord, and DtAsciiMetafileRecord.
const DtString DtTerrainMetafileRecord::theNumVertices [static, protected] |
const DtString DtTerrainMetafileRecord::theNumSurfaces [static, protected] |
const DtString DtTerrainMetafileRecord::theIsLargeTerrain [static, protected] |
long DtTerrainMetafileRecord::myZone [protected] |
DtPoint DtTerrainMetafileRecord::myDatabaseOrigin [protected] |
bool DtTerrainMetafileRecord::myOriginSet [protected] |
DtFilename DtTerrainMetafileRecord::myFile [protected] |
unsigned int DtTerrainMetafileRecord::myTerrainType [protected] |