![]() |
VR-Forces 4.0.4 Class Documentation
|
The attribute layout tells DtAttributes where to draw. More...

Public Member Functions | |
| DtGraphAttribute (DtDe &de, int maxValues) | |
| CTOR maxValues is the maximum number of values to store in the graph; when this maximum is reached, the graph will throw out the oldest values as new values are added. | |
| virtual | ~DtGraphAttribute () |
| DTOR. | |
| virtual void | setOffset (double x, double y) |
| Set the position of the attribute (generally the top left corner) | |
| virtual void | setPosition (float x, float y, float z, float w) |
| Set the position of the attribute in world space, using vrvGraphics float packing. | |
| virtual void | getMinSize (double &xOut, double &yOut) |
| Get the size of the attribute. | |
| virtual void | setSize (double x, double y) |
| Set the size of the attribute. | |
| virtual void | setColor (float r, float g, float b, float a) |
| Set the color of the bar. | |
| virtual void | setPoint (unsigned int pointIndex, double x, double y) |
| Set the pointIndex'th point. | |
| virtual void | clear () |
| Clear the graph. | |
| virtual void | setVisible (bool visible) |
| Set the attribute visible or hidden. | |
| virtual bool | visible () const |
| Get the visibility of the attribute. | |
| virtual void | setOverlay (unsigned int overlayId) |
| Set the overlay to draw the attribute on Overlay ids are defined in DtOverlayManager. | |
| virtual void | setGroup (unsigned int group) |
| Set the group to draw the atribute on. | |
Protected Types | |
| typedef std::vector < DtLineSegment * > | LineSegments |
| typedef std::vector< DtQuad * > | Quads |
| typedef std::vector< DtPoint > | DtPointList |
Protected Member Functions | |
| virtual void | draw () |
| Draw the graph. | |
Protected Attributes | |
| LineSegments | myLineSegments |
| Quads | myQuads |
| DtPointList | myPoints |
| DtBaseOutlineAttribute | myOutline |
| DtDe & | myDe |
| float | myX |
| float | myY |
| float | myZ |
| float | myW |
| double | myOffsetX |
| double | myOffsetY |
| double | mySizeX |
| double | mySizeY |
| float | myR |
| float | myG |
| float | myB |
| float | myA |
| bool | myVisible |
| int | myMaxValues |
The attribute layout tells DtAttributes where to draw.
typedef std::vector<DtLineSegment*> makVrv::DtGraphAttribute::LineSegments [protected] |
typedef std::vector<DtQuad*> makVrv::DtGraphAttribute::Quads [protected] |
typedef std::vector<DtPoint> makVrv::DtGraphAttribute::DtPointList [protected] |
| makVrv::DtGraphAttribute::DtGraphAttribute | ( | DtDe & | de, |
| int | maxValues | ||
| ) |
CTOR maxValues is the maximum number of values to store in the graph; when this maximum is reached, the graph will throw out the oldest values as new values are added.
Values of maxValue < 0 indicate no limit.
| virtual makVrv::DtGraphAttribute::~DtGraphAttribute | ( | ) | [virtual] |
DTOR.
| virtual void makVrv::DtGraphAttribute::setOffset | ( | double | x, |
| double | y | ||
| ) | [virtual] |
Set the position of the attribute (generally the top left corner)
Reimplemented from makVrv::DtAttribute.
| virtual void makVrv::DtGraphAttribute::setPosition | ( | float | x, |
| float | y, | ||
| float | z, | ||
| float | w | ||
| ) | [virtual] |
Set the position of the attribute in world space, using vrvGraphics float packing.
Implements makVrv::DtAttribute.
| virtual void makVrv::DtGraphAttribute::getMinSize | ( | double & | xOut, |
| double & | yOut | ||
| ) | [virtual] |
Get the size of the attribute.
Implements makVrv::DtAttribute.
| virtual void makVrv::DtGraphAttribute::setSize | ( | double | x, |
| double | y | ||
| ) | [virtual] |
Set the size of the attribute.
Implements makVrv::DtAttribute.
| virtual void makVrv::DtGraphAttribute::setColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Set the color of the bar.
Implements makVrv::DtAttribute.
| virtual void makVrv::DtGraphAttribute::setPoint | ( | unsigned int | pointIndex, |
| double | x, | ||
| double | y | ||
| ) | [virtual] |
Set the pointIndex'th point.
| virtual void makVrv::DtGraphAttribute::clear | ( | ) | [virtual] |
Clear the graph.
| virtual void makVrv::DtGraphAttribute::setVisible | ( | bool | visible | ) | [virtual] |
Set the attribute visible or hidden.
Implements makVrv::DtAttribute.
| virtual bool makVrv::DtGraphAttribute::visible | ( | ) | const [virtual] |
Get the visibility of the attribute.
Implements makVrv::DtAttribute.
| virtual void makVrv::DtGraphAttribute::setOverlay | ( | unsigned int | overlayId | ) | [virtual] |
Set the overlay to draw the attribute on Overlay ids are defined in DtOverlayManager.
Implements makVrv::DtAttribute.
| virtual void makVrv::DtGraphAttribute::setGroup | ( | unsigned int | group | ) | [virtual] |
Set the group to draw the atribute on.
The group specifies the z order of the attribute on the overlay.
Implements makVrv::DtAttribute.
| virtual void makVrv::DtGraphAttribute::draw | ( | ) | [protected, virtual] |
Draw the graph.
LineSegments makVrv::DtGraphAttribute::myLineSegments [protected] |
Quads makVrv::DtGraphAttribute::myQuads [protected] |
DtPointList makVrv::DtGraphAttribute::myPoints [protected] |
DtDe& makVrv::DtGraphAttribute::myDe [protected] |
float makVrv::DtGraphAttribute::myX [protected] |
float makVrv::DtGraphAttribute::myY [protected] |
float makVrv::DtGraphAttribute::myZ [protected] |
float makVrv::DtGraphAttribute::myW [protected] |
double makVrv::DtGraphAttribute::myOffsetX [protected] |
double makVrv::DtGraphAttribute::myOffsetY [protected] |
double makVrv::DtGraphAttribute::mySizeX [protected] |
double makVrv::DtGraphAttribute::mySizeY [protected] |
float makVrv::DtGraphAttribute::myR [protected] |
float makVrv::DtGraphAttribute::myG [protected] |
float makVrv::DtGraphAttribute::myB [protected] |
float makVrv::DtGraphAttribute::myA [protected] |
bool makVrv::DtGraphAttribute::myVisible [protected] |
int makVrv::DtGraphAttribute::myMaxValues [protected] |