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

DtIntervisibilityLineVisualizer display an intervisibility line drawn as geometry in the scene without occlusion. More...

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

List of all members.

Public Member Functions

 DtIntervisibilityLineVisualizer (DtBaseConnection &simulation, DtStateListener &listener, int modelSet)
 Constructor.
virtual ~DtIntervisibilityLineVisualizer ()
 Destructor.
virtual void setVisibleColor (float r, float g, float b, float a)
 Sets the color for the visible portion of the line (default is green)
virtual void setBlockedColor (float r, float g, float b, float a)
 Sets the color for the blocked portion of the line (default is red)
virtual void setStartPoint (const DtVector &)
 Sets the start for of the first vertex.
virtual void setEndPoint (const DtVector &)
 Sets the end point.
virtual void setStartAttachPoint (DtElementID)
 Will set the start attach point.
virtual void setStartPointOffset (const DtVector &)
 Sets the offset from the attached start point.
virtual void setEndAttachPoint (DtElementID)
 Will set the end attach point.
virtual void setEndPointOffset (const DtVector &)
 Sets the offset from the attached end point.
virtual void setSelected (bool b)
 Set the line to be selected or not.
virtual void resetSpatial ()
 Reset spatial parameters of the object.
virtual void createModelAgents ()
 Create all the model agents needed to implement this visual.

Protected Member Functions

virtual void destroyModelAgents ()
 Destroy all the model agents.
virtual void setModelDefinitionForAgents ()
 Pass any model definition provided as part of the visual definition to the visualizer.
virtual DtSegmentedLineModelAgent * createLineAgent ()=0
 Create a line agent of the appropriate type.

Protected Attributes

DtIntervisibilityLineStateListenermyLineListener
DtSegmentedLineModelAgent * myLineModelAgent
DtAttachableIntervisibilityUpdaterAgent * myAttachableUpdaterAgent

Detailed Description

DtIntervisibilityLineVisualizer display an intervisibility line drawn as geometry in the scene without occlusion.


Constructor & Destructor Documentation

Constructor.

Destructor.


Member Function Documentation

virtual void makVrv::DtIntervisibilityLineVisualizer::setVisibleColor ( float  r,
float  g,
float  b,
float  a 
) [virtual]

Sets the color for the visible portion of the line (default is green)

virtual void makVrv::DtIntervisibilityLineVisualizer::setBlockedColor ( float  r,
float  g,
float  b,
float  a 
) [virtual]

Sets the color for the blocked portion of the line (default is red)

Sets the start for of the first vertex.

Will delete any updaters if they exist for the start point

virtual void makVrv::DtIntervisibilityLineVisualizer::setEndPoint ( const DtVector ) [virtual]

Sets the end point.

Will delete any updaters if they exist for the end point

Will set the start attach point.

Converts to scene id for current model set

Sets the offset from the attached start point.

Will set the end attach point.

Converts to scene id for current model set

Sets the offset from the attached end point.

Set the line to be selected or not.

Reimplemented from makVrv::DtStateVisualizer.

Reset spatial parameters of the object.

Create all the model agents needed to implement this visual.

Reimplemented from makVrv::DtSceneObjectVisualizer.

virtual void makVrv::DtIntervisibilityLineVisualizer::destroyModelAgents ( ) [protected, virtual]

Destroy all the model agents.

Reimplemented from makVrv::DtSceneObjectVisualizer.

Pass any model definition provided as part of the visual definition to the visualizer.

Reimplemented from makVrv::DtSceneObjectVisualizer.

virtual DtSegmentedLineModelAgent* makVrv::DtIntervisibilityLineVisualizer::createLineAgent ( ) [protected, pure virtual]

Create a line agent of the appropriate type.

Implemented in makVrv::Dt2DIntervisibilityLineVisualizer, and makVrv::Dt3DIntervisibilityLineVisualizer.


Member Data Documentation

DtSegmentedLineModelAgent* makVrv::DtIntervisibilityLineVisualizer::myLineModelAgent [protected]
DtAttachableIntervisibilityUpdaterAgent* makVrv::DtIntervisibilityLineVisualizer::myAttachableUpdaterAgent [protected]

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)