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

Dt3DLineStateVisualizer objects are responsible for displaying 3D line objects. More...

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

List of all members.

Public Member Functions

 Dt3DLineStateVisualizer (DtBaseConnection &simulation, DtStateListener &listener, int modelSet)
 Constructor.
virtual ~Dt3DLineStateVisualizer ()
 Destructor.
virtual void setStartLocation (const DtVector &pos)
 Sets the start location (in database coordinates).
virtual void setEndLocation (const DtVector &endpoint)
 Sets the end location (in database coordinates).
virtual void setFlashing (bool flashing)
 Sets whether the line is flashing.
virtual void setStyleSegments (const std::vector< double > &segmentPercentages)
 Sets the percentages of line segments.
virtual void setSegmentColor (unsigned int segmentIndex, float r, float g, float b, float a)
 Sets the color of a particular segment.
virtual void setSegmentLightningStyle (unsigned int segmentIndex, bool enableLightningStyle)
 Sets the lightning style of a particular segment.
virtual void setSegmentStartArrow (unsigned int segmentIndex, bool enableArrow)
 Sets whether a particular segment has a start arrowhead.
virtual void setSegmentEndArrow (unsigned int segmentIndex, bool enableArrow)
 Sets whether a particular segment has an end arrowhead.
virtual void setSegmentStipplePattern (unsigned int segmentIndex, unsigned int stipplePattern)
 Sets the stipple pattern of a particular segment.
virtual void setSegmentWidth (unsigned int segmentIndex, double width)
 Set the line width of a segment.
virtual void setStopOnTerrainIntersection (bool enabled)
 Set whether or not to stop drawing the line at the first terrain intersection.
virtual void setAttached (DtUniqueID id, int vtx, double percentage)
 Attaches the cuboid to the unique ID specified.
virtual void setHostId (const std::string &id, int vtx, double percentage)
 Sets the host ID attached to. Overridden by child classes.
virtual void setOffset (const DtVector &offset)
 Sets the offset (in body coordinates) of an attached line.
virtual void setProjected (bool projected)
 Sets whether the line is projected above the terrain.
virtual const
DtStateVisualizer::TypeInfo
typeInfo () const
 The instance's type info.

Static Public Member Functions

static const
DtStateVisualizer::TypeInfo
theTypeInfo ()
 This class's type info.

Protected Member Functions

virtual void setVisible (bool yesNo)
 Set the visuals visible or invisible.
virtual void createModelAgents ()
 Create the visual models, or do nothing if they already exist.
virtual void destroyModelAgents ()
 Destroy the visual models.
virtual void setModelDefinitionForAgents ()
 Not implemented.

Protected Attributes

Dt3DSegmentedLineModelAgent * myLineModelAgent
DtAttachableUpdaterAgent * myUpdaterAgent
DtVisibilityAdapter
< Dt3DSegmentedLineModelAgent > * 
myVisibilityAdapter
bool myVertex0Attached
bool myVertex1Attached

Detailed Description

Dt3DLineStateVisualizer objects are responsible for displaying 3D line objects.


Constructor & Destructor Documentation

Constructor.

Destructor.


Member Function Documentation

virtual void makVrv::Dt3DLineStateVisualizer::setStartLocation ( const DtVector pos) [virtual]

Sets the start location (in database coordinates).

virtual void makVrv::Dt3DLineStateVisualizer::setEndLocation ( const DtVector endpoint) [virtual]

Sets the end location (in database coordinates).

virtual void makVrv::Dt3DLineStateVisualizer::setFlashing ( bool  flashing) [virtual]

Sets whether the line is flashing.

Implements makVrv::DtRemoteGraphicVisualizerAttributes.

virtual void makVrv::Dt3DLineStateVisualizer::setStyleSegments ( const std::vector< double > &  segmentPercentages) [virtual]

Sets the percentages of line segments.

virtual void makVrv::Dt3DLineStateVisualizer::setSegmentColor ( unsigned int  segmentIndex,
float  r,
float  g,
float  b,
float  a 
) [virtual]

Sets the color of a particular segment.

virtual void makVrv::Dt3DLineStateVisualizer::setSegmentLightningStyle ( unsigned int  segmentIndex,
bool  enableLightningStyle 
) [virtual]

Sets the lightning style of a particular segment.

virtual void makVrv::Dt3DLineStateVisualizer::setSegmentStartArrow ( unsigned int  segmentIndex,
bool  enableArrow 
) [virtual]

Sets whether a particular segment has a start arrowhead.

virtual void makVrv::Dt3DLineStateVisualizer::setSegmentEndArrow ( unsigned int  segmentIndex,
bool  enableArrow 
) [virtual]

Sets whether a particular segment has an end arrowhead.

virtual void makVrv::Dt3DLineStateVisualizer::setSegmentStipplePattern ( unsigned int  segmentIndex,
unsigned int  stipplePattern 
) [virtual]

Sets the stipple pattern of a particular segment.

virtual void makVrv::Dt3DLineStateVisualizer::setSegmentWidth ( unsigned int  segmentIndex,
double  width 
) [virtual]

Set the line width of a segment.

Set whether or not to stop drawing the line at the first terrain intersection.

virtual void makVrv::Dt3DLineStateVisualizer::setAttached ( DtUniqueID  id,
int  vtx,
double  percentage 
) [virtual]

Attaches the cuboid to the unique ID specified.

Parameters:
idUnique ID of the object attached to, if 0, detaches
vtxVertex of the line (0 or 1) to attach
percentageSpecifies the percentage between 2 vertices if attached to a line or cylinder
virtual void makVrv::Dt3DLineStateVisualizer::setHostId ( const std::string &  id,
int  vtx,
double  percentage 
) [virtual]

Sets the host ID attached to. Overridden by child classes.

virtual void makVrv::Dt3DLineStateVisualizer::setOffset ( const DtVector offset) [virtual]

Sets the offset (in body coordinates) of an attached line.

virtual void makVrv::Dt3DLineStateVisualizer::setProjected ( bool  projected) [virtual]

Sets whether the line is projected above the terrain.

The instance's type info.

Implements makVrv::DtStateVisualizer.

This class's type info.

virtual void makVrv::Dt3DLineStateVisualizer::setVisible ( bool  yesNo) [protected, virtual]

Set the visuals visible or invisible.

This maintains the state of the visual objects, and calling setVisible(false) should not be expected to provide any performance benefit.

Implements makVrv::DtRemoteGraphicVisualizerAttributes.

virtual void makVrv::Dt3DLineStateVisualizer::createModelAgents ( ) [protected, virtual]

Create the visual models, or do nothing if they already exist.

Reimplemented from makVrv::DtSceneObjectVisualizer.

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

Destroy the visual models.

This does not maintain their state; for example, calling setFlashing(true); destroyModelAgents(); createModelAgents(); will result in models with the default value of flashing, which is false.

Destroying models generally provides some performance benefit, as compared to calling setVisible(false).

Reimplemented from makVrv::DtSceneObjectVisualizer.

virtual void makVrv::Dt3DLineStateVisualizer::setModelDefinitionForAgents ( ) [protected, virtual]

Not implemented.

Reimplemented from makVrv::DtSceneObjectVisualizer.


Member Data Documentation

Dt3DSegmentedLineModelAgent* makVrv::Dt3DLineStateVisualizer::myLineModelAgent [protected]
DtAttachableUpdaterAgent* makVrv::Dt3DLineStateVisualizer::myUpdaterAgent [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)