VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
DtVectorDataRecord Class Reference
Inheritance diagram for DtVectorDataRecord:
Inheritance graph
[legend]

Public Member Functions

 DtVectorDataRecord ()
 
virtual ~DtVectorDataRecord ()
 
 DtVectorDataRecord (const DtVectorDataRecord &orig)
 
DtVectorDataRecordoperator= (const DtVectorDataRecord &rhs)
 
virtual DtString recordTypeName () const
 Returns the type name for the particular record. More...
 
virtual DtConfigCategoryType recordCategory () const
 Each record should have a category of configuration they represent. More...
 
virtual const unsigned int vecDataType () const
 
virtual DtVectorDataInitializervectorDataInitializer ()
 
virtual void resetFileLists ()
 Clears any file lists this record holds onto. 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...
 
- Public Member Functions inherited from DtMetafileRecord
 DtMetafileRecord ()
 default constructor. More...
 
virtual ~DtMetafileRecord ()
 destructor More...
 
 DtMetafileRecord (const DtMetafileRecord &orig)
 copy constructor More...
 
DtMetafileRecordoperator= (const DtMetafileRecord &orig)
 assignment operator More...
 
virtual bool init ()
 Initialize the metafile. 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 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 DtTerrainInitializerinitializer ()
 
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 DtStringrecordString () const
 Get the record string. 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)
 

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) 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

DtVectorDataInitializermyVectorDataInitializer
 
unsigned int myVectorDataType
 
- Protected Attributes inherited from DtMetafileRecord
DtTerrainInitializermypInitializer
 
DtString myRecordString
 
int myRecordKey
 
DtPropertyNamesMap myAttributeNames
 
bool myCanImport
 
DtFilename myPath
 

Static Protected Attributes

static const DtString thePlanarizeVectorNetwork
 
static const DtString theClipVectorNetworkToExtent
 
static const DtString theTolerance
 
static const DtString theExcessiveEdgeCount
 
- Static Protected Attributes inherited from DtMetafileRecord
static const DtString theImport
 

Constructor & Destructor Documentation

DtVectorDataRecord::DtVectorDataRecord ( )
virtual DtVectorDataRecord::~DtVectorDataRecord ( )
virtual
DtVectorDataRecord::DtVectorDataRecord ( const DtVectorDataRecord orig)

Member Function Documentation

DtVectorDataRecord& DtVectorDataRecord::operator= ( const DtVectorDataRecord rhs)
virtual DtString DtVectorDataRecord::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.

Reimplemented in DtDfadMetafileRecord, DtShapeVectorMetafileRecord, DtDfdDfadMetafileRecord, and DtVmapMetafileRecord.

virtual DtConfigCategoryType DtVectorDataRecord::recordCategory ( ) const
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....

Implements DtMetafileRecord.

virtual const unsigned int DtVectorDataRecord::vecDataType ( ) const
virtual
virtual DtVectorDataInitializer* DtVectorDataRecord::vectorDataInitializer ( )
virtual
virtual void DtVectorDataRecord::resetFileLists ( )
virtual

Clears any file lists this record holds onto.

Reimplemented from DtMetafileRecord.

Reimplemented in DtShapeVectorMetafileRecord.

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

Read self from stream.

Reimplemented from DtMetafileRecord.

Reimplemented in DtShapeVectorMetafileRecord, DtDfadMetafileRecord, DtDfdDfadMetafileRecord, and DtVmapMetafileRecord.

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

identifies a token or passes token the parent class.

Reimplemented from DtMetafileRecord.

Reimplemented in DtShapeVectorMetafileRecord, DtDfadMetafileRecord, DtDfdDfadMetafileRecord, and DtVmapMetafileRecord.

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

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

Reimplemented from DtMetafileRecord.

Reimplemented in DtShapeVectorMetafileRecord, DtVmapMetafileRecord, DtDfadMetafileRecord, and DtDfdDfadMetafileRecord.

virtual bool DtVectorDataRecord::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 DtMetafileRecord.

Reimplemented in DtShapeVectorMetafileRecord, DtVmapMetafileRecord, DtDfadMetafileRecord, and DtDfdDfadMetafileRecord.

virtual bool DtVectorDataRecord::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 DtMetafileRecord.

Reimplemented in DtShapeVectorMetafileRecord, DtVmapMetafileRecord, DtDfadMetafileRecord, and DtDfdDfadMetafileRecord.

Member Data Documentation

const DtString DtVectorDataRecord::thePlanarizeVectorNetwork
staticprotected
const DtString DtVectorDataRecord::theClipVectorNetworkToExtent
staticprotected
const DtString DtVectorDataRecord::theTolerance
staticprotected
const DtString DtVectorDataRecord::theExcessiveEdgeCount
staticprotected
DtVectorDataInitializer* DtVectorDataRecord::myVectorDataInitializer
protected
unsigned int DtVectorDataRecord::myVectorDataType
protected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)