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

DtEnvironmentalAreaVisualizer display a area that contains at least three points. More...

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

List of all members.

Public Member Functions

 DtEnvironmentalAreaVisualizer (DtBaseConnection &simulation, DtStateListener &listener, int modelSet)
 Constructor.
virtual ~DtEnvironmentalAreaVisualizer ()
 Destructor.
virtual void setColor (float r, float g, float b, float a)
 Sets the color for the area.
virtual void addPoint (int index, const DtVector &)
 Adds a point to the Area. If index is -1, appends else places at given point.
virtual void removePoint (int index)
 Removes point at the given index.
virtual void modifyPoint (int index, const DtVector &)
 Modifies the point at the given index.
virtual void setPoints (const DtEnvironmentalStateListener::ControlPointsList &)
 Sets the control points to the specified list, adding, removing and changing as needed.
virtual void setSelected (bool b)
 Selects the entire Area.
virtual void resetSpatial ()
 Resets geometry of Area.
virtual void createModelAgents ()
 Creates the model agents associated with the Area.
virtual void setLineStyle (int)
 Sets the line style of the outline of the area.
virtual void setFillStyle (int)
 Sets the fill style of the area.
virtual void setLineWidth (int)
 Sets the Area width. If 0, uses the default as defined in the visual definition.
virtual void setOrigin (const DtVector &)
 Sets the origin of the area.
virtual DtVector origin () const
virtual void setUseDynamicOrigin (bool)
 Set whether or not to use dynamic origin.

Protected Member Functions

virtual void destroyModelAgents ()
 Destroys any model agents currently created.
virtual void setModelDefinitionForAgents ()
 Sets model definitions for agents.
virtual DtPolygonModelAgent * createAreaAgent ()=0
 Implemented by subclasses to create the agent used to draw the area.
virtual void setVisualizerDefinition (const DtVisualizerDefinition &visDef)
 Set any other additional visualizer information from the visual record.
virtual DtVector offsetAtPosition (const DtVector &origin) const
 Given the origin and the point offset, return an offset that is valid at the given position.
virtual void setSolid (bool)

Protected Attributes

DtTacticalGraphicStateListenermyAreaListener
DtPolygonModelAgent * myAreaModelAgent
DtEnvironmentalStateListener::ControlPointsList myControlPoints
int myLineWidth
float myColor [4]
DtVector myPointOffset
bool myOriginSet
DtVector myOrigin
bool myUseDynamicOrigin

Detailed Description

DtEnvironmentalAreaVisualizer display a area that contains at least three points.


Constructor & Destructor Documentation

Constructor.

Destructor.


Member Function Documentation

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

Sets the color for the area.

This will apply to all segments of the area. If the default (all 0's), uses the default as defined in the visual definition

Reimplemented in makVrv::DT_PROTOCOL_NAMESPACE::DtVrlink2DEnvironmentalAreaVisualizer, and makVrv::DT_PROTOCOL_NAMESPACE::DtVrlink3DEnvironmentalAreaVisualizer.

virtual void makVrv::DtEnvironmentalAreaVisualizer::addPoint ( int  index,
const DtVector  
) [virtual]
virtual void makVrv::DtEnvironmentalAreaVisualizer::removePoint ( int  index) [virtual]

Removes point at the given index.

Reimplemented in makVrv::Dt3DEnvironmentalAreaVisualizer.

virtual void makVrv::DtEnvironmentalAreaVisualizer::modifyPoint ( int  index,
const DtVector  
) [virtual]

Selects the entire Area.

Reimplemented from makVrv::DtStateVisualizer.

Resets geometry of Area.

Creates the model agents associated with the Area.

Reimplemented from makVrv::DtSceneObjectVisualizer.

Reimplemented in makVrv::Dt3DEnvironmentalAreaVisualizer.

virtual void makVrv::DtEnvironmentalAreaVisualizer::setLineStyle ( int  ) [virtual]
virtual void makVrv::DtEnvironmentalAreaVisualizer::setFillStyle ( int  ) [virtual]

Sets the fill style of the area.

If fill is 0, will be considered an outlined area

Reimplemented in makVrv::DT_PROTOCOL_NAMESPACE::DtVrlink2DEnvironmentalAreaVisualizer, and makVrv::DT_PROTOCOL_NAMESPACE::DtVrlink3DEnvironmentalAreaVisualizer.

virtual void makVrv::DtEnvironmentalAreaVisualizer::setLineWidth ( int  ) [virtual]
virtual void makVrv::DtEnvironmentalAreaVisualizer::setOrigin ( const DtVector ) [virtual]

Set whether or not to use dynamic origin.

When enabled, the model ignores the origin set in setOrigin and dynamically generates one instead This should be enabled when you want to set the vertices to database positions instead of offsets from the origin to avoid precision issues

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

Destroys any model agents currently created.

Reimplemented from makVrv::DtSceneObjectVisualizer.

Reimplemented in makVrv::Dt3DEnvironmentalAreaVisualizer.

Sets model definitions for agents.

Reimplemented from makVrv::DtSceneObjectVisualizer.

virtual DtPolygonModelAgent* makVrv::DtEnvironmentalAreaVisualizer::createAreaAgent ( ) [protected, pure virtual]

Implemented by subclasses to create the agent used to draw the area.

Implemented in makVrv::Dt3DEnvironmentalAreaVisualizer, and makVrv::Dt2DEnvironmentalAreaVisualizer.

Set any other additional visualizer information from the visual record.

Reimplemented from makVrv::DtStateVisualizer.

Reimplemented in makVrv::DT_PROTOCOL_NAMESPACE::DtVrlink2DEnvironmentalAreaVisualizer, and makVrv::DT_PROTOCOL_NAMESPACE::DtVrlink3DEnvironmentalAreaVisualizer.

virtual DtVector makVrv::DtEnvironmentalAreaVisualizer::offsetAtPosition ( const DtVector origin) const [protected, virtual]

Given the origin and the point offset, return an offset that is valid at the given position.

Default simply returns offset

Reimplemented in makVrv::DT_PROTOCOL_NAMESPACE::DtVrlink2DEnvironmentalAreaVisualizer, and makVrv::DT_PROTOCOL_NAMESPACE::DtVrlink3DEnvironmentalAreaVisualizer.

virtual void makVrv::DtEnvironmentalAreaVisualizer::setSolid ( bool  ) [protected, virtual]

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)