VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtLightPointManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
13 
17 
18 #include <string>
19 
20 
21 namespace makVrv
22 {
23  class DtDe;
24 
29  {
30  public:
31 
32  friend class DtDeSharedState;
33 
34  typedef std::pair<std::string, int> GroupIdPair;
35  typedef std::map<std::string, int> GroupIdMap;
36 
39 
42  static DtLightPointManager& instance(DtDe& de);
43 
44  static void registerInstance(DtDe& de, DtLightPointManager *manager);
45 
47  static const std::string& theClassName();
48 
50  static float defaultLightPointRange();
51 
53  virtual DtColorValue groupColor(const std::string& group);
54 
58  virtual int groupId(const std::string& group);
59 
61  virtual DtLightPointTable& lightsTable();
62 
65  void setGroupColor(const std::string& group, float colorR, float colorG, float colorB, float colorA);
66 
69  virtual void setGroupColor(const std::string& group, const DtColorValue& color);
70 
72  virtual const GroupIdMap& groupIdMap();
73 
74 
75  protected:
76 
78  virtual ~DtLightPointManager();
79 
82  void local_setGroupColor(const std::string& group, const DtColorValue& color);
83 
84  protected:
85 
87 
89 
91 
93 
94  typedef std::vector<DtColorValue> ColorVector;
96 
97  protected:
98 
99  static const std::string theLightFilename;
100  static const std::string theLightTunningFilename;
101  static const std::string theLightDefaultValuesXmlFilename;
102  static const std::string theLightDefaultValuesCsvFilename;
103 
104  };
105 }

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)