VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Attributes
makVrf::DtSurfaceCharacteristicMap Class Reference

List of all members.

Public Member Functions

 DtSurfaceCharacteristicMap ()
 default constructor.
virtual ~DtSurfaceCharacteristicMap ()
 destructor
 DtSurfaceCharacteristicMap (const DtSurfaceCharacteristicMap &orig)
 copy constructor
virtual bool init (const DtFilename filename, bool displayWarning=false)
 assignment operator - provided by default by compiler.
virtual bool get (std::istream &stream)
 get data from a stream
virtual bool processToken (std::istream &stream, DtString &token)
 identifies a token or passes token the parent class.
virtual bool characteristicsFromString (const char *str, unsigned int &characteristics, int &position)
 Set characteristics based on a string.

Protected Types

typedef std::map< DtString,
DtSurface::DtCharacteristics
DtSurfaceStringToCharacteristics
typedef
DtSurfaceStringToCharacteristics::const_iterator 
DtSurfStrToCharsConstIter
typedef
DtSurfaceStringToCharacteristics::iterator 
DtSurfStrToCharsIter

Protected Member Functions

virtual DtSurfacecreateSurface ()
 Creates mySufarce.

Protected Attributes

DtSurfaceStringToCharacteristics mySurfaceStringToCharacteristics
DtSurfacemySurface

Static Protected Attributes

static const DtString theMatchString

Private Attributes

std::set< std::string > myPrintedWarnings
 This is here to prevent error messages from streaming out when many polygons have textures not referenced in the surface characteristics map.

Member Typedef Documentation

typedef DtSurfaceStringToCharacteristics::const_iterator makVrf::DtSurfaceCharacteristicMap::DtSurfStrToCharsConstIter [protected]
typedef DtSurfaceStringToCharacteristics::iterator makVrf::DtSurfaceCharacteristicMap::DtSurfStrToCharsIter [protected]

Constructor & Destructor Documentation

default constructor.

destructor

copy constructor


Member Function Documentation

virtual bool makVrf::DtSurfaceCharacteristicMap::init ( const DtFilename  filename,
bool  displayWarning = false 
) [virtual]

assignment operator - provided by default by compiler.

This class is assignable. Initialize the metafile. Calls createSurface().

virtual bool makVrf::DtSurfaceCharacteristicMap::get ( std::istream &  stream) [virtual]

get data from a stream

virtual bool makVrf::DtSurfaceCharacteristicMap::processToken ( std::istream &  stream,
DtString token 
) [virtual]

identifies a token or passes token the parent class.

virtual bool makVrf::DtSurfaceCharacteristicMap::characteristicsFromString ( const char *  str,
unsigned int &  characteristics,
int &  position 
) [virtual]

Set characteristics based on a string.

Creates mySufarce.


Member Data Documentation

This is here to prevent error messages from streaming out when many polygons have textures not referenced in the surface characteristics map.

Should probably be changed to a logging class that is a member of the class, that explicitly has the "only output once" logic held internally. NOTE: This is used in the characteristicsFromString function.

See also:
characteristicsFromString

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)