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

Public Member Functions | |
| DtWindowPolygon (DtDe &de, DtUniqueID id) | |
| CTOR. | |
| virtual | ~DtWindowPolygon () |
| DTOR. | |
| virtual void | setVertex (int i, double x, double y) |
| Set the ith vertex of the polygon. | |
| virtual void | setNumVertices (int numVertices) |
| Set the number of vertices in the polygon. | |
| virtual void | setScale (double scale) |
| Set the polygon's scale. | |
| virtual void | setRotation (double rotation) |
| Set the polygon's clockwise rotation in radians. | |
| virtual void | setVisible (bool isVisible) |
| Set the polygon visible or invisible. | |
| virtual void | setStipplePattern (unsigned int stipplePattern) |
| Set the stipple pattern. | |
| virtual void | setColor (float r, float g, float b, float a) |
| Set the polygon's color. | |
| virtual void | setInstance (DtWindowPolygonInstance *instance) |
| Set or replace the line instance for the line Transfers ownership. | |
| virtual void | setFill (bool fill) |
| Set the polygon to filled or outlined. | |
| virtual DtWindowPolygonInstance * | instance () |
| Get the line instance for the line. | |
Protected Attributes | |
| DtWindowPolygonInstance * | myInstance |
A model-like object that draws a 2D polygon.
| makVrv::DtWindowPolygon::DtWindowPolygon | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
| virtual makVrv::DtWindowPolygon::~DtWindowPolygon | ( | ) | [virtual] |
DTOR.
| virtual void makVrv::DtWindowPolygon::setVertex | ( | int | i, |
| double | x, | ||
| double | y | ||
| ) | [virtual] |
Set the ith vertex of the polygon.
| virtual void makVrv::DtWindowPolygon::setNumVertices | ( | int | numVertices | ) | [virtual] |
Set the number of vertices in the polygon.
| virtual void makVrv::DtWindowPolygon::setScale | ( | double | scale | ) | [virtual] |
Set the polygon's scale.
| virtual void makVrv::DtWindowPolygon::setRotation | ( | double | rotation | ) | [virtual] |
Set the polygon's clockwise rotation in radians.
| virtual void makVrv::DtWindowPolygon::setVisible | ( | bool | isVisible | ) | [virtual] |
Set the polygon visible or invisible.
Implements makVrv::DtWindowObject.
| virtual void makVrv::DtWindowPolygon::setStipplePattern | ( | unsigned int | stipplePattern | ) | [virtual] |
Set the stipple pattern.
| virtual void makVrv::DtWindowPolygon::setColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Set the polygon's color.
| virtual void makVrv::DtWindowPolygon::setInstance | ( | DtWindowPolygonInstance * | instance | ) | [virtual] |
Set or replace the line instance for the line Transfers ownership.
| virtual void makVrv::DtWindowPolygon::setFill | ( | bool | fill | ) | [virtual] |
Set the polygon to filled or outlined.
| virtual DtWindowPolygonInstance* makVrv::DtWindowPolygon::instance | ( | ) | [virtual] |
Get the line instance for the line.