VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtGraphAttribute.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2012 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 #include <vrvOsg/DtAttribute.h>
15 
16 #include <vrvCore/DtWidget.h>
17 
19 
20 #include <vector>
21 
22 namespace makVrv
23 {
24 
25  class DtDe;
26  class DtQuad;
27  class DtLineSegment;
28 
32  {
33  public:
34 
39  DtGraphAttribute( DtDe& de, int maxValues );
40 
42  virtual ~DtGraphAttribute();
43 
45  virtual void setOffset( double x, double y );
46 
49  virtual void setPosition( float x, float y, float z, float w );
50 
52  virtual void getMinSize( double& xOut, double& yOut );
53 
55  virtual void setSize( double x, double y );
56 
58  virtual void setColor( float r, float g, float b, float a );
59 
61  virtual void setPoint( unsigned int pointIndex, double x, double y );
62 
64  virtual void clear();
65 
67  virtual void setShadowText( bool enabled );
68 
70  virtual void setVisible( bool visible );
71 
73  virtual bool visible() const;
74 
77  virtual void setOverlay( unsigned int overlayId );
78 
81  virtual void setGroup( unsigned int group );
82 
83  protected:
84 
86  virtual void draw();
87 
88  protected:
89 
90  typedef std::vector<DtLineSegment*> LineSegments;
92 
93  typedef std::vector<DtQuad*> Quads;
95 
96  typedef std::vector<Dt2dPoint> DtPointList;
98 
100 
102 
103  float myX;
104  float myY;
105  float myZ;
106  float myW;
107 
108  double myOffsetX;
109  double myOffsetY;
110 
111  double mySizeX;
112  double mySizeY;
113 
114  float myR;
115  float myG;
116  float myB;
117  float myA;
118 
119  bool myVisible;
120 
122 
123  };
124 
125 }

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)