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 Member Functions | Protected Attributes | Private Member Functions
makVrv::DtOsgWindowArc Class Reference

OSG implementation for an Arc drawn in screen space. More...

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

Public Member Functions

 DtOsgWindowArc (DtDe &de, DtUniqueID id)
 
virtual ~DtOsgWindowArc ()
 
virtual void setOrigin (const DtVector &position)
 Set the position of the arc, in window coordinates (0.0 - 1.0) More...
 
virtual DtVector getOrigin () const
 
virtual void setDimensions (double x, double y)
 Set/Get the axis lengths of the ellipse used to draw the arc. More...
 
virtual bool getDimensions (double &x, double &y) const
 
virtual void setScale (float scale)
 Set/Get the scale factor of the arc. More...
 
virtual float scale () const
 
virtual void setVisible (bool isVisible)
 Set/Get whether the arc is visible. More...
 
virtual bool isVisible () const
 
virtual void setMaxAngleSegment (double angleSegmentMax)
 Set/Get the max angle segment used when building the geometry. More...
 
virtual double maxAngleSegment () const
 
virtual void setStartAngle (double startAngle)
 Set/Get the start angle of the arc, in radians. More...
 
virtual double startAngle () const
 
virtual void setEndAngle (double endAngle)
 Set/Get the end angle of the arc, in radians. More...
 
virtual double endAngle () const
 
virtual void setStipplePattern (unsigned int stipplePattern)
 Set/Get the stipple line pattern of the arc. More...
 
virtual unsigned int stipplePattern () const
 
virtual void setLineWidth (float width)
 Set/Get the line width of the arc Uses DtLineSegmentInterface::setWidth. More...
 
virtual float lineWidth () const
 
virtual void setColor (float r, float g, float b, float a)
 Set/Get the color of the arc Valid range for argument values are 0.0 - 1.0. More...
 
virtual bool getColor (float &r, float &g, float &b, float &a) const
 
- Public Member Functions inherited from makVrv::DtWindowArc
 DtWindowArc (DtDe &de, DtUniqueID id)
 CTOR. More...
 
virtual ~DtWindowArc ()
 DTOR. More...
 
- Public Member Functions inherited from makVrv::DtWindowObject
 DtWindowObject (DtDe &de, DtUniqueID id)
 CTOR. More...
 
virtual ~DtWindowObject ()
 DTOR. More...
 
virtual bool visible ()
 
virtual DtUniqueID uniqueId ()
 Returns the unique ID of this object. More...
 
DtWindowObjectgetParent ()
 Get the parent windowObject. More...
 
virtual ChildList childList ()
 Returns the child list. More...
 
virtual void addChild (DtUniqueID id)
 Add a child to this objects child list. More...
 
virtual void removeChild (DtUniqueID id)
 Remove a child from this objects child list. More...
 
virtual void getColor (float &r, float &g, float &b, float &a)
 
virtual void slot_postTick ()
 Slot for DtDe::signal_postTick, using when this object is flashing/blinking. More...
 
virtual Transform windowTransform ()
 Get the window transform that is the total transform of this object and all it's parents. More...
 
virtual DtClipBox clipBox ()
 Get this object's clip box specifications. More...
 
virtual void setParentId (DtUniqueID parentId)
 Get / Set Parent IDs. More...
 
virtual DtUniqueID getParentId ()
 
virtual void setPosition (double x, double y)
 Set / Get the window position of this object. More...
 
virtual void getPosition (double &x, double &y)
 
virtual void setScale (double scale)
 Set / Get the scale of the x y components. More...
 
virtual void setScale (double x, double y)
 
virtual void getScale (double &x, double &y)
 
virtual void setRotation (double rotation)
 Set / Get the rotation of the window object around it's set position, (0.0,0.0) if none is set. More...
 
virtual void getRotation (double &rotation)
 
virtual void setInheritColor (bool inheritColor)
 Set / Get whether this object inherits it's color from it's parent. More...
 
