VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::Dt3DEnvironmentalAreaVisualizer Class Reference

Dt3DEnvironmentalAreaVisualizer display a Area drawn as an overlay Area in the scene without occlusion.

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

Public Member Functions

 Dt3DEnvironmentalAreaVisualizer (DtBaseConnection &simulation, DtStateListener &listener, DtSceneObjectAgent *sceneObject, DtModelSetId modelSet)
 
virtual ~Dt3DEnvironmentalAreaVisualizer ()
 
 Dt3DEnvironmentalAreaVisualizer ()=delete
 
 Dt3DEnvironmentalAreaVisualizer (const Dt3DEnvironmentalAreaVisualizer &)=delete
 
Dt3DEnvironmentalAreaVisualizeroperator= (const Dt3DEnvironmentalAreaVisualizer &)=delete
 
virtual void initialize () override
 
virtual void setLineWidth (int)
 
virtual const
DtStateVisualizer::TypeInfo
typeInfo () const
 
virtual void setScribeAllPolygons (bool)
 
virtual void setScribed (bool)
 
virtual void setPhysicalLineHeight (float)
 
virtual void setScribeColor (float r, float g, float b, float a)
 
virtual void setSelectedScribeColor (float r, float g, float b, float a)
 
virtual void setOutsideColor (float r, float g, float b, float a) override
 
virtual void setUpExtent (float)
 
virtual float upExtent () const
 
virtual void setDownExtent (float)
 
virtual float downExtent () const
 
virtual void setLeftExtent (float)
 
virtual float leftExtent () const
 
virtual void setRightExtent (float)
 
virtual float rightExtent () const
 
- Public Member Functions inherited from makVrv::DtEnvironmentalAreaVisualizer
 DtEnvironmentalAreaVisualizer (DtBaseConnection &simulation, DtStateListener &listener, DtSceneObjectAgent *sceneObejct, DtModelSetId modelSet)
 
virtual ~DtEnvironmentalAreaVisualizer ()
 
 DtEnvironmentalAreaVisualizer ()=delete
 
 DtEnvironmentalAreaVisualizer (const DtEnvironmentalAreaVisualizer &)=delete
 
DtEnvironmentalAreaVisualizeroperator= (const DtEnvironmentalAreaVisualizer &)=delete
 
virtual void slot_setSelected (bool) override
 
virtual void setStipplePattern (unsigned short)
 
virtual unsigned short stipplePattern () const
 
virtual void setFillStyle (vrvTacticalGraphicUtilities::FillStyle)
 
virtual
vrvTacticalGraphicUtilities::FillStyle 
fillStyle () const
 
virtual void setPenStyle (vrvTacticalGraphicUtilities::PenStyle)
 
virtual void setPixelLineWidth (int)
 
virtual void setPickable (bool)
 
virtual void setIsFriendlyForceColorOverrideEnabled (bool enabled)
 
virtual bool isFriendlyForceColorOverrideEnabled () const
 
virtual void setColor (float r, float g, float b, float a)
 
virtual void getColor (float &r, float &g, float &b, float &a) const
 
virtual void useDefaultColor ()
 
virtual void setSelectedOutsideColor (float r, float g, float b, float a)
 
virtual void setInsideColor (float r, float g, float b, float a)
 
virtual void setSelectedInsideColor (float r, float g, float b, float a)
 
- Public Member Functions inherited from makVrv::DtStateVisualizer
 DtStateVisualizer (DtBaseConnection &connection, DtStateListener &listener, DtSceneObjectAgent *sceneObjectAgent, DtModelSetId modelSet)
 
virtual ~DtStateVisualizer ()
 
virtual DtModelSetId modelSet ()
 
virtual void setSceneObjectAgent (DtSceneObjectAgent *sceneObject)
 
void setModelDefinition (const std::string &definition)
 
const std::string & modelDefinition () const
 
void setName (const std::string &)
 
const std::string & name () const
 
virtual bool pickable () const
 
virtual DtUniqueID sceneObjectID () const
 
int visualizerType () const
 
virtual void setVisualizerDefinition (const DtVisualizerDefinition &)
 
DtStateListenerlistener ()
 
const DtStateListenerlistener () const
 
DtBaseConnectionsimulation ()
 
void setDistribute (bool b)
 
bool distribute () const
 
virtual bool setVisualizerIsVisible (bool vis, DtVisualizerShowHideContext::VisualizerShowHideContext context)
 

Static Public Member Functions

static const
DtStateVisualizer::TypeInfo
theTypeInfo ()
 

Protected Member Functions

