VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::Dt3DLaserDesignatorVisualizer Class Reference
Inheritance diagram for makVrv::Dt3DLaserDesignatorVisualizer:
Inheritance graph
[legend]

Public Member Functions

 Dt3DLaserDesignatorVisualizer (DtBaseConnection &simulation, DtStateListener &listener, int modelSet)
 CTOR; expects DtStateListener to be a DtLaserDesignatorStateListener.
virtual ~Dt3DLaserDesignatorVisualizer ()
virtual void destroyModelAgents ()
 Destroy the agents.
virtual void setVisualizerDefinition (const DtVisualizerDefinition &)
 Set the designator's visual definition.
virtual const
DtStateVisualizer::TypeInfo
typeInfo () const
 The instance's type info.
virtual void setTexture (const std::string &texture)
 Set/get texture to the polygon created for the designator spot.
virtual const std::string & texture () const
 Set/get texture to the polygon created for the designator spot.
virtual void setRadius (float radius)
 Set/get the width and height of the polygon represent the designator spot.
virtual float radius () const
 Set/get the width and height of the polygon represent the designator spot.
- Public Member Functions inherited from makVrv::DtLaserDesignatorVisualizer
 DtLaserDesignatorVisualizer (DtBaseConnection &simulation, DtStateListener &listener, int modelSet)
 CTOR; expects DtStateListener to be a DtLaserDesignatorStateListener.
virtual ~DtLaserDesignatorVisualizer ()
virtual void setParent (DtStateVisualizer *)
 No-op.
virtual void createModelAgents ()
 Create the agents for the spot and designator text.
virtual void setModelDefinitionForAgents ()
 No-op.
virtual void setDesignatorId (DtUniqueID id)
 Set/get the id of the designating entity.
virtual DtUniqueID designatorId () const
 Set/get the id of the designating entity.
virtual void setDesignatorLocation (const DtVector &loc)
 Set/get the intended location of the designator spot.
virtual const DtVectordesignatorLocation () const
 Set/get the intended location of the designator spot.
virtual void setDesignatorCode (int code)
 Set/get the designator code (displayed as text)
virtual int designatorCode () const
 Set/get the designator code (displayed as text)
virtual void setPower (DtFloat32 power)
 Set/get the designator power; designator is not shown if power == 0.
virtual float power () const
 Set/get the designator power; designator is not shown if power == 0.
virtual void setFont (const std::string &font)
 Set/get the font of designator code text.
virtual const std::string & font () const
 Set/get the font of designator code text.
virtual void setFontSize (float fontSize)
 Set/get the font size of designator code text.
virtual float fontSize () const
 Set/get the font size of designator code text.
virtual void setFontColor (float r, float g, float b, float a)
 Set/get the color of designator code text; values from 0. to 1.
virtual void getFontColor (float &r, float &g, float &b, float &a) const
 Set/get the color of designator code text; values from 0. to 1.
- Public Member Functions inherited from makVrv::DtStateVisualizer
 DtStateVisualizer (DtBaseConnection &connection, DtStateListener &listener, int modelSet)
 CTOR.
virtual ~DtStateVisualizer ()
 DTOR.
void setModelDefinition (const std::string &definition)
 Sets the model definition and creates agent(s) based on that definition.
const std::string & modelDefinition () const
 Gets the current model definition.
virtual bool setVisible (bool visible, int context)
 Returns true if this context wants to show or hide the item.
virtual void initialize ()
 Initialize the visualizer.
virtual bool isVisible () const
 Returns true if visible.
virtual void setSelected (bool)
 Sets selected state.
virtual bool selected () const
void setName (const std::string &)
 Internal name of state visualizer.
const std::string & name () const
virtual void setPickable (bool)
 Sets pickable state.
virtual bool pickable () const
virtual void setUniqueID (DtUniqueID id)
DtUniqueID uniqueID () const
int visualizerType () const
void setShowHideContext (const std::vector< int > &s)
 Set show/hide context without changing visibility of item.
DtStateListenerlistener ()
DtBaseConnectionsimulation ()
 Get the connection for this visualizer.
void setDistribute (bool b)
 Whether or not to distribute over the network.
bool distribute () const

Static Public Member Functions

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

Protected Member Functions

virtual void createDesignatorSpot ()
 Work function for designator spot creation.
- Protected Member Functions inherited from makVrv::DtLaserDesignatorVisualizer
virtual void createDesignatorText ()
 Work function for designator text creation.
virtual void createUpdater ()
 Work function for designator updater creation.
- Protected Member Functions inherited from makVrv::DtStateVisualizer
virtual void slot_mouseDown (DtMouseState &mouseState, const std::string &displayEngineName, const std::string &windowName, const std::string &channelName)
 Called when the mouse is clicked in this visualizer.
virtual void slot_mouseUp (DtMouseState &mouseState, const std::string &displayEngineName, const std::string &windowName, const std::string &channelName)
virtual void slot_mouseDblClick (DtMouseState &mouseState, const std::string &displayEngineName, const std::string &windowName, const std::string &channelName)
virtual bool hide (int context)
 Will call destroyModelAgents(), if, when the context is added, it is the first context in the list.