virtual bool inheritColor ()
 
virtual void setGroup (int id)
 Set / Get the group ID The higher the Z order the "closer" the element will be drawn to the eye point. More...
 
virtual int group ()
 
virtual void setFlashing (bool flashing, double interval)
 Set / Get this object to flash on and off at the given interval. More...
 
virtual void getFlashing (bool &flashing, double &interval)
 
virtual void setChannelOverlay (std::string displayName, std::string windowName, std::string channelName)
 Set / Get the channel overlay names By default window objects are placed on the RemoteDisplayWorldOverlay, which is rendered on all channels that have the "showRemoteGraphics" channel keyword. More...
 
virtual void getChannelOverlay (std::string &displayName, std::string &windowName, std::string &channelName)
 

Protected Member Functions

virtual void setInstance (DtWindowArcInstance *instance)
 Set or replace the arc instance for the arc Transfers ownership. More...
 
virtual DtWindowArcInstanceinstance ()
 Get the arc instance. More...
 
virtual void update ()
 Called on signal_postUpdate; time to update render data. More...
 
virtual void needsUpdate ()
 Called by all mutators to set up a postUpdate signal if not already connected. More...
 

Protected Attributes

DtWindowArcInstancemyInstance
 
bool myConnectedToPostUpdate
 
- Protected Attributes inherited from makVrv::DtWindowObject
DtDemyDe
 
DtUniqueID myUniqueId
 
DtUniqueID myParentId
 
ChildList myChildIdList
 
DtVector2d myPosition
 
DtVector2d myScale
 
DtVector2d myWindowScale
 
double myRotation
 
double myFlashInterval
 
double myLastFlashTime
 
double myLastSimTime
 
bool myVisible
 
bool myLastVisibilityFlash
 
bool myInheritColor
 
bool myFlashing
 
float myColorR
 
float myColorG
 
float myColorB
 
float myColorA
 
Transform myWindowTransform
 
DtClipBox myClipBox
 
int myGroup
 
std::string myDisplayName
 
std::string myWindowName
 
std::string myChannelName
 

Private Member Functions

 DtOsgWindowArc ()
 Default Constructor not implemented. More...
 
 DtOsgWindowArc (const DtOsgWindowArc &)
 Copy Constructor not implemented – Copy not allowed. More...
 
DtOsgWindowArcoperator= (const DtOsgWindowArc &)
 Assignment Operator not implemented – Copy not allowed. More...
 

Additional Inherited Members

- Public Types inherited from makVrv::DtWindowObject
typedef std::list< DtUniqueIDChildList
 typedef list for holding the IDs of the children of this class More...
 
typedef DtVector2< doubleDtVector2d
 typedef 2D Vector More...
 
typedef DtMatrix3< doubleTransform
 typedef 3x3 Matrix for holding this object's transform More...
 

Detailed Description

OSG implementation for an Arc drawn in screen space.

This implementation draws an arc with the following geometric parameters:

This implementation draws an arc with the following geometric parameters:

Special Considerations:

Constructor & Destructor Documentation

makVrv::DtOsgWindowArc::DtOsgWindowArc ( DtDe de,
DtUniqueID  id 
)
virtual makVrv::DtOsgWindowArc::~DtOsgWindowArc ( )
virtual
makVrv::DtOsgWindowArc::DtOsgWindowArc ( )
private

Default Constructor not implemented.

makVrv::DtOsgWindowArc::DtOsgWindowArc ( const DtOsgWindowArc )
private

Copy Constructor not implemented – Copy not allowed.

Member Function Documentation

virtual void makVrv::DtOsgWindowArc::setOrigin ( const DtVector position)
virtual

Set the position of the arc, in window coordinates (0.0 - 1.0)

Implements makVrv::DtWindowArc.

virtual DtVector makVrv::DtOsgWindowArc::getOrigin ( ) const
virtual

Implements makVrv::DtWindowArc.

