VR-Forces 4.10 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

OSG Implementation of a DtWindowPolygonInstance. 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 update ()
 Called on signal_postUpdate; time to update render data. More...
 
virtual void setGroup (int groupId)
 Set this object's group ID for z order. More...
 
virtual void setChannelOverlay (std::string displayName, std::string windowName, std::string channelName)
 By default window objects are placed on the RemoteDisplayWorldOverlay, which is rendered on all channels that have the "showRemoteGraphics" channel keyword. More...
 
virtual void createPolygon ()
 Create myPolygon according to current state Called from the DtOsgWindowPolygonInstanceCreator::Create. More...
 
virtual void setClipBox (DtVector2< double > bottomLeftLocation, DtVector2< double > topRightLocation)
 Set this objects clip box bounds. 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 updateGeometry ()
 Update the graphic polygon's vertices according to the current state. More...
 
virtual void slot_channelToBeDestroyed (DtChannelManager *, DtChannel *)
 Destroy the polygon when the channel its being rendered on is going to be destroyed. More...
 

Protected Attributes

DtDemyDe
 
DtPolygonmyPolygon
 
VertexList myVertices
 
osg::Matrix myTransform
 
unsigned int myFillPattern
 
unsigned int myGroup
 
float myColorR
 
float myColorG
 
float myColorB
 
float myColorA
 
bool myFill
 
bool myGeometryDirty
 
bool myUseChannelOverlay
 
bool myVisible
 
osg::Vec2 myClipBoxBottomLeft
 
osg::Vec2 myClipBoxTopRight
 
std::string myDisplayName
 
std::string myWindowName
 
std::string myChannelName
 

Detailed Description

OSG Implementation of a DtWindowPolygonInstance.

Uses a vrvGraphics DtPolygon to implemente 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.

Reimplemented in makVrv::DtOsgWindowTriangleGroupInstance.

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::update ( )
virtual

Called on signal_postUpdate; time to update render data.

Implements makVrv::DtWindowPolygonInstance.

virtual void makVrv::DtOsgWindowPolygonInstance::setGroup ( int  groupId)
virtual

Set this object's group ID for z order.

The higher the Z order the "closer" the element will be drawn to the eye point

Implements makVrv::DtWindowPolygonInstance.

virtual void makVrv::DtOsgWindowPolygonInstance::setChannelOverlay ( std::string  displayName,
std::string  windowName,
std::string  channelName 
)
virtual

By default window objects are placed on the RemoteDisplayWorldOverlay, which is rendered on all channels that have the "showRemoteGraphics" channel keyword.

If a user wishes to draw a specific window object on a specific channel, use this method. This does not work for remote displays.

Implements makVrv::DtWindowPolygonInstance.

Reimplemented in makVrv::DtOsgWindowTriangleGroupInstance.

virtual void makVrv::DtOsgWindowPolygonInstance::createPolygon ( )
virtual

Create myPolygon according to current state Called from the DtOsgWindowPolygonInstanceCreator::Create.

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

Set this objects clip box bounds.

Implements makVrv::DtWindowPolygonInstance.

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

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

Reimplemented in makVrv::DtOsgWindowTriangleGroupInstance.

virtual void makVrv::DtOsgWindowPolygonInstance::slot_channelToBeDestroyed ( DtChannelManager ,
DtChannel  
)
protectedvirtual

Destroy the polygon when the channel its being rendered on is going to be destroyed.

Member Data Documentation

DtDe& makVrv::DtOsgWindowPolygonInstance::myDe
protected
DtPolygon* makVrv::DtOsgWindowPolygonInstance::myPolygon
protected
VertexList makVrv::DtOsgWindowPolygonInstance::myVertices
protected
osg::Matrix makVrv::DtOsgWindowPolygonInstance::myTransform
protected
unsigned int makVrv::DtOsgWindowPolygonInstance::myFillPattern
protected
unsigned int makVrv::DtOsgWindowPolygonInstance::myGroup
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::myGeometryDirty
protected
bool makVrv::DtOsgWindowPolygonInstance::myUseChannelOverlay
protected
bool makVrv::DtOsgWindowPolygonInstance::myVisible
protected
osg::Vec2 makVrv::DtOsgWindowPolygonInstance::myClipBoxBottomLeft
protected
osg::Vec2 makVrv::DtOsgWindowPolygonInstance::myClipBoxTopRight
protected
std::string makVrv::DtOsgWindowPolygonInstance::myDisplayName
protected
std::string makVrv::DtOsgWindowPolygonInstance::myWindowName
protected
std::string makVrv::DtOsgWindowPolygonInstance::myChannelName
protected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)