VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgOverlaySpiderWebModel.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2021 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
15 #include <vrvCore/DtUniqueID.h>
17 
19 
20 namespace makVrv
21 {
22 
23  class DtDe;
24 
67  {
68  public:
69 
72 
74  virtual ~DtOsgOverlaySpiderWebModel();
75 
78 
80  // @{
81  virtual void setPosition(const DtVector& position);
82  virtual DtVector position() const;
83  // @}
84 
87  // @{
88  virtual void setOrientation(const DtTaitBryan& orientation);
89  virtual DtTaitBryan orientation() const;
90  // @}
91 
96  // @{
97  virtual void setHeading(float heading);
98  virtual float heading() const;
99  // @}
100 
102  // @{
103  virtual void setMaxAngleSegment(double angleSegmentMax);
104  virtual double maxAngleSegment() const;
105  // @}
106 
108  // @{
109  virtual void setRadius(double x);
110  virtual double radius() const;
111  // @}
112 
114  // @{
115  virtual void setScale(float scale);
116  virtual float scale() const;
117  // @}
118 
120  // @{
121  virtual void setVisible(bool isVisible);
122  virtual bool isVisible() const;
123  // @}
124 
126  // @{
127  virtual void setNumberOfSpokes(unsigned int numSpokes);
128  virtual unsigned int numberOfSpokes() const;
129  // @}
130 
134  // @{
135  virtual void setNumberOfRings(unsigned int numRings);
136  virtual unsigned int numberOfRings() const;
137  // @}
138 
140  // @{
141  virtual void setIsInnerRingFilled(bool filled);
142  virtual bool isInnerRingFilled() const;
143  // @}
144 
148  // @{
149  virtual void setRingIntervalDistance(double interval);
150  virtual double ringIntervalDistance() const;
151  // @}
152 
154  // @{
155  virtual void setLineStipplePattern(unsigned int stipplePattern);
156  virtual unsigned int lineStipplePattern() const;
157  // @}
158 
160  // @{
161  virtual void setLineWidth(float width);
162  virtual float lineWidth() const;
163  // @}
164 
167  // @{
168  virtual void setColor(float r, float g, float b, float a);
169  virtual bool getColor(float& r, float& g, float& b, float& a) const;
170  // @}
171 
174  // @{
175  virtual void setOpacity(float opacity);
176  virtual float opacity() const;
177  // @}
178 
180  // @{
181  virtual void setEventsEnabled(bool enabled);
182  virtual bool eventsEnabled() const;
183  // @}
184 
192  // @{
193  virtual void setListenToDisplayUnitSettings(bool listen);
194  virtual bool listenToDisplayUnitSettings() const;
195  // @}
196 
201  // @{
202  virtual void setGroup(int groupNum);
203  virtual int group() const;
204  // @}
205 
210  // @{
211  virtual void setIsDecorated(bool isDecorated);
212  virtual bool isDecorated() const;
213  // @}
214 
216  // @{
217  virtual void setFontFile(std::string fontFile);
218  virtual std::string fontFile() const;
219  // @}
220 
222  // @{
223  virtual void setFontPointSize(float pointSize);
224  virtual float fontPointSize() const;
225  // @}
226 
228  // @{
229  virtual void setFontColor(float r, float g, float b, float a);
230  virtual bool getFontColor(float& r, float& g, float& b, float& a) const;
231  // @}
232 
236  // @{
237  virtual void setDistanceUnit(DtSharedDisplayUnitsSettings::DistanceUnits unit);
238  virtual DtSharedDisplayUnitsSettings::DistanceUnits distanceUnit() const;
239  // @}
240 
244  // @{
245  virtual void setDistanceDecimals(unsigned int decimals);
246  virtual unsigned int distanceDecimals() const;
247  // @}
248 
252  // @{
253  virtual void setOrientationUnit(DtSharedDisplayUnitsSettings::OrientationUnits unit);
254  virtual DtSharedDisplayUnitsSettings::OrientationUnits orientationUnit() const;
255  // @}
256 
260  // @{
261  virtual void setOrientationDecimals(unsigned int decimals);
262  virtual unsigned int orientationDecimals() const;
263  // @}
264 
268  // @{
269  virtual void setNorthUnit(DtSharedDisplayUnitsSettings::NorthUnits unit);
270  virtual DtSharedDisplayUnitsSettings::NorthUnits northUnit() const;
271  // @}
272 
274 
275  // @name Inherited DtModel methods
276  // @{
277 
279  virtual void setModelDefinition(const std::string& str);
280 
283  virtual void setPosition(int vtx, const DtVector& position);
284 
285  // @}
286 
288  virtual void update();
289 
290  protected:
291 
292  // @name Inherited DtModel methods
293  // @{
294 
296  virtual void addToScene(const DtUniqueID& sceneObjectId, int modelSet, int visualizerType);
297 
299  virtual void removeFromScene();
300 
304  virtual void setIsSupportModel(bool isSupport);
305 
306  // @}
307 
309  virtual void needsUpdate();
310 
312  virtual void slot_displayUnitUnitChanged(const DtUnicode& displayUnitCollectionName,
313  const DtUnicode& displayUnitName, unsigned int newUnit, unsigned int oldUnit);
314 
316  virtual void slot_displayUnitDecimalsChanged(const DtUnicode& displayUnitCollectionName,
317  const DtUnicode& displayUnitName, unsigned int newDecimals, unsigned int oldDecimals);
318 
319  private:
322 
325 
328 
329  protected:
331 
333 
335  float myHeading;
336 
339 
342  };
343 
344 }
A unicode string.
Definition: DtUnicode.h:33
DtSignalConnectionManager myConnections
Definition: DtOsgOverlaySpiderWebModel.h:340
DtUniqueID myParentId
Definition: DtOsgOverlaySpiderWebModel.h:337
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
bool myNeedsUpdate
Definition: DtOsgOverlaySpiderWebModel.h:338
NorthUnits
Enumeration of the different north units.
Definition: DtDisplayUnitsSettingsRecord.h:149
bool myListenToDisplayUnitSettings
Definition: DtOsgOverlaySpiderWebModel.h:332
DistanceUnits
Enumeration of the different distance units.
Definition: DtDisplayUnitsSettingsRecord.h:56
Contains the DtSharedDisplayUnitsSettings class declaration.
Interface class for an Overlay Spider Web Model.
Definition: DtOverlaySpiderWebModel.h:65
float myHeading
Definition: DtOsgOverlaySpiderWebModel.h:335
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
DtSharedDisplayUnitsSettings::NorthUnits myNorthToUse
Definition: DtOsgOverlaySpiderWebModel.h:334
OrientationUnits
Enumeration of the different orientation units.
Definition: DtDisplayUnitsSettingsRecord.h:101
Base class to provide boost signal/slot management.
Contains makVrv::DtUniqueID type.
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Contains the makVrv::DtOverlaySpiderWebModel class declaration.
DtSignalConnectionManager myDisplayUnitConnections
Definition: DtOsgOverlaySpiderWebModel.h:341
double myOffsetAngle
Definition: DtOsgOverlaySpiderWebModel.h:330
An OSG implementation of the Overlay Spider Web Model.
Definition: DtOsgOverlaySpiderWebModel.h:66

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)