VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
speedTreeReplacer.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
15 
16 #include <tbb/spin_rw_mutex.h>
17 
18 #include <boost/unordered_map.hpp>
19 #include <list>
20 
21 class DtOutputStream;
23 
24 namespace makVrv
25 {
26  class DtDe;
27 }
28 
33 {
34 public:
35  DtSpeedTreeReplacer(makVrv::DtDe& displayEngine);
36  virtual ~DtSpeedTreeReplacer();
37 
38 private:
40 
43  DtSpeedTreeReplacer& operator=(const DtSpeedTreeReplacer& orig);
45 
46 public:
49  virtual void replaceSpeedTrees(makArchives::DtTerrainRecord& terrainRecord);
50  virtual void printSummary(DtOutputStream& stream, DtOutputStream* errorStream = 0) const;
51 
52  virtual void setLogErrorsWhileParsing(bool val);
53 
54  typedef boost::unordered_map<std::string, std::string> DtStringStringMap;
55 
57  virtual void replaceSpeedTrees(makArchives::DtPropRecords& propRecords);
58 
60  virtual bool isSpeedTreeModelDef(const std::string& modelDef) const;
63 
64  virtual std::string findGeometricModelDefinition(const std::string& speedTreeModelDef);
65 
66  virtual bool findGeometricModelDefinitionWithExt(
67  std::string startModelDef,
68  const std::string& extention,
69  std::string& result);
70 
71 protected:
72  typedef tbb::spin_rw_mutex Mutex;
73  mutable Mutex myMutex;
74 
81  std::set<std::string> myNoReplacementAvailableSet;
82 
86  std::list<std::string> mySimExtensionList;
87 };

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)