VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgWindowArc.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>
13 #include <vrvCore/DtWindowArc.h>
14 
15 #include <matrix/vlVector.h>
16 
17 namespace makVrv
18 {
19  class DtWindowArcInstance;
20 
47  {
48  public:
50 
51  virtual ~DtOsgWindowArc();
52 
54  virtual void setOrigin(const DtVector& position);
55  virtual DtVector getOrigin() const;
56 
59  virtual void setDimensions(double x, double y);
60  virtual bool getDimensions(double& x, double& y) const;
62 
65  virtual void setScale(float scale);
66  virtual float scale() const;
68 
71  virtual void setVisible(bool isVisible);
72  virtual bool isVisible() const;
74 
77  virtual void setMaxAngleSegment(double angleSegmentMax);
78  virtual double maxAngleSegment() const;
80 
83  virtual void setStartAngle(double startAngle);
84  virtual double startAngle() const;
86 
89  virtual void setEndAngle(double endAngle);
90  virtual double endAngle() const;
92 
95  virtual void setStipplePattern(unsigned int stipplePattern);
96  virtual unsigned int stipplePattern() const;
98 
102  virtual void setLineWidth(float width);
103  virtual float lineWidth() const;
105 
109  virtual void setColor(float r, float g, float b, float a);
110  virtual bool getColor(float& r, float& g, float& b, float& a) const;
112 
113  protected:
114 
117  virtual void setInstance(DtWindowArcInstance* instance);
118 
120  virtual DtWindowArcInstance* instance();
121 
123  virtual void update();
124 
126  virtual void needsUpdate();
127 
128  private:
130  DtOsgWindowArc();
131 
134 
136  DtOsgWindowArc& operator=(const DtOsgWindowArc &);
137 
138  protected:
141  };
142 }
143 
144 
DtWindowArcInstance * myInstance
Definition: DtOsgWindowArc.h:139
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
OSG implementation for an Arc drawn in screen space.
Definition: DtOsgWindowArc.h:46
bool myConnectedToPostUpdate
Definition: DtOsgWindowArc.h:140
Interface for an Arc drawn in screen space.
Definition: DtWindowArc.h:48
Contains DLL export macros.
Contains makVrv::DtWindowArc class.
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
Window version of 2D elliptical arc.
Definition: DtWindowArcInstance.h:45

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)