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

DtAggregateExtentVisualizer visualize bounding boxes for aggregates. More...

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

List of all members.

Public Member Functions

 DtAggregateExtentVisualizer (DtBaseConnection &simulation, DtStateListener &listener, int modelSet)
 Constructor.
virtual ~DtAggregateExtentVisualizer ()
 Destructor.
virtual void setDimensions (const DtVector &dim)
 Sets the dimensions of the cuboid (length is X, width is Y, height is Z)
virtual void setColor (float r, float g, float b, float a)
 Sets the color of the cuboid.
virtual void setShowExtents (bool)
 Different in setVisible in that it will do a show/hide with the show/hide context of HiddenBySetting.
virtual void setShowOnlyIfSelected (bool)
 Will show only if the item is also selected.
bool showOnlyIfSelected () const
virtual void setVisible (bool yesNo)
virtual void setSelected (bool)
 Override to show/hide if show only if selected mode is on.
virtual void setLockUpdates (bool b)
bool updatesLocked () const

Protected Member Functions

virtual void createModelAgents ()
 Override to create model agents that will be used to display data from the listener.
virtual void destroyModelAgents ()
 Destroys all currently created definitions.
virtual void setModelDefinitionForAgents ()
 Sets model definition for all the agents that this visualizer might be using.
virtual DtModelAgent * createExtentModelAgent ()=0
 Creates and returns the extent model agent.

Protected Attributes

DtModelAgent * myAggregateExtentModelAgent
float myColor [4]
DtVector myDimensions
bool myShowOnlyIfSelected
bool myLockUpdates

Detailed Description

DtAggregateExtentVisualizer visualize bounding boxes for aggregates.


Constructor & Destructor Documentation

Constructor.

Destructor.


Member Function Documentation

virtual void makVrv::DtAggregateExtentVisualizer::setDimensions ( const DtVector dim) [virtual]

Sets the dimensions of the cuboid (length is X, width is Y, height is Z)

Reimplemented in makVrv::Dt2DAggregateExtentVisualizer, and makVrv::Dt3DAggregateExtentVisualizer.

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

Sets the color of the cuboid.

Reimplemented in makVrv::Dt2DAggregateExtentVisualizer, and makVrv::Dt3DAggregateExtentVisualizer.

Different in setVisible in that it will do a show/hide with the show/hide context of HiddenBySetting.

Will show only if the item is also selected.

virtual void makVrv::DtAggregateExtentVisualizer::setVisible ( bool  yesNo) [virtual]

Override to show/hide if show only if selected mode is on.

Reimplemented from makVrv::DtStateVisualizer.

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

Override to create model agents that will be used to display data from the listener.

Implements makVrv::DtStateVisualizer.

Reimplemented in makVrv::Dt2DAggregateExtentVisualizer, and makVrv::Dt3DAggregateExtentVisualizer.

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

Destroys all currently created definitions.

Implements makVrv::DtStateVisualizer.

Reimplemented in makVrv::Dt2DAggregateExtentVisualizer, and makVrv::Dt3DAggregateExtentVisualizer.

Sets model definition for all the agents that this visualizer might be using.

If model agents are not created, should create them. Should not call this directly, but rather call setModelDefinition

Implements makVrv::DtStateVisualizer.

virtual DtModelAgent* makVrv::DtAggregateExtentVisualizer::createExtentModelAgent ( ) [protected, pure virtual]

Creates and returns the extent model agent.

Implemented in makVrv::Dt2DAggregateExtentVisualizer, and makVrv::Dt3DAggregateExtentVisualizer.


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)