VR-Forces 4.0.4 Class Documentation
Classes | Public Types | Static Public Member Functions | Static Protected Attributes
makVrv::DtMtlModelMapReader Class Reference

A static class used to read (and then access) an old Stealth 6.2-style mtl model map file. More...

List of all members.

Classes

struct  MtlModelMapping
 Data from an mtl model mapping. More...

Public Types

typedef std::vector
< MtlModelMapping
MtlModelMappings
 Vector of model mappings.

Static Public Member Functions

static bool carAsFixnum (DtlObjPtr lst, int &fixnumOut, DtlObjPtr &cdrOut)
 Get the car of a list as a fixnum, returning the num and cdr of the list through output parameters (fixnumOut and cdrOut).
static bool carAsString (DtlObjPtr lst, std::string &strOut, DtlObjPtr &cdrOut)
 Get the car of a list as a c string, returning the string and cdr of the list through output parameters (strOut and cdrOut).
static bool listToEntityType (DtlObjPtr lst, DtEntityType &typeOut)
 Interpret a list of 7 fixnums as a DIS entity type, returning the result through an output parameter (typeOut)
static DtlObjPtr DtlModelMap (const DtlObjPtr &args, const DtlObjPtr &env)
 Callback to interpret a model-map function call in an mtl file.
static MtlModelMappingsmtlModelMappings ()
 Accessor for the imported model mappings.
static std::set< std::string > & stealthModelSet ()

Static Protected Attributes

static MtlModelMappings theMtlModelMappings
static std::set< std::string > theStealthModelSet

Detailed Description

A static class used to read (and then access) an old Stealth 6.2-style mtl model map file.


Member Typedef Documentation

Vector of model mappings.


Member Function Documentation

static bool makVrv::DtMtlModelMapReader::carAsFixnum ( DtlObjPtr  lst,
int &  fixnumOut,
DtlObjPtr &  cdrOut 
) [static]

Get the car of a list as a fixnum, returning the num and cdr of the list through output parameters (fixnumOut and cdrOut).

Returns:
Returns false if the input is not a list of length >= 1 or its car is not a fixnum.
static bool makVrv::DtMtlModelMapReader::carAsString ( DtlObjPtr  lst,
std::string &  strOut,
DtlObjPtr &  cdrOut 
) [static]

Get the car of a list as a c string, returning the string and cdr of the list through output parameters (strOut and cdrOut).

Returns:
Returns false if the input is not a list of length >= 1 or its car is not a string.
static bool makVrv::DtMtlModelMapReader::listToEntityType ( DtlObjPtr  lst,
DtEntityType &  typeOut 
) [static]

Interpret a list of 7 fixnums as a DIS entity type, returning the result through an output parameter (typeOut)

Returns:
false if the list doesn't consist of exactly 7 fixnums
static DtlObjPtr makVrv::DtMtlModelMapReader::DtlModelMap ( const DtlObjPtr &  args,
const DtlObjPtr &  env 
) [static]

Callback to interpret a model-map function call in an mtl file.

Creates an MtlModelMapping and adds it to the global list.

Accessor for the imported model mappings.

Returns:
the imported model mappings
static std::set<std::string>& makVrv::DtMtlModelMapReader::stealthModelSet ( ) [static]

Member Data Documentation

std::set<std::string> makVrv::DtMtlModelMapReader::theStealthModelSet [static, protected]

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)