VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSymbolDecorationUpdater.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 
12 #include <vrvCore/vrvCore.h>
13 #include <vrvCore/DtDe.h>
14 #include <vrvCore/DtIntersector.h>
15 #include <vrvUtil/DtUnicode.h>
16 #include <vrvCore/DtTickable.h>
17 
18 #include <string>
19 #include <map>
20 
21 namespace makVrv
22 {
23  class DtAttributeGroupWidget;
24  class DtSceneObject;
25 
30  : public DtTickable
31  {
32  public:
33 
36 
38  virtual ~DtSymbolDecorationUpdater();
39 
42  virtual bool needsUpdate( DtTime tNow );
43 
45  virtual void update( DtTime tNow );
46 
48  virtual void setSceneObject(DtSceneObject* sceneObjectId);
49 
52  virtual void attachAttributeGroupWidget(DtUniqueID id);
53 
56  virtual void setUseHighestTerrainLod(bool useHighest);
57 
60  virtual bool useHighestTerrainLod() const;
61 
64  virtual void associateIdWithIndex(DtUnicode idString, unsigned int index);
65 
67  virtual void unAssociateId(const DtUnicode& idString);
68 
71  virtual int lookupDecorationIndex(const DtUnicode& idString);
72 
75  virtual DtAttributeGroupWidget* attributeGroupWidget();
76 
77  protected:
78 
82  virtual void slot_sceneObjectToBeDeleted( const DtUniqueID& id );
83 
84  protected:
87 
90 
93 
96 
98 
106 
110 
112  typedef std::map<DtUnicode, unsigned int> DecorationIdMap;
113 
116 
119 
120  // When the class is destructed, the scene object may or may not
121  // exist. Using a separate connection variable makes it possible to
122  // 'disconnect' even if the scene object has been deleted.
123  boost::signalslib::connection mySceneObjectConnection;
124 
125  };
126 }

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)