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

Public Member Functions | |
| DtOsgWindowEllipseInstance (DtDe &de) | |
| CTOR. | |
| virtual | ~DtOsgWindowEllipseInstance () |
| DTOR. | |
| virtual void | setVisible (bool isVisible) |
| Set the ellipse to visible or invisible. | |
| virtual void | setFillPattern (unsigned int fillPattern) |
| Set the ellipse's fill pattern. | |
| virtual void | setFill (bool fill) |
| Set the ellipse filled or outlined. | |
| virtual void | setScale (double scale) |
| Set the ellipse's scale. | |
| virtual void | setRotation (double rotation) |
| Set the ellipse's rotation in radians clockwise. | |
| virtual void | setNumVertices (unsigned int numVertices) |
| Set the number of vertices in the ellipse. | |
| virtual void | setDimensions (double xLength, double yLength) |
| Set the lengths of the ellipse's axes in normalized screen coordinates. | |
| virtual void | setCenter (double x, double y) |
| Set the location of the ellipse's center in normalized screen coordinates. | |
| virtual void | setColor (float r, float g, float b, float a) |
| Set the ellipse's color. | |
| virtual bool | visible () |
| Return visibility status. | |
Protected Member Functions | |
| virtual void | updateVertices () |
| Generate the vertices of the graphic polygon that approximates the ellipse. | |
| virtual 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 |
| double | myRotation |
| double | myScale |
| unsigned int | myFillPattern |
| float | myColorR |
| float | myColorG |
| float | myColorB |
| float | myColorA |
| bool | myFill |
| osg::Vec2 | myDimensions |
| osg::Vec2 | myCenter |
| int | myNumVertices |
vrvGraphics implementation of a 2D ellipse
| virtual makVrv::DtOsgWindowEllipseInstance::~DtOsgWindowEllipseInstance | ( | ) | [virtual] |
DTOR.
| virtual void makVrv::DtOsgWindowEllipseInstance::setVisible | ( | bool | isVisible | ) | [virtual] |
Set the ellipse to visible or invisible.
Implements makVrv::DtSetVisibilityInterface.
| virtual void makVrv::DtOsgWindowEllipseInstance::setFillPattern | ( | unsigned int | fillPattern | ) | [virtual] |
Set the ellipse's fill pattern.
Implements makVrv::DtWindowEllipseInstance.
| virtual void makVrv::DtOsgWindowEllipseInstance::setFill | ( | bool | fill | ) | [virtual] |
Set the ellipse filled or outlined.
Implements makVrv::DtWindowEllipseInstance.
| virtual void makVrv::DtOsgWindowEllipseInstance::setScale | ( | double | scale | ) | [virtual] |
Set the ellipse's scale.
Implements makVrv::DtWindowEllipseInstance.
| virtual void makVrv::DtOsgWindowEllipseInstance::setRotation | ( | double | rotation | ) | [virtual] |
Set the ellipse's rotation in radians clockwise.
Implements makVrv::DtWindowEllipseInstance.
| virtual void makVrv::DtOsgWindowEllipseInstance::setNumVertices | ( | unsigned int | numVertices | ) | [virtual] |
Set the number of vertices in the ellipse.
Implements makVrv::DtWindowEllipseInstance.
| virtual void makVrv::DtOsgWindowEllipseInstance::setDimensions | ( | double | xLength, |
| double | yLength | ||
| ) | [virtual] |
Set the lengths of the ellipse's axes in normalized screen coordinates.
Implements makVrv::DtWindowEllipseInstance.
| virtual void makVrv::DtOsgWindowEllipseInstance::setCenter | ( | double | x, |
| double | y | ||
| ) | [virtual] |
Set the location of the ellipse's center in normalized screen coordinates.
Implements makVrv::DtWindowEllipseInstance.
| virtual void makVrv::DtOsgWindowEllipseInstance::setColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Set the ellipse's color.
Implements makVrv::DtWindowEllipseInstance.
| virtual bool makVrv::DtOsgWindowEllipseInstance::visible | ( | ) | [virtual] |
Return visibility status.
| static osg::Vec2 makVrv::DtOsgWindowEllipseInstance::rotate | ( | const osg::Vec2 & | v, |
| double | rad | ||
| ) | [static, protected] |
Utility function to rotate a vec2.
| static osg::Vec2 makVrv::DtOsgWindowEllipseInstance::translate | ( | const osg::Vec2 & | v, |
| const osg::Vec2 & | translation | ||
| ) | [static, protected] |
Utility function to translate a vec2.
| static osg::Vec2 makVrv::DtOsgWindowEllipseInstance::scale | ( | const osg::Vec2 & | v, |
| double | s | ||
| ) | [static, protected] |
Utility function to scale a vec2.
| virtual void makVrv::DtOsgWindowEllipseInstance::updateVertices | ( | ) | [protected, virtual] |
Generate the vertices of the graphic polygon that approximates the ellipse.
| virtual void makVrv::DtOsgWindowEllipseInstance::createPolygon | ( | ) | [protected, virtual] |
Create myPolygon according to current state Called from the constructor, so this can't be virtual.
DtDe& makVrv::DtOsgWindowEllipseInstance::myDe [protected] |
DtPolygon* makVrv::DtOsgWindowEllipseInstance::myPolygon [protected] |
double makVrv::DtOsgWindowEllipseInstance::myRotation [protected] |
double makVrv::DtOsgWindowEllipseInstance::myScale [protected] |
unsigned int makVrv::DtOsgWindowEllipseInstance::myFillPattern [protected] |
float makVrv::DtOsgWindowEllipseInstance::myColorR [protected] |
float makVrv::DtOsgWindowEllipseInstance::myColorG [protected] |
float makVrv::DtOsgWindowEllipseInstance::myColorB [protected] |
float makVrv::DtOsgWindowEllipseInstance::myColorA [protected] |
bool makVrv::DtOsgWindowEllipseInstance::myFill [protected] |
osg::Vec2 makVrv::DtOsgWindowEllipseInstance::myDimensions [protected] |
osg::Vec2 makVrv::DtOsgWindowEllipseInstance::myCenter [protected] |
int makVrv::DtOsgWindowEllipseInstance::myNumVertices [protected] |