VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | 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...

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.

static MtlModelMappings& makVrv::DtMtlModelMapReader::mtlModelMappings ( )
static

Accessor for the imported model mappings.

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

Member Data Documentation

MtlModelMappings makVrv::DtMtlModelMapReader::theMtlModelMappings
staticprotected
std::set<std::string> makVrv::DtMtlModelMapReader::theStealthModelSet
staticprotected

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

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)