![]() |
VR-Forces 4.0.4 Class Documentation
|
A model-like object that draws a 2D ellipse. More...

Public Member Functions | |
| DtWindowEllipse (DtDe &de, DtUniqueID id) | |
| CTOR. | |
| virtual | ~DtWindowEllipse () |
| DTOR. | |
| virtual void | setCenter (double x, double y) |
| Set the center of the ellipse in normalized screen coordinates. | |
| virtual void | setDimensions (double xLength, double yLength) |
| Set the dimensions of the ellipse (the lengths of its axes) in normalizes screen coordinates. | |
| virtual void | setNumVertices (int numVertices) |
| Set the number of vertices to use in approximating the ellipse; Default is 32. | |
| virtual void | setScale (double scale) |
| Set the ellipse's scale. | |
| virtual void | setRotation (double rotation) |
| Set the ellipse's clockwise rotation in radians. | |
| virtual void | setVisible (bool isVisible) |
| Set the ellipse's visibility. | |
| virtual void | setStipplePattern (unsigned int stipplePattern) |
| Set the stipple pattern. | |
| virtual void | setColor (float r, float g, float b, float a) |
| Set the ellipse's color. | |
| virtual void | setFill (bool fill) |
| Set the ellipse to filled or outlined. | |
| virtual void | setInstance (DtWindowEllipseInstance *instance) |
| Set or replace the line instance for the line Transfers ownership. | |
| virtual DtWindowEllipseInstance * | instance () |
| Get the line instance for the line. | |
Protected Attributes | |
| DtWindowEllipseInstance * | myInstance |
A model-like object that draws a 2D ellipse.
| makVrv::DtWindowEllipse::DtWindowEllipse | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
| virtual makVrv::DtWindowEllipse::~DtWindowEllipse | ( | ) | [virtual] |
DTOR.
| virtual void makVrv::DtWindowEllipse::setCenter | ( | double | x, |
| double | y | ||
| ) | [virtual] |
Set the center of the ellipse in normalized screen coordinates.
For example, setCenter(0.1, 0.5) sets the center to 10% horizontally from the left of the creen and 50% vertically from the bottom
| virtual void makVrv::DtWindowEllipse::setDimensions | ( | double | xLength, |
| double | yLength | ||
| ) | [virtual] |
Set the dimensions of the ellipse (the lengths of its axes) in normalizes screen coordinates.
For example, setDimensions(0.3, 0.5) sets the ellipse to 30% of the screen size horizontally and 50% vertically.
| virtual void makVrv::DtWindowEllipse::setNumVertices | ( | int | numVertices | ) | [virtual] |
Set the number of vertices to use in approximating the ellipse; Default is 32.
| virtual void makVrv::DtWindowEllipse::setScale | ( | double | scale | ) | [virtual] |
Set the ellipse's scale.
| virtual void makVrv::DtWindowEllipse::setRotation | ( | double | rotation | ) | [virtual] |
Set the ellipse's clockwise rotation in radians.
| virtual void makVrv::DtWindowEllipse::setVisible | ( | bool | isVisible | ) | [virtual] |
Set the ellipse's visibility.
Implements makVrv::DtWindowObject.
| virtual void makVrv::DtWindowEllipse::setStipplePattern | ( | unsigned int | stipplePattern | ) | [virtual] |
Set the stipple pattern.
| virtual void makVrv::DtWindowEllipse::setColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Set the ellipse's color.
| virtual void makVrv::DtWindowEllipse::setFill | ( | bool | fill | ) | [virtual] |
Set the ellipse to filled or outlined.
| virtual void makVrv::DtWindowEllipse::setInstance | ( | DtWindowEllipseInstance * | instance | ) | [virtual] |
Set or replace the line instance for the line Transfers ownership.
| virtual DtWindowEllipseInstance* makVrv::DtWindowEllipse::instance | ( | ) | [virtual] |
Get the line instance for the line.