VR-Forces 4.1.1 Class Documentation
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Attributes
DtShapeMetafileRecord Class Reference
Inheritance diagram for DtShapeMetafileRecord:
Inheritance graph
[legend]

Public Member Functions

 DtShapeMetafileRecord ()
virtual ~DtShapeMetafileRecord ()
 DtShapeMetafileRecord (const DtShapeMetafileRecord &orig)
DtShapeMetafileRecordoperator= (const DtShapeMetafileRecord &orig)
virtual DtString recordTypeName () const
 Returns the type name for the particular record.
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.
- Public Member Functions inherited from DtTerrainMetafileRecord
 DtTerrainMetafileRecord ()
 default constructor.
virtual ~DtTerrainMetafileRecord ()
 destructor
 DtTerrainMetafileRecord (const DtTerrainMetafileRecord &orig)
 copy constructor
DtTerrainMetafileRecordoperator= (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.
- Public Member Functions inherited from DtMetafileRecord
 DtMetafileRecord ()
 default constructor.
virtual ~DtMetafileRecord ()
 destructor
 DtMetafileRecord (const DtMetafileRecord &orig)
 copy constructor
DtMetafileRecordoperator= (const DtMetafileRecord &orig)
 assignment operator
virtual bool init ()
 Initialize the metafile.
virtual bool canImport ()
 Tells whether the record can be included in the import process or not.
virtual bool put (std::ostream &stream) const
 Write self to stream.
virtual bool getAttribute (const DtString attrName, DtString &value, DtString &type, unsigned index=0)
 Given the name of a record's attribute, returns True if the record has the attribute (the value is returned in value and the type in type).
virtual bool setAttribute (DtString attrName, DtString value)
 Sets the value of the attribute attrName to value.
virtual const
DtTerrainInitializer
initializer () const
 Get the initializer.
virtual DtTerrainInitializerinitializer ()
virtual void setInitializer (DtTerrainInitializer *init)
 Sets the initializer.
virtual const int recordKey ()
virtual void setRecordKey (const int key)
virtual const DtPropertyNamesMap properties () const
 Get the std::map with all the properties available for this record.
virtual const DtStringrecordString () const
 Get the record string.
virtual void setPath (const DtFilename &)
 Parent path (if relevant)
virtual const DtFilename & path () const
bool isInt (const DtString &valueIn)
bool isDouble (const DtString &valueIn)
bool isColor (const DtString &valueIn)
bool isPoint (const DtString &valueIn)
bool isBool (const DtString &valueIn)
bool toInt (const DtString &valueIn, int &valueOut)
bool toDouble (const DtString &valueIn, double &valueOut)
bool toColor (const DtString &valueIn, DtColor &valueOut)
bool toPoint (const DtString &valueIn, DtPoint &valueOut)
bool toBool (const DtString &valueIn, bool &valueOut)

Static Public Member Functions

static DtMetafileRecordcreate ()

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

Static Protected Attributes

static const DtString theIsTerrainType
static const DtString theIsElevationFactorToMeters
static const DtString theIsElevationField
static const DtString theIsElevationValue
static const DtString theIsSeaRectangleAdded
static const DtString theIsGroundRectangleAdded
static const DtString theIsTerrainFile
static const DtString theOrigin
static const DtString theDistance
static const DtString theIsElevationInData
static const DtString theThreshold
- Static Protected Attributes inherited from DtTerrainMetafileRecord
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
- Static Protected Attributes inherited from DtMetafileRecord
static const DtString theImport

Additional Inherited Members

- Protected Attributes inherited from DtTerrainMetafileRecord
long myZone
DtPoint myDatabaseOrigin
bool myOriginSet
DtFilename myFile
unsigned int myTerrainType

Constructor & Destructor Documentation

DtShapeMetafileRecord::DtShapeMetafileRecord ( )
virtual DtShapeMetafileRecord::~DtShapeMetafileRecord ( )
virtual
DtShapeMetafileRecord::DtShapeMetafileRecord ( const DtShapeMetafileRecord orig)

Member Function Documentation

DtShapeMetafileRecord& DtShapeMetafileRecord::operator= ( const DtShapeMetafileRecord orig)
virtual DtString DtShapeMetafileRecord::recordTypeName ( ) const
virtual

Returns the type name for the particular record.

Descendants should have this method return some string which uniquely identifies the kind of database it represents.

Implements DtMetafileRecord.

virtual void DtShapeMetafileRecord::resetFileLists ( )
virtual

Clears the terrain file initializer list.

Reimplemented from DtTerrainMetafileRecord.

virtual bool DtShapeMetafileRecord::get ( std::istream &  stream)
virtual

Read self from stream.

Reimplemented from DtTerrainMetafileRecord.

virtual bool DtShapeMetafileRecord::processToken ( std::istream &  stream,
DtString token 
)
virtual

Identifies a token or passes it to the parent class.

Reimplemented from DtTerrainMetafileRecord.

static DtMetafileRecord* DtShapeMetafileRecord::create ( )
static
virtual bool DtShapeMetafileRecord::writeAttributes ( std::ostream &  stream) const
protectedvirtual

Write attributes to stream. This is called by put(stream)

Reimplemented from DtTerrainMetafileRecord.

virtual bool DtShapeMetafileRecord::getAttribute ( const DtString  attrName,
DtString value,
unsigned  index = 0 
)
protectedvirtual

Given the name of a record's attribute, returns its value in the 'value' parameter.

Returns True if successful; false otherwise

Reimplemented from DtTerrainMetafileRecord.

virtual bool DtShapeMetafileRecord::setToken ( const DtString token,
const DtString  value 
)
protectedvirtual

identifies a token and returns true if the value can be set to it, false otherwise

Reimplemented from DtTerrainMetafileRecord.

Member Data Documentation

const DtString DtShapeMetafileRecord::theIsTerrainType
staticprotected
const DtString DtShapeMetafileRecord::theIsElevationFactorToMeters
staticprotected
const DtString DtShapeMetafileRecord::theIsElevationField
staticprotected
const DtString DtShapeMetafileRecord::theIsElevationValue
staticprotected
const DtString DtShapeMetafileRecord::theIsSeaRectangleAdded
staticprotected
const DtString DtShapeMetafileRecord::theIsGroundRectangleAdded
staticprotected
const DtString DtShapeMetafileRecord::theIsTerrainFile
staticprotected
const DtString DtShapeMetafileRecord::theOrigin
staticprotected
const DtString DtShapeMetafileRecord::theDistance
staticprotected
const DtString DtShapeMetafileRecord::theIsElevationInData
staticprotected
const DtString DtShapeMetafileRecord::theThreshold
staticprotected

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

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)