VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtTacticalGraphicElement.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>
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 
66  virtual void setInvisible(bool);
67  virtual bool invisible() const;
68 
71  {
72  return myListener;
73  }
74 
75  virtual DtElementEntry::ObjectType elementType() const
76  {
77  return myObjectType;
78  }
79 
80  template <typename VisualizerClass>
81  void findVisualizers( std::vector<VisualizerClass*>& visualizers )
82  {
83  ModelSetMap::iterator i = myTacticalGraphicModelSetMap.begin();
84  ModelSetMap::iterator e = myTacticalGraphicModelSetMap.end();
85  for ( ; i != e; ++i )
86  {
87  i->second->findVisualizers(visualizers);
88  }
89  }
90 
93  virtual void setHatLinesEnabled( bool enabled );
94 
97  virtual void setHatLineMode(
99 
101  virtual void setVisible( bool vis );
102 
103  protected:
104 
106  void setKindAndCategory( int kind, int category );
107 
109  void reportKindAndCategory();
110 
111  //Get the current definitions, in this class this function does nothing.
112  virtual void getDefinitions( std::vector<DtUnicode>& definitions );
113 
114  virtual void slot_controlPointsChanged(
116 
117  virtual void slot_tacticalGraphicsEnabled( bool enabled );
118 
119  virtual DtUniqueID addVertexElement();
120  virtual void removeVertexElement(int iIndex);
121 
122  protected:
123 
128 
130  std::vector<DtUniqueID> myVertexElementIDs;
131  std::pair<int,int> myKindCat;
133  };
134 
135  }
136 }

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)