VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgOverlayWedgeModel.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2020 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
14 
15 namespace makVrv
16 {
53  {
54  public:
57 
59  virtual ~DtOsgOverlayWedgeModel();
60 
61  // @name Inherited DtOverlayWedgeModel methods
62  // @{
63 
65  // @{
66  virtual void setOrigin(const DtVector& position);
67  virtual DtVector origin() const;
68  // @}
69 
71  // @{
72  virtual void setRelativePosition(double x, double y, double z);
73  virtual DtVector relativePosition() const;
74  // @}
75 
77  virtual void setOrientation(const DtTaitBryan& orientation);
78 
80  // @{
81  virtual void setMaxAngleSegment(double angleSegmentMax);
82  virtual double maxAngleSegment() const;
83  // @}
84 
86  // @{
87  virtual void setRadius(float len);
88  virtual float radius() const;
89  // @}
90 
92  // @{
93  virtual void setScale(float scale);
94  virtual float scale() const;
95  // @}
96 
98  // @{
99  virtual void setVisible(bool isVisible);
100  virtual bool isVisible() const;
101  // @}
102 
104  // @{
105  virtual void setStartAngle(double startAngle);
106  virtual double startAngle() const;
107  // @}
108 
111  virtual void setWedgeSpan(double wedgeSpan);
112  virtual double wedgeSpan() const;
113 
116  // @{
117  virtual void setFill(bool);
118  virtual bool isFill() const;
119  // @}
120 
123  // @{
124  virtual void setOutline(bool);
125  virtual bool isOutline() const;
126  // @}
127 
130  // @{
131  virtual void setSolidFillCenter(bool);
132  virtual bool isSolidFillCenter() const;
133  // @}
134 
136  virtual void setFillPattern(const std::vector<unsigned int>&);
137 
139  // @{
140  virtual void setStipplePattern(unsigned int stipplePattern);
141  virtual unsigned int stipplePattern() const;
142  // @}
143 
146  // @{
147  virtual void setOutlineWidth(float width);
148  virtual float outlineWidth() const;
149  // @}
150 
153  virtual void setColor(float r, float g, float b, float a);
154 
157  // @{
158  virtual void setCentralVertexColor(float r, float g, float b, float a);
159  virtual bool getCentralVertexColor(float& r, float& g, float& b, float& a) const;
160  // @}
161 
164  // @{
165  virtual void setInsideColor(float r, float g, float b, float a);
166  virtual bool getInsideColor(float& r, float& g, float& b, float& a) const;
167  // @}
168 
171  // @{
172  virtual void setOutsideColor(float r, float g, float b, float a);
173  virtual bool getOutsideColor(float& r, float& g, float& b, float& a) const;
174  // @}
175 
177  // @{
178  virtual void setEventsEnabled(bool enabled);
179  virtual bool eventsEnabled() const;
180  // @}
181 
186  // @{
187  virtual void setGroup(int groupNum);
188  virtual int group() const;
189  // @{
190 
192 
193  // @name Inherited DtModel methods
194  // @{
195 
197  virtual void setPosition(int vtx, const DtVector& position);
198 
201  virtual void setOrientation(int vtx, const DtTaitBryan& orientation);
202 
203  // @}
204 
206  virtual void update();
207 
209  virtual void setModelDefinition(const std::string& str);
210 
211  protected:
212 
213  // @name Inherited DtModel methods
214  // @{
215 
217  virtual void addToScene(const DtUniqueID& sceneObjectId,
218  int modelSet, int visualizerType);
219 
221  virtual void removeFromScene();
222 
226  virtual void setIsSupportModel(bool isSupport);
227 
228  // @}
229 
231  virtual void needsUpdate();
232 
233  private:
236 
239 
242 
243  protected:
244  std::vector<DtVector> myDefinedVertices;
245 
248 
249  double myWedgeSpan;
250  double myStartAngle;
251  };
252 }
double myWedgeSpan
Definition: DtOsgOverlayWedgeModel.h:249
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
voidpf uLong int origin
Definition: ioapi.h:42
DtUniqueID myParentId
Definition: DtOsgOverlayWedgeModel.h:246
bool myNeedsUpdate
Definition: DtOsgOverlayWedgeModel.h:247
double myStartAngle
Definition: DtOsgOverlayWedgeModel.h:250
Interface class for an Overlay Circular Wedge Model An overlay model is positioned in 3D space and dr...
Definition: DtOverlayWedgeModel.h:57
Contains the makVrv::DtOverlayWedgeModel class declaration.
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
An OSG implementation of the Overlay Circular Wedge Model.
Definition: DtOsgOverlayWedgeModel.h:52
std::vector< DtVector > myDefinedVertices
Definition: DtOsgOverlayWedgeModel.h:244

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)