VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtGraphAttribute.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2023 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
14 #include <vrvCore/DtAttribute.h>
15 #include <vrvCore/DtWidget.h>
16 #include <vrvCore/DtBoundingBox.h>
17 
19 
20 #include <vector>
21 
22 namespace makVrv
23 {
24 
25  class DtDe;
26  class DtQuadProxyInterface;
27  class DtLineSegment;
28  class DtBaseOutlineAttribute;
29 
32 
35 
37  template <>
38  inline const char* creatorTypeName<DtGraphAttribute>(void) { return "DtGraphAttributeCreator"; }
39 
43  {
45 
46  public:
47 
49  virtual ~DtGraphAttribute();
50 
52  DtGraphAttribute() = delete;
53 
56  const DtGraphAttribute &other) = delete;
57 
59  DtGraphAttribute &operator=(
60  const DtGraphAttribute &other) = delete;
61 
62  public:
63 
65  virtual void setOffset( double x, double y );
66 
69  virtual void setPosition( float x, float y, float z, float w );
70 
72  virtual void getMinSize( double& xOut, double& yOut );
73 
75  virtual void setSize( double x, double y );
76 
78  virtual void setColor( float r, float g, float b, float a );
79 
81  virtual void setPoint( unsigned int pointIndex, double x, double y );
82 
84  virtual void clear();
85 
87  virtual void setShadowText( bool enabled );
88 
90  virtual void setVisible( bool visible );
91 
93  virtual bool visible() const;
94 
98  virtual void setLodOutAltitude(double lodOutAltitude);
99 
102  virtual double lodOutAltitude() const;
103 
106  virtual void setIsLodOutAltitudeEnabled(bool isEnabled);
107 
110  virtual bool isLodOutAltitudeEnabled() const;
111 
114  virtual void setOverlay( unsigned int overlayId );
115 
118  virtual void setGroup( unsigned int group );
119 
120  protected:
121 
127  DtGraphAttribute(DtDe& de, int maxValues);
128 
130  virtual void draw();
131 
132  protected:
133 
134  typedef std::vector<DtLineSegment*> LineSegments;
136 
137  typedef std::vector<DtQuadProxyInterface*> Quads;
139 
140  typedef std::vector<Dt2dPoint> DtPointList;
142 
144 
146 
147  float myX;
148  float myY;
149  float myZ;
150  float myW;
151 
152  double myOffsetX;
153  double myOffsetY;
154 
155  double mySizeX;
156  double mySizeY;
157 
158  float myR;
159  float myG;
160  float myB;
161  float myA;
162 
163  bool myVisible;
164 
166 
167  };
168 
169 }
bool myVisible
Definition: DtGraphAttribute.h:163
int myMaxValues
Definition: DtGraphAttribute.h:165
float myG
Definition: DtGraphAttribute.h:159
DtPointList myPoints
Definition: DtGraphAttribute.h:141
double mySizeY
Definition: DtGraphAttribute.h:156
Contains the makVrv::DtBoundingBox class declaration.
double mySizeX
Definition: DtGraphAttribute.h:155
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
float myX
Definition: DtGraphAttribute.h:147
LineSegments myLineSegments
Definition: DtGraphAttribute.h:135
DtBaseOutlineAttribute * myOutline
Definition: DtGraphAttribute.h:143
friend DtGraphAttributeCreator
Definition: DtGraphAttribute.h:44
DtDe & myDe
Definition: DtGraphAttribute.h:145
float myA
Definition: DtGraphAttribute.h:161
std::vector< DtQuadProxyInterface * > Quads
Definition: DtGraphAttribute.h:137
The attribute layout tells DtAttributes where to draw.
Definition: DtBaseOutlineAttribute.h:36
The attribute layout tells DtAttributes where to draw.
Definition: DtAttribute.h:21
Contains makVrv::DtWidget class.
Variadic templated creator class for defining a DtVirtualBaseClass creator that is automatically regi...
Definition: DtVirtualBaseClassCreator.h:23
double myOffsetY
Definition: DtGraphAttribute.h:153
DtVirtualBaseClassCreator< DtGraphAttribute, int & > DtGraphAttributeCreator
creator
Definition: DtGraphAttribute.h:31
std::vector< DtLineSegment * > LineSegments
Definition: DtGraphAttribute.h:134
float myR
Definition: DtGraphAttribute.h:158
float myY
Definition: DtGraphAttribute.h:148
Quads myQuads
Definition: DtGraphAttribute.h:138
double myOffsetX
Definition: DtGraphAttribute.h:152
std::vector< Dt2dPoint > DtPointList
Definition: DtGraphAttribute.h:140
float myZ
Definition: DtGraphAttribute.h:149
const char * creatorTypeName< DtGraphAttribute >(void)
template specialization for the creator (pass the class being created to the creatorTypeName template...
Definition: DtGraphAttribute.h:38
float myW
Definition: DtGraphAttribute.h:150
Contains DLL export macros.
float myB
Definition: DtGraphAttribute.h:160
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:76
Contains the DtAttribute class declaration.
The attribute layout tells DtAttributes where to draw.
Definition: DtGraphAttribute.h:42

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)