VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtOsgOverlayDirectionLineModel Class Reference

OSG implementation of 2D segmented line. More...

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

List of all members.

Public Member Functions

 DtOsgOverlayDirectionLineModel (DtDe &de, DtUniqueID id)
 CTOR.
virtual ~DtOsgOverlayDirectionLineModel ()
 DTOR.
virtual void setPosition (int index, const DtVector &position)
 Sets the position of the point at the specified index.
virtual void setDirection (int index, const DtVector &direction)
 Sets the direction of the point at the specified index.
virtual void setLength (int index, float length)
 Sets the 2d length of the point at the specified index.
virtual void setColor (float r, float g, float b, float a)
 Sets the color of the line.
virtual void setWidth (float width)
 Sets the width of the line.
virtual void setStipplePattern (unsigned int stipple, int repeatFactor)
 Sets the stipple pattern for the line.
virtual void setEventsEnabled (bool)
 Sets whether or not mouse events are signaled for the line.
virtual void setPositionOffset (const DtVector &)
 Offsets vertices by given offset.
virtual void setSolid (bool)
 No-op - Inherited from DtModel.
virtual void setVisible (bool isVisible)
 Make the line visible or invisible.

Protected Member Functions

virtual void needsUpdate ()
 Called by all mutators to set up a postUpdate signal if not already connected.
virtual void update ()
 Attached to postUpdate signal from the renderer, tell the model instance to update.
virtual void addToScene (const DtUniqueID &sceneObjectId, int modelSet, int visualizerType)
 Attaches the model to the scene.
virtual void removeFromScene ()
 Detaches the model from the scene -- no-op.
virtual void setModelDefinition (const std::string &str)
 Sets the model definition on the model instance.

Protected Attributes

DtUniqueID myParentId
bool myConnectedToPostUpdate

Detailed Description

OSG implementation of 2D segmented line.


Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

virtual void makVrv::DtOsgOverlayDirectionLineModel::setPosition ( int  index,
const DtVector position 
) [virtual]

Sets the position of the point at the specified index.

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtOsgOverlayDirectionLineModel::setDirection ( int  index,
const DtVector direction 
) [virtual]

Sets the direction of the point at the specified index.

Implements makVrv::DtOverlayDirectionLineModel.

virtual void makVrv::DtOsgOverlayDirectionLineModel::setLength ( int  index,
float  length 
) [virtual]

Sets the 2d length of the point at the specified index.

Implements makVrv::DtOverlayDirectionLineModel.

virtual void makVrv::DtOsgOverlayDirectionLineModel::setColor ( float  r,
float  g,
float  b,
float  a 
) [virtual]

Sets the color of the line.

Implements makVrv::DtLineModel.

virtual void makVrv::DtOsgOverlayDirectionLineModel::setWidth ( float  width) [virtual]

Sets the width of the line.

Implements makVrv::DtLineModel.

virtual void makVrv::DtOsgOverlayDirectionLineModel::setStipplePattern ( unsigned int  stipple,
int  repeatFactor 
) [virtual]

Sets the stipple pattern for the line.

Implements makVrv::DtLineModel.

Sets whether or not mouse events are signaled for the line.

Implements makVrv::DtOverlayLineModel.

Offsets vertices by given offset.

No-op - Inherited from DtModel.

Implements makVrv::DtModel.

virtual void makVrv::DtOsgOverlayDirectionLineModel::setVisible ( bool  isVisible) [virtual]

Make the line visible or invisible.

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtOsgOverlayDirectionLineModel::addToScene ( const DtUniqueID sceneObjectId,
int  modelSet,
int  visualizerType 
) [protected, virtual]

Attaches the model to the scene.

Implements makVrv::DtModel.

virtual void makVrv::DtOsgOverlayDirectionLineModel::removeFromScene ( ) [protected, virtual]

Detaches the model from the scene -- no-op.

Implements makVrv::DtModel.

virtual void makVrv::DtOsgOverlayDirectionLineModel::setModelDefinition ( const std::string &  str) [protected, virtual]

Sets the model definition on the model instance.

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtOsgOverlayDirectionLineModel::needsUpdate ( ) [protected, virtual]

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

virtual void makVrv::DtOsgOverlayDirectionLineModel::update ( ) [protected, virtual]

Attached to postUpdate signal from the renderer, tell the model instance to update.


Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)