VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | 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]

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.
- Public Member Functions inherited from makVrv::DtWindowEllipseInstance
virtual ~DtWindowEllipseInstance ()
 DTOR.
- Public Member Functions inherited from makVrv::DtSetVisibilityInterface
virtual ~DtSetVisibilityInterface ()

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

makVrv::DtOsgWindowEllipseInstance::DtOsgWindowEllipseInstance ( DtDe de)

CTOR.

virtual makVrv::DtOsgWindowEllipseInstance::~DtOsgWindowEllipseInstance ( )
virtual

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.

virtual bool makVrv::DtOsgWindowEllipseInstance::visible ( )
virtual

Return visibility status.

static osg::Vec2 makVrv::DtOsgWindowEllipseInstance::rotate ( const osg::Vec2 &  v,
double  rad 
)
staticprotected

Utility function to rotate a vec2.

static osg::Vec2 makVrv::DtOsgWindowEllipseInstance::translate ( const osg::Vec2 &  v,
const osg::Vec2 &  translation 
)
staticprotected

Utility function to translate a vec2.

static osg::Vec2 makVrv::DtOsgWindowEllipseInstance::scale ( const osg::Vec2 &  v,
double  s 
)
staticprotected

Utility function to scale a vec2.

virtual void makVrv::DtOsgWindowEllipseInstance::updateVertices ( )
protectedvirtual

Generate the vertices of the graphic polygon that approximates the ellipse.

virtual void makVrv::DtOsgWindowEllipseInstance::createPolygon ( )
protectedvirtual

Create myPolygon according to current state Called from the constructor, so this can't be virtual.

Member Data Documentation

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

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

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)