VR-Forces Developer's Guide
 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
makVrv::DtOsgWindowLineGroup Class Reference

OSG implementation of a DtWindowLineGroup. A model-like object that controls a group of 2D Lines. A DtOsgWindowLineGroupInstance is created in the CTOR and methods call the instance to modify lines.

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

Public Member Functions

 DtOsgWindowLineGroup (DtDe &de, DtUniqueID id)
 
virtual ~DtOsgWindowLineGroup ()
 
virtual void setLineCount (unsigned int count)
 
virtual void addLine (float lineWidth, unsigned int stipplePattern, float xVertex0, float yVertex0, float xVertex1, float yVertex1)
 
virtual void updateLine (unsigned int index, float lineWidth, unsigned int stipplePattern, float xVertex0, float yVertex0, float xVertex1, float yVertex1)
 
virtual void setVisible (bool isVisible)
 
virtual void setColor (float r, float g, float b, float a)
 
virtual void setGroup (int groupId)
 
virtual void setChannelOverlay (const std::string &displayName, const std::string &windowName, const std::string &channelName) override
 
- Public Member Functions inherited from makVrv::DtWindowLineGroup
 DtWindowLineGroup (DtDe &de, DtUniqueID id)
 
virtual ~DtWindowLineGroup ()
 
- Public Member Functions inherited from makVrv::DtWindowObject
 DtWindowObject (DtDe &de, DtUniqueID id)
 
virtual ~DtWindowObject ()
 
virtual bool visible ()
 
virtual DtUniqueID uniqueId ()
 
virtual DtWindowObjectgetParent ()
 
virtual ChildList childList ()
 
virtual void addChild (DtUniqueID id)
 
virtual void removeChild (DtUniqueID id)
 
virtual void getColor (float &r, float &g, float &b, float &a)
 
virtual void slot_postTick ()
 
virtual Transform windowTransform ()
 
virtual DtClipBox clipBox ()
 
virtual void setParentId (DtUniqueID parentId)
 
virtual DtUniqueID getParentId ()
 
virtual void setPosition (double x, double y)
 
virtual void getPosition (double &x, double &y)
 
virtual void setScale (double scale)
 
virtual void setScale (double x, double y)
 
virtual void getScale (double &x, double &y)
 
virtual void setRotation (double rotation)
 
virtual void getRotation (double &rotation)
 
virtual void setInheritColor (bool inheritColor)
 
virtual bool inheritColor ()
 
virtual int group ()
 
virtual void setFlashing (bool flashing, double interval)
 
virtual void getFlashing (bool &flashing, double &interval)
 
virtual void getChannelOverlay (std::string &displayName, std::string &windowName, std::string &channelName)
 

Protected Member Functions

virtual void update ()
 
virtual void needsUpdate ()
 

Protected Attributes

DtOsgWindowLineGroupInstancemyInstance
 
bool myConnectedToPostUpdate
 
boost::signalslib::connection mySignalPostUpdateConnection
 
- 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
 

Additional Inherited Members

- Public Types inherited from makVrv::DtWindowObject
typedef std::list< DtUniqueIDChildList
 
typedef DtVector2< doubleDtVector2d
 
typedef DtMatrix3< doubleTransform
 

Constructor & Destructor Documentation

makVrv::DtOsgWindowLineGroup::DtOsgWindowLineGroup ( DtDe de,
DtUniqueID  id 
)

CTOR.

virtual makVrv::DtOsgWindowLineGroup::~DtOsgWindowLineGroup ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtOsgWindowLineGroup::setLineCount ( unsigned int  count)
virtual

Set the number of Lines that this group will have Should be set before addLine is called.

Reimplemented from makVrv::DtWindowLineGroup.

virtual void makVrv::DtOsgWindowLineGroup::addLine ( float  lineWidth,
unsigned int  stipplePattern,
float  xVertex0,
float  yVertex0,
float  xVertex1,
float  yVertex1 
)
virtual

Add an Line to the specified in params.

Reimplemented from makVrv::DtWindowLineGroup.

virtual void makVrv::DtOsgWindowLineGroup::updateLine ( unsigned int  index,
float  lineWidth,
unsigned int  stipplePattern,
float  xVertex0,
float  yVertex0,
float  xVertex1,
float  yVertex1 
)
virtual

Update the Line at in param index with in parma specs. The reason index is passed in is because we need to know which Line to update. You cannot just delete all the pointers and recreate once all the updateLine calls arrive ( indexNumber = myLineCount ), because the Lines will flash on screen!!

Reimplemented from makVrv::DtWindowLineGroup.

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

Set the group's visibility.

Reimplemented from makVrv::DtWindowObject.

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

Set the group's color.

Reimplemented from makVrv::DtWindowObject.

virtual void makVrv::DtOsgWindowLineGroup::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.

Reimplemented from makVrv::DtWindowObject.

virtual void makVrv::DtOsgWindowLineGroup::setChannelOverlay ( const std::string &  displayName,
const std::string &  windowName,
const std::string &  channelName 
)
overridevirtual

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.

Reimplemented from makVrv::DtWindowObject.

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

Called on signal_postUpdate; time to update render data.

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

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

Reimplemented from makVrv::DtWindowObject.

Member Data Documentation

DtOsgWindowLineGroupInstance* makVrv::DtOsgWindowLineGroup::myInstance
protected
bool makVrv::DtOsgWindowLineGroup::myConnectedToPostUpdate
protected
boost::signalslib::connection makVrv::DtOsgWindowLineGroup::mySignalPostUpdateConnection
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)