VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes
makVrv::DtOsgWindowEllipseInstance Class Reference

vrvGraphics implementation of a 2D ellipse More...

Inheritance diagram for makVrv::DtOsgWindowEllipseInstance:
Inheritance graph
[legend]

List of all members.

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

DtDemyDe
DtPolygonmyPolygon
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

Detailed Description

vrvGraphics implementation of a 2D ellipse


Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

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.

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.


Member Data Documentation


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)