![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /***************************************************************************** 00002 * Copyright (c) 2012 MAK Technologies, Inc. 00003 * All rights reserved. 00004 *****************************************************************************/ 00005 00009 00010 #pragma once 00011 00012 #include <vrvOsg/vrvOsg.h> 00013 #include <vrvOsg/DtAttribute.h> 00014 #include <vrvOsg/DtBaseOutlineAttribute.h> 00015 00016 #include <vrvCore/DtWidget.h> 00017 00018 #include <vrvGraphics/DtBoundingBox.h> 00019 00020 #include <vector> 00021 00022 namespace makVrv 00023 { 00024 00025 class DtDe; 00026 class DtQuad; 00027 class DtLineSegment; 00028 00031 class DT_DLL_VRVOSG DtGraphAttribute : public DtAttribute 00032 { 00033 public: 00034 00039 DtGraphAttribute( DtDe& de, int maxValues ); 00040 00042 virtual ~DtGraphAttribute(); 00043 00045 virtual void setOffset( double x, double y ); 00046 00049 virtual void setPosition( float x, float y, float z, float w ); 00050 00052 virtual void getMinSize( double& xOut, double& yOut ); 00053 00055 virtual void setSize( double x, double y ); 00056 00058 virtual void setColor( float r, float g, float b, float a ); 00059 00061 virtual void setPoint( unsigned int pointIndex, double x, double y ); 00062 00064 virtual void clear(); 00065 00067 virtual void setVisible( bool visible ); 00068 00070 virtual bool visible() const; 00071 00074 virtual void setOverlay( unsigned int overlayId ); 00075 00078 virtual void setGroup( unsigned int group ); 00079 00080 protected: 00081 00083 virtual void draw(); 00084 00085 protected: 00086 00087 typedef std::vector<DtLineSegment*> LineSegments; 00088 LineSegments myLineSegments; 00089 00090 typedef std::vector<DtQuad*> Quads; 00091 Quads myQuads; 00092 00093 typedef std::vector<DtPoint> DtPointList; 00094 DtPointList myPoints; 00095 00096 DtBaseOutlineAttribute myOutline; 00097 00098 DtDe& myDe; 00099 00100 float myX; 00101 float myY; 00102 float myZ; 00103 float myW; 00104 00105 double myOffsetX; 00106 double myOffsetY; 00107 00108 double mySizeX; 00109 double mySizeY; 00110 00111 float myR; 00112 float myG; 00113 float myB; 00114 float myA; 00115 00116 bool myVisible; 00117 00118 int myMaxValues; 00119 00120 }; 00121 00122 }