virtual void createModelAgents () override
 
virtual void destroyModelAgents () override
 
virtual void setModelDefinitionForAgents () override
 
virtual void updateColors ()
 
virtual void connectToListenerSignals () override
 
virtual void setInitialValuesFromVisualizerDefinition () override
 
virtual void implementVisibility (bool visible) override
 
- Protected Member Functions inherited from makVrv::DtEnvironmentalAreaVisualizer
virtual void setSolid (bool)
 
void setFriendlyForceColorStyle (vrvTacticalGraphicUtilities::FriendlyForceColorStyle style)
 
- Protected Member Functions inherited from makVrv::DtStateVisualizer
virtual void makeVisible ()
 
virtual bool isVisible () const
 
template<typename T , typename C >
void connectAndUpdate (boost::signalslib::signal< void(T)> &sig, void(C::*fp)(T), T val)
 

Protected Attributes

DtExtrudedPolygonModelAgent * myExtrudedAreaModel
 
int myDefaultHeight
 
float myUpExtent
 
float myDownExtent
 
float myRightExtent
 
float myLeftExtent
 
float myScribeColor [4]
 
float mySelectedScribeColor [4]
 
float myScribedWidth
 
bool myScribeColorSet
 
bool myScribeAllPolygons
 
bool myScribed
 
- Protected Attributes inherited from makVrv::DtEnvironmentalAreaVisualizer
DtTacticalGraphicStateListenermyAreaListener
 
DtPolygonModelAgent * myAreaModel
 
int myPixelLineWidth
 
float myColor [4]
 
float myDefaultColor [4]
 
float myOutsideColor [4]
 
float myInsideColor [4]
 
float mySelectedOutsideColor [4]
 
float mySelectedInsideColor [4]
 
float myFillAlpha
 
vrvTacticalGraphicUtilities::FillStyle myFillStyle
 
bool mySelectedInsideColorSet
 
bool mySelectedOutsideColorSet
 
bool myFillAlphaSet
 
std::vector< unsigned intmyFilledPattern
 
bool myUseDynamicOrigin
 
unsigned short myLineStipple
 
vrvTacticalGraphicUtilities::FriendlyForceColorStyle myFriendlyForceColorStyle
 
bool myIsFriendlyForceColorOverrideEnabled
 
- Protected Attributes inherited from makVrv::DtStateVisualizer
DtBaseConnectionmySimulation
 
DtStateListenermyListener
 
bool myDistributeFlag
 
DtUniqueID mySceneObjectID
 
std::string myName
 
std::string myModelDefinition
 
DtSignalConnectionManager myConnections
 
DtModelSetId myModelSet
 
int myVisualizerType
 
bool myPickable
 
bool myVisible
 
const DtVisualizerDefinitionmyVisualizerDefinition
 
DtSceneObjectAgent * mySceneObjectAgent
 
bool myInitialInitializeDone
 
ShowHideContextVector myVisualizerShowHideContexts
 

Additional Inherited Members

- Public Types inherited from makVrv::DtStateVisualizer
enum  Type {
  AllVisualizerTypes = 0, EntityVisualizerType = 1, EnvironmentalVisualizerType, InteractionVisualizerType,
  AggregateVisualizerType, IntervisibilityVisualizerType, TacticalSmokeVisualizerType, UserType = 10000
}
 
- Protected Types inherited from makVrv::DtStateVisualizer
typedef std::vector
< DtVisualizerShowHideContext::VisualizerShowHideContext
ShowHideContextVector
 

Constructor & Destructor Documentation

makVrv::Dt3DEnvironmentalAreaVisualizer::Dt3DEnvironmentalAreaVisualizer ( DtBaseConnection simulation,
DtStateListener listener,
DtSceneObjectAgent *  sceneObject,
DtModelSetId  modelSet 
)

CTOR.

virtual makVrv::Dt3DEnvironmentalAreaVisualizer::~Dt3DEnvironmentalAreaVisualizer ( )
virtual

Destructor.

makVrv::Dt3DEnvironmentalAreaVisualizer::Dt3DEnvironmentalAreaVisualizer ( )
delete

not allowed - default constructor

makVrv::Dt3DEnvironmentalAreaVisualizer::Dt3DEnvironmentalAreaVisualizer ( const Dt3DEnvironmentalAreaVisualizer )
delete

not allowed - copy constructor

Member Function Documentation

Dt3DEnvironmentalAreaVisualizer& makVrv::Dt3DEnvironmentalAreaVisualizer::operator= ( const Dt3DEnvironmentalAreaVisualizer )
delete

