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::DtOsgWindowPolygonInstance Class Reference

vrvGraphics implementation of a 2D polygon More...

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

Public Member Functions

 DtOsgWindowPolygonInstance (DtDe &de)
 CTOR. More...
 
virtual ~DtOsgWindowPolygonInstance ()
 DTOR. More...
 
virtual void setVisible (bool isVisible)
 Set the polygon visible or invisible. More...
 
virtual void setFillPattern (unsigned int fillPattern)
 Set the polygon's fill pattern. More...
 
virtual void setNumVertices (unsigned int numVertices)
 Set the number of vertices in the polygon. More...
 
virtual void setVertex (int i, double x, double y)
 Set one of the polygon's vertices. More...
 
virtual void setColor (float r, float g, float b, float a)
 Set the polygon's color. More...
 
virtual void setFill (bool fill)
 Set the polygon filled or outlined. More...
 
virtual bool visible () const
 Get the polygon's 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 setScale (double x, double y)
 Set the scale of the polygon's x y components. More...
 
virtual void update ()
 Called on signal_postUpdate; time to update render data. More...
 
- Public Member Functions inherited from makVrv::DtWindowPolygonInstance
virtual ~DtWindowPolygonInstance ()
 DTOR. More...
 
- Public Member Functions inherited from makVrv::DtSetVisibilityInterface
virtual ~DtSetVisibilityInterface ()
 

Protected Types

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

Protected Member Functions

virtual void getCenterOfVertices (osg::Vec2 &center)
 Calculate the center of the vertices. More...
 
virtual void getCenterOfVertices (DtVector2< double > &center)
 Get the line's center in a non-osg variable. More...
 
virtual void updateGeometry ()
 Update the graphic polygon's vertices according to the current state. More...
 
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
 
VertexList myVertices
 
osg::Matrix myTransform
 
double myXScale
 
double myYScale
 
unsigned int myFillPattern
 
float myColorR
 
float myColorG
 
float myColorB
 
float myColorA
 
bool myFill
 
bool myVisible
 
bool myGeometryDirty
 
osg::Vec2 myClipBoxBottomLeft
 
osg::Vec2 myClipBoxTopRight
 

Detailed Description

vrvGraphics implementation of a 2D polygon

Member Typedef Documentation

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

Constructor & Destructor Documentation

makVrv::DtOsgWindowPolygonInstance::DtOsgWindowPolygonInstance ( DtDe de)

CTOR.

virtual makVrv::DtOsgWindowPolygonInstance::~DtOsgWindowPolygonInstance ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtOsgWindowPolygonInstance::setVisible ( bool  isVisible)
virtual

Set the polygon visible or invisible.

Implements makVrv::DtSetVisibilityInterface.

virtual void makVrv::DtOsgWindowPolygonInstance::setFillPattern ( unsigned int  fillPattern)
virtual

Set the polygon's fill pattern.

Implements makVrv::DtWindowPolygonInstance.

virtual void makVrv::DtOsgWindowPolygonInstance::setNumVertices ( unsigned int  numVertices)
virtual

Set the number of vertices in the polygon.

Implements makVrv::DtWindowPolygonInstance.

virtual void makVrv::DtOsgWindowPolygonInstance::setVertex ( int  i,
double  x,
double  y 
)
virtual

Set one of the polygon's vertices.

Implements makVrv::DtWindowPolygonInstance.

virtual void makVrv::DtOsgWindowPolygonInstance::setColor ( float  r,
float  g,
float  b,
float  a 
)
virtual

Set the polygon's color.

Implements makVrv::DtWindowPolygonInstance.

virtual void makVrv::DtOsgWindowPolygonInstance::setFill ( bool  fill)
virtual

Set the polygon filled or outlined.

Implements makVrv::DtWindowPolygonInstance.

virtual bool makVrv::DtOsgWindowPolygonInstance::visible ( ) const
virtual

Get the polygon's visibility status.

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

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

Implements makVrv::DtWindowPolygonInstance.

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

Set the scale of the polygon's x y components.

Implements makVrv::DtWindowPolygonInstance.

virtual void makVrv::DtOsgWindowPolygonInstance::update ( )
virtual

Called on signal_postUpdate; time to update render data.

Implements makVrv::DtWindowPolygonInstance.

virtual void makVrv::DtOsgWindowPolygonInstance::getCenterOfVertices ( osg::Vec2 &  center)
protectedvirtual

Calculate the center of the vertices.

virtual void makVrv::DtOsgWindowPolygonInstance::getCenterOfVertices ( DtVector2< double > &  center)
protectedvirtual

Get the line's center in a non-osg variable.

Implements makVrv::DtWindowPolygonInstance.

virtual void makVrv::DtOsgWindowPolygonInstance::updateGeometry ( )
protectedvirtual

Update the graphic polygon's vertices according to the current state.

void makVrv::DtOsgWindowPolygonInstance::createPolygon ( )
protected

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

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

Set this objects clip box bounds.

Implements makVrv::DtWindowPolygonInstance.

Member Data Documentation

DtDe& makVrv::DtOsgWindowPolygonInstance::myDe
protected
DtPolygon* makVrv::DtOsgWindowPolygonInstance::myPolygon
protected
VertexList makVrv::DtOsgWindowPolygonInstance::myVertices
protected
osg::Matrix makVrv::DtOsgWindowPolygonInstance::myTransform
protected
double makVrv::DtOsgWindowPolygonInstance::myXScale
protected
double makVrv::DtOsgWindowPolygonInstance::myYScale
protected
unsigned int makVrv::DtOsgWindowPolygonInstance::myFillPattern
protected
float makVrv::DtOsgWindowPolygonInstance::myColorR
protected
float makVrv::DtOsgWindowPolygonInstance::myColorG
protected
float makVrv::DtOsgWindowPolygonInstance::myColorB
protected
float makVrv::DtOsgWindowPolygonInstance::myColorA
protected
bool makVrv::DtOsgWindowPolygonInstance::myFill
protected
bool makVrv::DtOsgWindowPolygonInstance::myVisible
protected
bool makVrv::DtOsgWindowPolygonInstance::myGeometryDirty
protected
osg::Vec2 makVrv::DtOsgWindowPolygonInstance::myClipBoxBottomLeft
protected
osg::Vec2 makVrv::DtOsgWindowPolygonInstance::myClipBoxTopRight
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)