VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rangeSphereVisualizer.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2011 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrfGuiCore/vrfGuiCore.h>
14 
15 namespace makVrv
16 {
17  class DtEllipsoidArcModelAgent;
18  class DtOverlaySegmentedLineModelAgent;
19  class DtAttachableUpdaterAgent;
20  class DtWidgetLabelAgent;
21  class DtProjectedWidgetModelAgent;
22 }
23 
24 namespace makVrf
25 {
26  class DtEntityStateListenerExtensions;
27 
31  {
32  protected:
34  {
36  virtual ~RingStructDrawingData3D();
37 
38  makVrv::DtEllipsoidArcModelAgent* myRangeSphere;
39  makVrv::DtSceneObjectAgent* mySceneObjectAgent;
40  makVrv::DtAttachableUpdaterAgent* myUpdater;
41  makVrv::DtSceneObjectAgent* mySphereSceneObjectAgent;
42  makVrv::DtAttachableUpdaterAgent* mySphereUpdater;
43  makVrv::DtOverlaySegmentedLineModelAgent* myHeightLine;
44  };
45 
46  public:
47 
50  makVrv::DtStateListener& listener, int modelSet );
51 
53  virtual ~DtRangeSphereVisualizer();
54 
56  virtual const makVrv::DtStateVisualizer::TypeInfo& typeInfo() const;
57 
59  static const makVrv::DtStateVisualizer::TypeInfo& theTypeInfo();
60 
62  static const makVrv::DtVisualizerSchema& theDtRangeSphereSchema();
63 
64  virtual void connect();
65  virtual void initialize_settings();
66 
67  virtual void setSphereOpacityModifier(double);
68  double sphereOpactityModifier() const
69  {
70  return mySphereOpacityModifier;
71  }
72 
73  virtual void setShowRangeSphere(bool);
74  bool showRangeSphere() const
75  {
76  return myShowRangeSphere;
77  }
78  virtual void destroyModelAgents();
79 
80  protected:
81 
83  virtual void updateScaleOfRings();
84 
85  virtual void tryToDraw();//checks whether the appropriate flags are set and then creates or destroys model agents as appropriate
86 
87  virtual void createRing(const DtRangeItem& rangeItem, int extensionIndex);
88 
89  virtual void updateRingOptions(RingStruct&) {};
90 
92  virtual void setRangeRingGeometry(RingStruct&);
93 
95  virtual void setRangeRingColors(RingStruct&);
96 
98  virtual void destroyOuterRing(RingStruct&);
99 
100  protected:
103  };
104 
105  //The creator class is normally templated in visualizers, but I want to split out the
108  {
109  public:
110 
113 
116 
117  virtual DtRangeSphereVisualizerCreator* clone() const;
118 
120  virtual makVrv::DtStateVisualizer* create(makVrv::DtBaseConnection& simulation, makVrv::DtStateListener& listener, int modelSet) const;
121 
124 
125  virtual const std::string& tag();
126  };
127 }

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)