VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtTacticalGraphicElement.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2012 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvVrl/vrvVrl.h>
16 #include <vrvCore/DtUniqueID.h>
18 #include <vrvVrl/DtVrlinkElement.h>
20 
21 #include <boost/unordered_map.hpp>
22 
23 namespace makVrv
24 {
25  const int DtSymbolObjectKind = 101; // VR-Forces specific symbol object, used for overlays
26 
27  namespace DT_PROTOCOL_NAMESPACE
28  {
29 
30  class DtVrlinkConnection;
31  class DtTacticalGraphicVisualizerSet;
32  class DtVrlinkTacticalGraphicStateListener;
33 
38  {
39  public:
40 
41  typedef boost::unordered_map<int, DtTacticalGraphicVisualizerSet*>
43 
47 
49  virtual ~DtTacticalGraphicElement();
50 
51  virtual void visualize(const DtSharedModelSetSettings::ModelSetVisualizedMap& sets);
52 
55  virtual void setModelSetEnabled( int modelSet, bool b );
56 
58  virtual const ModelSetMap& modelSetMap() const
59  {
60  return myTacticalGraphicModelSetMap;
61  }
62 
65  {
66  return myListener;
67  }
68 
69  virtual DtElementEntry::ObjectType elementType() const
70  {
71  return myObjectType;
72  }
73 
74  template <typename VisualizerClass>
75  void findVisualizers( std::vector<VisualizerClass*>& visualizers )
76  {
77  ModelSetMap::iterator i = myTacticalGraphicModelSetMap.begin();
78  ModelSetMap::iterator e = myTacticalGraphicModelSetMap.end();
79  for ( ; i != e; ++i )
80  {
81  i->second->findVisualizers(visualizers);
82  }
83  }
84 
87  virtual void setHatLinesEnabled( bool enabled );
88 
91  virtual void setHatLineMode(
93 
95  virtual void setVisible( bool vis );
96 
97  protected:
98 
100  void setKindAndCategory( int kind, int category );
101 
103  void reportKindAndCategory();
104 
105  //Get the current definitions, in this class this function does nothing.
106  virtual void getDefinitions( std::vector<DtUnicode>& definitions );
107 
108  virtual void slot_controlPointsChanged(
110 
111  virtual void slot_tacticalGraphicsEnabled( bool enabled );
112 
113  virtual DtUniqueID addVertexElement();
114  virtual void removeVertexElement(int iIndex);
115 
116  protected:
117 
122 
124  std::vector<DtUniqueID> myVertexElementIDs;
125  std::pair<int,int> myKindCat;
126 
127  };
128 
129  }
130 }

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)