VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtLightPointTable.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright(c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvUtil/vrvUtil.h>
13 
14 #include <string>
15 #include <map>
16 
17 //defining these here avoids needing to include tree.h which would propagate dependencies to other projects
18 typedef struct _xmlNode xmlNode;
20 struct _xmlNode;
21 
22 typedef unsigned char xmlChar;
23 
24 namespace makVrv
25 {
26 
27  class DtDe;
28 
34  {
35  public:
36 
39 
41  virtual ~DtLightPointTable();
42 
46  virtual bool addLight(DtLightPointType *lightPointType, const std::string& codeStr);
47 
49  virtual DtLightPointType* getLight(unsigned int code);
50 
52  virtual DtLightPointType* getLight(const std::string& type);
53 
58  virtual void loadLightTableFromXML(const std::string& fileName);
59 
66  virtual void saveDefaultLightValuesToCSV(const std::string& filename);
67 
73  virtual void loadDefaultLightValuesFromCSV(const std::string& filename);
74 
77  virtual void loadDefaultLightValuesFromXML(const std::string& fileName);
78 
83  virtual void loadTunningLightValuesFromXML(const std::string& fileName);
84 
86  virtual bool isDirty();
87 
89  virtual void clean();
90 
92  virtual int maxCode();
93 
95  virtual void updateLightPointTypeMap();
96 
98  int getOrCreateLightTypeCode(const DtLightPointType &lp);
99 
100  protected:
101 
103  virtual void loadLightTypeFromXML(xmlNodePtr lightTypeNode, const std::string* parentType);
104 
106  bool compareXmlString(const xmlChar *xmlStr, const char* compareStr);
107 
108  protected:
109 
110  typedef std::map < DtLightPointType, unsigned int > LightPointTypeIntMap;
111  typedef std::pair < DtLightPointType, unsigned int > LightPointTypeIntPair;
112 
113  typedef std::map < unsigned int, DtLightPointType* > IntLightPointTypeMap;
114  typedef std::pair < unsigned int, DtLightPointType* > IntLightPointTypePair;
119 
123 
126 
127 
128  typedef std::map < const std::string, unsigned int> StringIntMap;
129  typedef std::pair < const std::string, unsigned int> StringIntPair;
131 
132  };
133 
134 }

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)