virtual bool show (int context)
 Will call createModelAgents(), if, when context is removed from myShowHideContexts, the list size is zero.
virtual bool supportsShowHideContext (int) const
 Default returns true.
template<typename T , typename C >
void connectAndUpdate (boost::signal< void(T)> &sig, void(C::*fp)(T), T val)
 Connect a signal and update the entity.

Protected Attributes

std::string myTexture
float myRadius
DtPolygonModelAgent * myPolygonAgent
- Protected Attributes inherited from makVrv::DtLaserDesignatorVisualizer
DtUniqueID myDesignatorId
int myDesignatorCode
DtVector myDesignatorSpotLocation
float myPower
std::string myFont
float myFontSize
float myFontColor [4]
DtProjectedWidgetModelAgent * myTextModelAgent
DtWidgetLabelAgent * myTextAgent
DtSceneObjectAgent * myTextSceneObjectAgent
DtLaserDesignatorUpdaterAgent * myUpdater
- Protected Attributes inherited from makVrv::DtStateVisualizer
DtBaseConnectionmySimulation
DtStateListenermyListener
bool myDistributeFlag
DtUniqueID myUniqueID
std::string myName
std::string myModelDefinition
DtSignalConnectionManager myConnections
int myModelSet
int myVisualizerType
std::vector< intmyShowHideContexts
bool mySelected
bool myPickable
bool myVisible
DtStateVisualizermyParent
DtSceneObjectAgent * mySceneObjectAgent

Additional Inherited Members

- Public Types inherited from makVrv::DtStateVisualizer
enum  Type {
  AllVisualizerTypes = 0, EntityVisualizerType = 1, EnvironmentalVisualizerType, InteractionVisualizerType,
  AggregateVisualizerType, IntervisibilityVisualizerType, TacticalSmokeVisualizerType, UserType = 10000
}
 Visualizer class types that are supportable via visualizers. More...
- Public Attributes inherited from makVrv::DtStateVisualizer
boost::signal< void(DtStateVisualizer
*, DtStateVisualizer
*, DtStateVisualizer *)> 
signal_reparented
 Signaled when the parent of this item changes, called before destroying any model agents.
boost::signal< void(DtMouseState
&, const DtUniqueID &, const
std::string &, const
std::string &, const
std::string
&, DtStateVisualizer *)> 
signal_mouseDown
 Emitted when the entity's indicator is clicked.
boost::signal< void(DtMouseState
&, const DtUniqueID &, const
std::string &, const
std::string &, const
std::string
&, DtStateVisualizer *)> 
signal_mouseUp
boost::signal< void(DtMouseState
&, const DtUniqueID &, const
std::string &, const
std::string &, const
std::string
&, DtStateVisualizer *)> 
signal_mouseDblClick

Constructor & Destructor Documentation

makVrv::Dt3DLaserDesignatorVisualizer::Dt3DLaserDesignatorVisualizer ( DtBaseConnection simulation,
DtStateListener listener,
int  modelSet 
)
virtual makVrv::Dt3DLaserDesignatorVisualizer::~Dt3DLaserDesignatorVisualizer ( )
virtual

Member Function Documentation

virtual void makVrv::Dt3DLaserDesignatorVisualizer::destroyModelAgents ( )
virtual

Destroy the agents.

Reimplemented from makVrv::DtLaserDesignatorVisualizer.

virtual void makVrv::Dt3DLaserDesignatorVisualizer::setVisualizerDefinition ( const DtVisualizerDefinition )
virtual

Set the designator's visual definition.

Reimplemented from makVrv::DtLaserDesignatorVisualizer.

virtual void makVrv::Dt3DLaserDesignatorVisualizer::setTexture ( const std::string &  texture)
virtual

Set/get texture to the polygon created for the designator spot.

virtual const std::string& makVrv::Dt3DLaserDesignatorVisualizer::texture ( ) const
virtual

Set/get texture to the polygon created for the designator spot.

virtual void makVrv::Dt3DLaserDesignatorVisualizer::setRadius ( float  radius)
virtual

Set/get the width and height of the polygon represent the designator spot.

virtual float makVrv::Dt3DLaserDesignatorVisualizer::radius ( ) const
virtual

Set/get the width and height of the polygon represent the designator spot.

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

The instance's type info.

Implements makVrv::DtStateVisualizer.

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

This class's type info.

virtual void makVrv::Dt3DLaserDesignatorVisualizer::createDesignatorSpot ( )
protectedvirtual

Work function for designator spot creation.

Implements makVrv::DtLaserDesignatorVisualizer.

Member Data Documentation

std::string makVrv::Dt3DLaserDesignatorVisualizer::myTexture
protected
float makVrv::Dt3DLaserDesignatorVisualizer::myRadius
protected
DtPolygonModelAgent* makVrv::Dt3DLaserDesignatorVisualizer::myPolygonAgent
protected

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

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)