VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDynamicTerrainElement.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvVrl/vrvVrl.h>
13 #include <vrvVrl/DtVrlinkElement.h>
14 
15 #include <vrvCore/DtElementEntry.h>
16 
18 #include <vrvUtil/DtUnicode.h>
19 
20 #include <vector>
21 
22 #include <boost/unordered_map.hpp>
23 
25 class DtTerrainGeometry;
26 class DtKeyValuePairList;
27 
28 #if 0
29 // temporary definitions to make intellisense work
30 #define DT_PROTOCOL_NAMESPACE vrvDIS
31 #define DtDIS 1
32 //#define DT_PROTOCOL_NAMESPACE vrvHla13
33 //#define DtHLA 1
34 #define DL_DLL_IGCONVRLINK __declspec ( dllexport )
35 #endif
36 
37 #ifndef DT_PROTOCOL_NAMESPACE
38 #error Namespace Protocol Macro DT_PROTOCOL_NAMESPACE not defined.
39 #endif
40 
41 namespace makVrv
42 {
43  class DtDynamicTerrainObjectAgent;
44 
45  namespace DT_PROTOCOL_NAMESPACE
46  {
47  class DtDynamicTerrainStateListener;
48  class DtVrlinkConnection;
49 
57  {
58  private:
59  // No default CTOR
61 
62  //Not copyable
64 
65  //Not assignable
66  DtDynamicTerrainElement& operator=(const DtDynamicTerrainElement& copy);
67 
68  public:
72 
74  virtual ~DtDynamicTerrainElement();
75 
78  virtual void visualize(const DtSharedModelSetSettings::ModelSetVisualizedMap& sets);
79 
81  inline DtDynamicTerrainStateListener& listener()
82  {
83  return myListener;
84  }
85 
87  inline DtElementEntry::ObjectType elementType() const
88  {
90  }
91 
94  virtual void slot_geometryAndDataAdded( int index, const DtTerrainGeometryAndData& geomAndData );
95 
98  virtual void slot_geometryChanged( int index, double order, const DtTerrainGeometry& geometry );
99 
102  virtual void slot_dataChanged ( int index, double order, const DtKeyValuePairList& data );
103 
105  virtual void getDefinitions( std::vector<DtUnicode>& definitions )
106  {
107  }
108 
110  virtual void setModelSetEnabled( int modelSet, bool enabled )
111  {
112  }
113 
114  protected:
115  virtual void slot_coordinateSystemChanged();
116 
117  protected:
121  DtDynamicTerrainObjectAgent* myDynamicTerrainObjectAgent;
122 
123  typedef boost::unordered_map<int, DtTerrainGeometryAndData> DynamicTerrainEntryMap;
125  };
126  }
127 }
128 

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)