![]() |
VR-Forces 4.3.1 Class Documentation
|
vrvGraphics implementation of a 2D polygon More...

Public Member Functions | |
| DtOsgWindowPolygonInstance (DtDe &de) | |
| CTOR. | |
| virtual | ~DtOsgWindowPolygonInstance () |
| DTOR. | |
| virtual void | setVisible (bool isVisible) |
| Set the polygon visible or invisible. | |
| virtual void | setFillPattern (unsigned int fillPattern) |
| Set the polygon's fill pattern. | |
| virtual void | setScale (double scale) |
| Set the polygon's scale. | |
| virtual void | setRotation (double rotation) |
| Set the polygon's rotation in radians clockwise. | |
| virtual void | setNumVertices (unsigned int numVertices) |
| Set the number of vertices in the polygon. | |
| virtual void | setVertex (int i, double x, double y) |
| Set one of the polygon's vertices. | |
| virtual void | setColor (float r, float g, float b, float a) |
| Set the polygon's color. | |
| virtual void | setFill (bool fill) |
| Set the polygon filled or outlined. | |
| virtual const VertexList & | vertices () const |
| Get the polygon's vertices. | |
| virtual bool | visible () const |
| Get the polygon's visibility status. | |
Public Member Functions inherited from makVrv::DtWindowPolygonInstance | |
| virtual | ~DtWindowPolygonInstance () |
| DTOR. | |
Public Member Functions inherited from makVrv::DtSetVisibilityInterface | |
| virtual | ~DtSetVisibilityInterface () |
Protected Member Functions | |
| virtual void | updateVertices () |
| Update the graphic polygon's vertices according to the current state. | |
| void | createPolygon () |
| Create myPolygon according to current state Called from the constructor, so this can't be virtual. | |
Static Protected Member Functions | |
| static osg::Vec2 | rotate (const osg::Vec2 &v, double rad) |
| Utility function to rotate a vec2. | |
| static osg::Vec2 | translate (const osg::Vec2 &v, const osg::Vec2 &translation) |
| Utility function to translate a vec2. | |
| static osg::Vec2 | scale (const osg::Vec2 &v, double s) |
| Utility function to scale a vec2. | |
Protected Attributes | |
| DtDe & | myDe |
| DtPolygon * | myPolygon |
| VertexList | myVertices |
| double | myRotation |
| double | myScale |
| unsigned int | myFillPattern |
| float | myColorR |
| float | myColorG |
| float | myColorB |
| float | myColorA |
| bool | myFill |
Additional Inherited Members | |
Public Types inherited from makVrv::DtWindowPolygonInstance | |
| typedef std::vector< Vertex > | VertexList |
vrvGraphics implementation of a 2D polygon
| makVrv::DtOsgWindowPolygonInstance::DtOsgWindowPolygonInstance | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Set the polygon visible or invisible.
Implements makVrv::DtSetVisibilityInterface.
|
virtual |
Set the polygon's fill pattern.
Implements makVrv::DtWindowPolygonInstance.
|
virtual |
Set the polygon's scale.
Implements makVrv::DtWindowPolygonInstance.
|
virtual |
Set the polygon's rotation in radians clockwise.
Implements makVrv::DtWindowPolygonInstance.
|
virtual |
Set the number of vertices in the polygon.
Implements makVrv::DtWindowPolygonInstance.
|
virtual |
Set one of the polygon's vertices.
Implements makVrv::DtWindowPolygonInstance.
|
virtual |
Set the polygon's color.
Implements makVrv::DtWindowPolygonInstance.
|
virtual |
Set the polygon filled or outlined.
Implements makVrv::DtWindowPolygonInstance.
|
virtual |
Get the polygon's vertices.
Implements makVrv::DtWindowPolygonInstance.
|
virtual |
Get the polygon's visibility status.
|
staticprotected |
Utility function to rotate a vec2.
|
staticprotected |
Utility function to translate a vec2.
|
staticprotected |
Utility function to scale a vec2.
|
protectedvirtual |
Update the graphic polygon's vertices according to the current state.
|
protected |
Create myPolygon according to current state Called from the constructor, so this can't be virtual.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |