VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtMtlModelMapReader.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 #pragma once
10 
11 #include <vrvCore/vrvCore.h>
12 
13 #include <mtl/mtlEnvironment.h>
14 #include <mtl/mtl.h>
15 #include <vlpi/entityType.h>
16 
17 namespace makVrv
18 {
23  {
24  public:
25 
27  typedef struct
28  {
30  std::string modelName;
31 
33  std::string modelFile;
34 
36  DtEntityType type;
37 
39 
41  typedef std::vector<MtlModelMapping> MtlModelMappings;
42 
48  static bool carAsFixnum(DtlObjPtr lst, int& fixnumOut, DtlObjPtr& cdrOut);
49 
55  static bool carAsString(DtlObjPtr lst, std::string& strOut, DtlObjPtr& cdrOut);
56 
61  static bool listToEntityType(DtlObjPtr lst, DtEntityType& typeOut);
62 
65  static DtlObjPtr DtlModelMap(const DtlObjPtr& args, const DtlObjPtr& env);
66 
70  static MtlModelMappings& mtlModelMappings();
71 
72  static std::set<std::string>& stealthModelSet();
73 
74  protected:
76  static std::set<std::string> theStealthModelSet;
77  };
78 }
DtEntityType type
The entity type mapped to the model.
Definition: DtMtlModelMapReader.h:36
std::vector< MtlModelMapping > MtlModelMappings
Vector of model mappings.
Definition: DtMtlModelMapReader.h:41
std::string modelFile
The full path of the model file (e.g. &#39;../data/T-80.flt&#39;)
Definition: DtMtlModelMapReader.h:33
std::string modelName
The local filename of the model (e.g. &#39;T-80.flt&#39;)
Definition: DtMtlModelMapReader.h:30
A static class used to read (and then access) an old Stealth 6.2-style mtl model map file...
Definition: DtMtlModelMapReader.h:22
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
static std::set< std::string > theStealthModelSet
Definition: DtMtlModelMapReader.h:76
Data from an mtl model mapping.
Definition: DtMtlModelMapReader.h:27
static MtlModelMappings theMtlModelMappings
Definition: DtMtlModelMapReader.h:75
Contains DLL export macros.

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)