![]() |
VR-Forces 4.10 Class Documentation
|

Public Member Functions | |
| DtMetafileRecord () | |
| default constructor. More... | |
| virtual | ~DtMetafileRecord () |
| destructor More... | |
| DtMetafileRecord (const DtMetafileRecord &orig) | |
| copy constructor More... | |
| DtMetafileRecord & | operator= (const DtMetafileRecord &orig) |
| assignment operator More... | |
| virtual bool | init () |
| Initialize the metafile. More... | |
| virtual DtString | recordTypeName () const =0 |
| Returns the type name for the particular record. More... | |
| virtual DtConfigCategoryType | recordCategory () const =0 |
| Each record should have a category of configuration they represent. More... | |
| virtual bool | canImport () |
| Tells whether the record can be included in the import process or not. More... | |
| virtual bool | put (std::ostream &stream) const |
| Write self to stream. More... | |
| virtual bool | get (std::istream &stream) |
| Read self from stream. More... | |
| virtual bool | processToken (std::istream &stream, DtString &token) |
| identifies a token or passes token the parent class. More... | |
| 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). More... | |
| virtual bool | setAttribute (DtString attrName, DtString value) |
| Sets the value of the attribute attrName to value. More... | |
| virtual const DtTerrainInitializer * | initializer () const |
| Get the initializer. More... | |
| virtual DtTerrainInitializer * | initializer () |
| virtual void | setInitializer (DtTerrainInitializer *init) |
| Sets the initializer. More... | |
| 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. More... | |
| virtual const DtString & | recordString () const |
| Get the record string. More... | |
| virtual void | resetFileLists () |
| Clears any file lists this record holds onto. More... | |
| virtual void | setPath (const DtFilename &) |
| Parent path (if relevant) More... | |
| 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) |
Protected Member Functions | |
| virtual bool | writeAttributes (std::ostream &stream) const |
| Write attributes to stream. This is called by put(stream) More... | |
| 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. More... | |
| 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 More... | |
Protected Attributes | |
| DtTerrainInitializer * | mypInitializer |
| DtString | myRecordString |
| int | myRecordKey |
| DtPropertyNamesMap | myAttributeNames |
| bool | myCanImport |
| DtFilename | myPath |
Static Protected Attributes | |
| static const DtString | theImport |
| DtMetafileRecord::DtMetafileRecord | ( | ) |
default constructor.
|
virtual |
destructor
| DtMetafileRecord::DtMetafileRecord | ( | const DtMetafileRecord & | orig | ) |
copy constructor
| DtMetafileRecord& DtMetafileRecord::operator= | ( | const DtMetafileRecord & | orig | ) |
assignment operator
|
virtual |
Initialize the metafile.
Reimplemented in DtKynPathDataMetafileRecord.
|
pure 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.
Implemented in DtOpcodeIntersectorRecord, DtSpatialSubdivisionIntersectorRecord, DtNativeIntersectorRecord, DtTerrainIntersectorRecord, DtKynPathDataMetafileRecord, DtExtentMetafileRecord, DtGdbProcessingMetafileRecord, DtMultiResPaperMapRecord, DtPixmapPaperMapRecord, DtPaperMapRecord, DtVectorDataRecord, DtShapeMetafileRecord, DtFltMetafileRecord, DtRpfPaperMapRecord, DtC4bMetafileRecord, DtDfadMetafileRecord, DtAsciiMetafileRecord, DtC7bMetafileRecord, DtShapeVectorMetafileRecord, DtDfdDfadMetafileRecord, DtDtedMetafileRecord, DtVmapMetafileRecord, DtTerrainDescriptorRecord, DtMetaFlightMetafileRecord, Dt3DViewMetafileRecord, and DtGdbMetafileRecord.
|
pure virtual |
Each record should have a category of configuration they represent.
I.e does this record configure terrain source files, or vector source files, papermap files....
Implemented in DtOpcodeIntersectorRecord, DtSpatialSubdivisionIntersectorRecord, DtNativeIntersectorRecord, DtTerrainIntersectorRecord, DtAdditionalDataRecord, DtGdbProcessingMetafileRecord, DtPaperMapRecord, DtTerrainMetafileRecord, DtVectorDataRecord, DtExtentMetafileRecord, DtTerrainDescriptorRecord, and Dt3DViewMetafileRecord.
|
virtual |
Tells whether the record can be included in the import process or not.
|
virtual |
Write self to stream.
|
virtual |
Read self from stream.
Reimplemented in DtPaperMapRecord, DtPixmapPaperMapRecord, DtVectorDataRecord, DtGdbProcessingMetafileRecord, DtTerrainMetafileRecord, DtRpfPaperMapRecord, DtTerrainDescriptorRecord, DtMultiResPaperMapRecord, DtShapeMetafileRecord, Dt3DViewMetafileRecord, DtKynPathDataMetafileRecord, DtShapeVectorMetafileRecord, DtExtentMetafileRecord, DtFltMetafileRecord, DtC4bMetafileRecord, DtDfadMetafileRecord, DtAsciiMetafileRecord, DtC7bMetafileRecord, DtDfdDfadMetafileRecord, DtDtedMetafileRecord, DtVmapMetafileRecord, DtMetaFlightMetafileRecord, and DtGdbMetafileRecord.
identifies a token or passes token the parent class.
Reimplemented in DtSpatialSubdivisionIntersectorRecord, DtPaperMapRecord, DtPixmapPaperMapRecord, DtVectorDataRecord, DtGdbProcessingMetafileRecord, DtTerrainMetafileRecord, DtRpfPaperMapRecord, DtTerrainDescriptorRecord, DtMultiResPaperMapRecord, DtShapeMetafileRecord, Dt3DViewMetafileRecord, DtKynPathDataMetafileRecord, DtShapeVectorMetafileRecord, DtExtentMetafileRecord, DtFltMetafileRecord, DtAsciiMetafileRecord, DtC4bMetafileRecord, DtDfadMetafileRecord, DtC7bMetafileRecord, DtDfdDfadMetafileRecord, DtDtedMetafileRecord, DtVmapMetafileRecord, DtMetaFlightMetafileRecord, and DtGdbMetafileRecord.
|
virtual |
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).
If the attribute is a sequence of values, they can be accessed via the index argument Returns False otherwise.
Sets the value of the attribute attrName to value.
Returns False if the record does not have the attribute or if the value cannot be set to the attribute
|
virtual |
Get the initializer.
|
virtual |
|
virtual |
Sets the initializer.
The initializer object is destroyed by this class destructor
|
virtual |
|
virtual |
|
virtual |
Get the std::map with all the properties available for this record.
|
virtual |
Get the record string.
|
virtual |
Clears any file lists this record holds onto.
Reimplemented in DtVectorDataRecord, DtTerrainMetafileRecord, DtShapeMetafileRecord, and DtShapeVectorMetafileRecord.
|
virtual |
Parent path (if relevant)
|
virtual |
|
protectedvirtual |
Write attributes to stream. This is called by put(stream)
Reimplemented in DtSpatialSubdivisionIntersectorRecord, DtPaperMapRecord, DtKynPathDataMetafileRecord, DtPixmapPaperMapRecord, DtVectorDataRecord, DtGdbProcessingMetafileRecord, DtRpfPaperMapRecord, DtMultiResPaperMapRecord, DtTerrainDescriptorRecord, DtTerrainMetafileRecord, DtShapeMetafileRecord, Dt3DViewMetafileRecord, DtExtentMetafileRecord, DtShapeVectorMetafileRecord, DtFltMetafileRecord, DtVmapMetafileRecord, DtAsciiMetafileRecord, DtC7bMetafileRecord, DtDfadMetafileRecord, DtC4bMetafileRecord, DtDfdDfadMetafileRecord, DtDtedMetafileRecord, DtGdbMetafileRecord, and DtMetaFlightMetafileRecord.
|
protectedvirtual |
Given the name of a record's attribute, returns its value in the 'value' parameter.
Returns True if successful; false otherwise
Reimplemented in DtSpatialSubdivisionIntersectorRecord, DtPaperMapRecord, DtKynPathDataMetafileRecord, DtPixmapPaperMapRecord, DtVectorDataRecord, DtGdbProcessingMetafileRecord, DtRpfPaperMapRecord, DtMultiResPaperMapRecord, DtTerrainDescriptorRecord, DtTerrainMetafileRecord, DtShapeMetafileRecord, Dt3DViewMetafileRecord, DtExtentMetafileRecord, DtShapeVectorMetafileRecord, DtFltMetafileRecord, DtVmapMetafileRecord, DtAsciiMetafileRecord, DtC4bMetafileRecord, DtC7bMetafileRecord, DtDfadMetafileRecord, DtDfdDfadMetafileRecord, DtDtedMetafileRecord, DtGdbMetafileRecord, and DtMetaFlightMetafileRecord.
|
protectedvirtual |
identifies a token and returns true if the value can be set to it, false otherwise
Reimplemented in DtSpatialSubdivisionIntersectorRecord, DtPaperMapRecord, DtKynPathDataMetafileRecord, DtPixmapPaperMapRecord, DtVectorDataRecord, DtGdbProcessingMetafileRecord, DtRpfPaperMapRecord, DtTerrainMetafileRecord, DtMultiResPaperMapRecord, DtTerrainDescriptorRecord, DtShapeMetafileRecord, Dt3DViewMetafileRecord, DtExtentMetafileRecord, DtShapeVectorMetafileRecord, DtC4bMetafileRecord, DtFltMetafileRecord, DtVmapMetafileRecord, DtAsciiMetafileRecord, DtC7bMetafileRecord, DtDfadMetafileRecord, DtDfdDfadMetafileRecord, DtDtedMetafileRecord, DtGdbMetafileRecord, and DtMetaFlightMetafileRecord.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |