VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | 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. More...
 
virtual ~DtOsgWindowEllipseInstance ()
 DTOR. More...
 
virtual void setVisible (bool isVisible)
 Set the ellipse to visible or invisible. More...
 
virtual void setFillPattern (unsigned int fillPattern)
 Set the ellipse's fill pattern. More...
 
virtual void setFill (bool fill)
 Set the ellipse filled or outlined. More...
 
virtual void setCenter (double x, double y)
 Set the center of the ellipse in normalized screen coordinates. More...
 
virtual void setScale (double x, double y)
 Set the ellipse's scale. More...
 
virtual void setNumVertices (unsigned int numVertices)
 Set the number of vertices in the ellipse. More...
 
virtual void setDimensions (double xLength, double yLength)
 Set the lengths of the ellipse's axes in normalized screen coordinates. More...
 
virtual void setColor (float r, float g, float b, float a)
 Set the ellipse's color. More...
 
virtual bool visible ()
 Return visibility status. More...
 
virtual void setTransform (DtMatrix3< double > transform)
 Sets the line's transform matrix, used to update the position and clockwise rotation of the vertices. More...
 
virtual void update ()
 Called on signal_postUpdate; time to update render data. More...
 
- Public Member Functions inherited from makVrv::DtWindowEllipseInstance
virtual ~DtWindowEllipseInstance ()
 DTOR. More...
 
- Public Member Functions inherited from makVrv::DtSetVisibilityInterface
virtual ~DtSetVisibilityInterface ()
 

Protected Types

typedef std::vector< osg::Vec2 > VertexList
 

Protected Member Functions

virtual void updateVertices ()
 Generate the vertices of the graphic polygon that approximates the ellipse. More...
 
virtual void createPolygon ()
 Create myPolygon according to current state Called from the constructor, so this can't be virtual. More...
 
virtual void setClipBox (DtVector2< double > bottomLeftLocation, DtVector2< double > topRightLocation)
 Set this objects clip box bounds. More...
 

Protected Attributes

DtDemyDe
 
DtPolygonmyPolygon
 
osg::Matrix myTransform
 
double myXScale
 
double myYScale
 
float myColorR
 
float myColorG
 
float myColorB
 
float myColorA
 
osg::Vec2 myDimensions
 
osg::Vec2 myCenter
 
osg::Vec2 myClipBoxBottomLeft
 
osg::Vec2 myClipBoxTopRight
 
unsigned int myFillPattern
 
int myNumVertices
 
bool myGeometryDirty
 
bool myFill
 

Detailed Description

vrvGraphics implementation of a 2D ellipse

Member Typedef Documentation

typedef std::vector<osg::Vec2> makVrv::DtOsgWindowEllipseInstance::VertexList
protected

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::setCenter ( double  x,
double  y 
)
virtual

Set the center of the ellipse in normalized screen coordinates.

Implements makVrv::DtWindowEllipseInstance.

virtual void makVrv::DtOsgWindowEllipseInstance::setScale ( double  x,
double  y 
)
virtual

Set the ellipse's scale.

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::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.

virtual void makVrv::DtOsgWindowEllipseInstance::setTransform ( DtMatrix3< double transform)
virtual

Sets the line's transform matrix, used to update the position and clockwise rotation of the vertices.

Implements makVrv::DtWindowEllipseInstance.

virtual void makVrv::DtOsgWindowEllipseInstance::update ( )
virtual

Called on signal_postUpdate; time to update render data.

Implements makVrv::DtWindowEllipseInstance.

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.

virtual void makVrv::DtOsgWindowEllipseInstance::setClipBox ( DtVector2< double bottomLeftLocation,
DtVector2< double topRightLocation 
)
protectedvirtual

Set this objects clip box bounds.

Implements makVrv::DtWindowEllipseInstance.

Member Data Documentation

DtDe& makVrv::DtOsgWindowEllipseInstance::myDe
protected
DtPolygon* makVrv::DtOsgWindowEllipseInstance::myPolygon
protected
osg::Matrix makVrv::DtOsgWindowEllipseInstance::myTransform
protected
double makVrv::DtOsgWindowEllipseInstance::myXScale
protected
double makVrv::DtOsgWindowEllipseInstance::myYScale
protected
float makVrv::DtOsgWindowEllipseInstance::myColorR
protected
float makVrv::DtOsgWindowEllipseInstance::myColorG
protected
float makVrv::DtOsgWindowEllipseInstance::myColorB
protected
float makVrv::DtOsgWindowEllipseInstance::myColorA
protected
osg::Vec2 makVrv::DtOsgWindowEllipseInstance::myDimensions
protected
osg::Vec2 makVrv::DtOsgWindowEllipseInstance::myCenter
protected
osg::Vec2 makVrv::DtOsgWindowEllipseInstance::myClipBoxBottomLeft
protected
osg::Vec2 makVrv::DtOsgWindowEllipseInstance::myClipBoxTopRight
protected
unsigned int makVrv::DtOsgWindowEllipseInstance::myFillPattern
protected
int makVrv::DtOsgWindowEllipseInstance::myNumVertices
protected
bool makVrv::DtOsgWindowEllipseInstance::myGeometryDirty
protected
bool makVrv::DtOsgWindowEllipseInstance::myFill
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)