virtual void makVrv::DtOsgWindowArc::setDimensions ( double  x,
double  y 
)
virtual

Set/Get the axis lengths of the ellipse used to draw the arc.

Implements makVrv::DtWindowArc.

virtual bool makVrv::DtOsgWindowArc::getDimensions ( double x,
double y 
) const
virtual

Implements makVrv::DtWindowArc.

virtual void makVrv::DtOsgWindowArc::setScale ( float  scale)
virtual

Set/Get the scale factor of the arc.

Implements makVrv::DtWindowArc.

virtual float makVrv::DtOsgWindowArc::scale ( ) const
virtual

Implements makVrv::DtWindowArc.

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

Set/Get whether the arc is visible.

Implements makVrv::DtWindowArc.

virtual bool makVrv::DtOsgWindowArc::isVisible ( ) const
virtual

Implements makVrv::DtWindowArc.

virtual void makVrv::DtOsgWindowArc::setMaxAngleSegment ( double  angleSegmentMax)
virtual

Set/Get the max angle segment used when building the geometry.

Implements makVrv::DtWindowArc.

virtual double makVrv::DtOsgWindowArc::maxAngleSegment ( ) const
virtual

Implements makVrv::DtWindowArc.

virtual void makVrv::DtOsgWindowArc::setStartAngle ( double  startAngle)
virtual

Set/Get the start angle of the arc, in radians.

Implements makVrv::DtWindowArc.

virtual double makVrv::DtOsgWindowArc::startAngle ( ) const
virtual

Implements makVrv::DtWindowArc.

virtual void makVrv::DtOsgWindowArc::setEndAngle ( double  endAngle)
virtual

Set/Get the end angle of the arc, in radians.

Implements makVrv::DtWindowArc.

virtual double makVrv::DtOsgWindowArc::endAngle ( ) const
virtual

Implements makVrv::DtWindowArc.

virtual void makVrv::DtOsgWindowArc::setStipplePattern ( unsigned int  stipplePattern)
virtual

Set/Get the stipple line pattern of the arc.

Implements makVrv::DtWindowArc.

virtual unsigned int makVrv::DtOsgWindowArc::stipplePattern ( ) const
virtual

Implements makVrv::DtWindowArc.

virtual void makVrv::DtOsgWindowArc::setLineWidth ( float  width)
virtual

Set/Get the line width of the arc Uses DtLineSegmentInterface::setWidth.

Implements makVrv::DtWindowArc.

virtual float makVrv::DtOsgWindowArc::lineWidth ( ) const
virtual

Implements makVrv::DtWindowArc.

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

Set/Get the color of the arc Valid range for argument values are 0.0 - 1.0.

Implements makVrv::DtWindowArc.

virtual bool makVrv::DtOsgWindowArc::getColor ( float &  r,
float &  g,
float &  b,
float &  a 
) const
virtual

Implements makVrv::DtWindowArc.

virtual void makVrv::DtOsgWindowArc::setInstance ( DtWindowArcInstance instance)
protectedvirtual

Set or replace the arc instance for the arc Transfers ownership.

virtual DtWindowArcInstance* makVrv::DtOsgWindowArc::instance ( )
protectedvirtual

Get the arc instance.

virtual void makVrv::DtOsgWindowArc::update ( )
protectedvirtual

Called on signal_postUpdate; time to update render data.

virtual void makVrv::DtOsgWindowArc::needsUpdate ( )
protectedvirtual

Called by all mutators to set up a postUpdate signal if not already connected.

Reimplemented from makVrv::DtWindowObject.

DtOsgWindowArc& makVrv::DtOsgWindowArc::operator= ( const DtOsgWindowArc )
private

Assignment Operator not implemented – Copy not allowed.

Member Data Documentation

DtWindowArcInstance* makVrv::DtOsgWindowArc::myInstance
protected
bool makVrv::DtOsgWindowArc::myConnectedToPostUpdate
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)