VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtIntervisibilityElement.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: $ $Revision: $ $State: $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 #include <vrvCore/vrvCore.h>
15 #include <vrvCore/DtUniqueID.h>
17 #include <vrvCore/DtElementEntry.h>
19 #include <vrvUtil/DtUnicode.h>
21 #include <boost/unordered_map.hpp>
22 
23 #include <matrix/vlVector.h>
24 
25 namespace makVrv
26 {
27  class DtDe;
28  class DtIntervisibilityVisualizerSet;
29  class DtIntervisibilityStateListener;
30  class DtStateVisualizer;
31 
36  {
37  public:
38  typedef boost::unordered_map<int, DtIntervisibilityVisualizerSet*>
40 
43  DtIntervisibilityStateListener&, const DtUnicode& elementDefName,
44  DtElementEntry::ElementType type, bool distribute = true);
45 
47  virtual ~DtIntervisibilityElement();
48 
50  virtual void setVisible( bool visible );
51 
53  bool visible() const;
54 
57  DtElementID elementID();
58 
61  const DtUnicode& definition() const;
62 
63  inline const ModelSetMap& modelSetMap() const
64  {
65  return myModelSetMap;
66  }
67 
69  {
70  return myListener;
71  }
72 
73  virtual void setSelected(bool);
74  inline bool selected() const
75  {
76  return mySelected;
77  }
78 
81  virtual int indexOfVertex(DtUniqueID id,
82  DtStateVisualizer*& visualizer) const;
83 
86  virtual void setVertexSelected(int iIndex, bool);
87 
89  virtual void visualizeModelSets();
90 
93  virtual void setPickable(bool);
94  bool pickable() const;
95 
99  virtual bool circleSelected() const;
100 
103  virtual bool hasCircle() const;
104 
105  protected:
106 
108  virtual void setModelSetEnabled( int modelSet, bool enabled );
109 
111  virtual DtIntervisibilityVisualizerSet* createVisualizerSet(
112  int modelSet) const;
113 
114  protected:
115 
123 
128  bool myVisible;
129  };
130 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)