not allowed = equals operator

virtual void makVrv::Dt3DEnvironmentalAreaVisualizer::initialize ( )
overridevirtual

Initialize the visualizer.

Reimplemented from makVrv::DtEnvironmentalAreaVisualizer.

virtual void makVrv::Dt3DEnvironmentalAreaVisualizer::setLineWidth ( int  )
virtual

Sets the height of the line separating the back and front face of the area if filled.

virtual const DtStateVisualizer::TypeInfo& makVrv::Dt3DEnvironmentalAreaVisualizer::typeInfo ( ) const
virtual

The instance's type info.

Implements makVrv::DtStateVisualizer.

static const DtStateVisualizer::TypeInfo& makVrv::Dt3DEnvironmentalAreaVisualizer::theTypeInfo ( )
static

This class's type info.

virtual void makVrv::Dt3DEnvironmentalAreaVisualizer::setScribeAllPolygons ( bool  )
virtual

Sets whether or not to scribe the line (and edges)

virtual void makVrv::Dt3DEnvironmentalAreaVisualizer::setScribed ( bool  )
virtual
virtual void makVrv::Dt3DEnvironmentalAreaVisualizer::setPhysicalLineHeight ( float  )
virtual

Sets the height (up extent) of the lines of the area.

virtual void makVrv::Dt3DEnvironmentalAreaVisualizer::setScribeColor ( float  r,
float  g,
float  b,
float  a 
)
virtual

Sets the color of the scribe line.

virtual void makVrv::Dt3DEnvironmentalAreaVisualizer::setSelectedScribeColor ( float  r,
float  g,
float  b,
float  a 
)
virtual

Sets the color to used for the scribe when the mode is selected.

virtual void makVrv::Dt3DEnvironmentalAreaVisualizer::setOutsideColor ( float  r,
float  g,
float  b,
float  a 
)
overridevirtual

Set outside color This also sets myScribeColor for VRF, to have a different 'fill' color to scribe color, call setScribeColor after this.

Reimplemented from makVrv::DtEnvironmentalAreaVisualizer.

virtual void makVrv::Dt3DEnvironmentalAreaVisualizer::setUpExtent ( float  )
virtual

Sets the values of the extents of the line. Extents of the line are different than the width or height in that in setting the width or height those are centered around the points. The extents work from the point and move in the direction of the extent in topographic space. For example, if you imagine a straight line, the up extent moves straight up from that line, the down extent straight down, left to the left and right to the right. As the line rotates and orients the extents orient and rotate with that line.

virtual float makVrv::Dt3DEnvironmentalAreaVisualizer::upExtent ( ) const
virtual

Sets the values of the extents of the line. Extents of the line are different than the width or height in that in setting the width or height those are centered around the points. The extents work from the point and move in the direction of the extent in topographic space. For example, if you imagine a straight line, the up extent moves straight up from that line, the down extent straight down, left to the left and right to the right. As the line rotates and orients the extents orient and rotate with that line.

virtual void makVrv::Dt3DEnvironmentalAreaVisualizer::setDownExtent ( float  )
virtual

Sets the values of the extents of the line. Extents of the line are different than the width or height in that in setting the width or height those are centered around the points. The extents work from the point and move in the direction of the extent in topographic space. For example, if you imagine a straight line, the up extent moves straight up from that line, the down extent straight down, left to the left and right to the right. As the line rotates and orients the extents orient and rotate with that line.

virtual float makVrv::Dt3DEnvironmentalAreaVisualizer::downExtent ( ) const
virtual

Sets the values of the extents of the line. Extents of the line are different than the width or height in that in setting the width or height those are centered around the points. The extents work from the point and move in the direction of the extent in topographic space. For example, if you imagine a straight line, the up extent moves straight up from that line, the down extent straight down, left to the left and right to the right. As the line rotates and orients the extents orient and rotate with that line.

virtual void makVrv::Dt3DEnvironmentalAreaVisualizer::setLeftExtent ( float  )
virtual

Sets the values of the extents of the line. Extents of the line are different than the width or height in that in setting the width or height those are centered around the points. The extents work from the point and move in the direction of the extent in topographic space. For example, if you imagine a straight line, the up extent moves straight up from that line, the down extent straight down, left to the left and right to the right. As the line rotates and orients the extents orient and rotate with that line.

virtual float makVrv::Dt3DEnvironmentalAreaVisualizer::leftExtent ( ) const
virtual

Sets the values of the extents of the line. Extents of the line are different than the width or height in that in setting the width or height those are centered around the points. The extents work from the point and move in the direction of the extent in topographic space. For example, if you imagine a straight line, the up extent moves straight up from that line, the down extent straight down, left to the left and right to the right. As the line rotates and orients the extents orient and rotate with that line.

virtual void makVrv::Dt3DEnvironmentalAreaVisualizer::setRightExtent ( float  )
virtual

Sets the values of the extents of the line. Extents of the line are different than the width or height in that in setting the width or height those are centered around the points. The extents work from the point and move in the direction of the extent in topographic space. For example, if you imagine a straight line, the up extent moves straight up from that line, the down extent straight down, left to the left and right to the right. As the line rotates and orients the extents orient and rotate with that line.

virtual float makVrv::Dt3DEnvironmentalAreaVisualizer::rightExtent ( ) const
virtual

Sets the values of the extents of the line. Extents of the line are different than the width or height in that in setting the width or height those are centered around the points. The extents work from the point and move in the direction of the extent in topographic space. For example, if you imagine a straight line, the up extent moves straight up from that line, the down extent straight down, left to the left and right to the right. As the line rotates and orients the extents orient and rotate with that line.

virtual void makVrv::Dt3DEnvironmentalAreaVisualizer::createModelAgents ( )
overrideprotectedvirtual

Create a DtExtrudedPolygonModelAgent.

Reimplemented from makVrv::DtEnvironmentalAreaVisualizer.

virtual void makVrv::Dt3DEnvironmentalAreaVisualizer::destroyModelAgents ( )
overrideprotectedvirtual

Destroys any model agents currently created.

Reimplemented from makVrv::DtEnvironmentalAreaVisualizer.

virtual void makVrv::Dt3DEnvironmentalAreaVisualizer::setModelDefinitionForAgents ( )
overrideprotectedvirtual

Sets model definitions for agents & initializes the model.

Reimplemented from makVrv::DtEnvironmentalAreaVisualizer.

virtual void makVrv::Dt3DEnvironmentalAreaVisualizer::updateColors ( )
protectedvirtual

Update the colors.

Reimplemented from makVrv::DtEnvironmentalAreaVisualizer.

virtual void makVrv::Dt3DEnvironmentalAreaVisualizer::connectToListenerSignals ( )
overrideprotectedvirtual

Connect the visualizer to the listeners signals Called by DtStateVisualizer::initialize()

Reimplemented from makVrv::DtEnvironmentalAreaVisualizer.

virtual void makVrv::Dt3DEnvironmentalAreaVisualizer::setInitialValuesFromVisualizerDefinition ( )
overrideprotectedvirtual

Sets member variables from the visualizer definition if they exist Should not call this directly. Called by DtStateVisualizer::initialize.

Reimplemented from makVrv::DtEnvironmentalAreaVisualizer.

virtual void makVrv::Dt3DEnvironmentalAreaVisualizer::implementVisibility ( bool  visible)
overrideprotectedvirtual

Override to check whether deleteTacticalGraphicsOnHide is true on the listener. If !deleteTacticalGraphicsOnHide this method will call setVisible(false) on myExtrudedAreaModel, rather than calling destroyModelAgents. This improves show hide performance for the DtOsgExtruded Model as it expensive to destroy and recreate.

Reimplemented from makVrv::DtStateVisualizer.

Member Data Documentation

DtExtrudedPolygonModelAgent* makVrv::Dt3DEnvironmentalAreaVisualizer::myExtrudedAreaModel
protected
int makVrv::Dt3DEnvironmentalAreaVisualizer::myDefaultHeight
protected
float makVrv::Dt3DEnvironmentalAreaVisualizer::myUpExtent
protected
float makVrv::Dt3DEnvironmentalAreaVisualizer::myDownExtent
protected
float makVrv::Dt3DEnvironmentalAreaVisualizer::myRightExtent
protected
float makVrv::Dt3DEnvironmentalAreaVisualizer::myLeftExtent
protected
float makVrv::Dt3DEnvironmentalAreaVisualizer::myScribeColor[4]
protected
float makVrv::Dt3DEnvironmentalAreaVisualizer::mySelectedScribeColor[4]
protected
float makVrv::Dt3DEnvironmentalAreaVisualizer::myScribedWidth
protected
bool makVrv::Dt3DEnvironmentalAreaVisualizer::myScribeColorSet
protected
bool makVrv::Dt3DEnvironmentalAreaVisualizer::myScribeAllPolygons
protected
bool makVrv::Dt3DEnvironmentalAreaVisualizer::myScribed
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)