![]() |
VR-Forces Developer's Guide
|
Interface for a Wedge Tactical Graphic Visualizer.
This class is used by a Connection to realize a Wedge tactical graphic by setting the attributes of a Wedge Facade according to signals received from the DtTacticalGraphicStateListener.
This class must be extended to create a wedge model of the desired type, e.g. a 2D versus 3D wedge.

Public Member Functions | |
| DtWedgeVisualizer (DtBaseConnection &simulation, DtStateListener &listener, DtSceneObjectAgent *sceneObject, DtModelSetId modelSet) | |
| virtual | ~DtWedgeVisualizer () |
| DtWedgeVisualizer ()=delete | |
| DtWedgeVisualizer (const DtWedgeVisualizer &)=delete | |
| DtWedgeVisualizer & | operator= (const DtWedgeVisualizer &)=delete |
| virtual void | initialize () override |
| virtual void | useDefaultColor () |
| virtual void | setFillStyle (vrvTacticalGraphicUtilities::FillStyle) |
| virtual vrvTacticalGraphicUtilities::FillStyle | fillStyle () const |
| virtual void | setPenStyle (vrvTacticalGraphicUtilities::PenStyle) |
| virtual unsigned short | lineStipple () const |
| virtual void | slot_setSelected (bool) override |
| virtual void | setSolidFillCenter (bool) |
| virtual void | setFillPattern (const std::vector< unsigned int > &) |
| 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 | setCentralVertexColor (float r, float g, float b, float a) |
| virtual void | getCentralVertexColor (float &r, float &g, float &b, float &a) const |
| virtual void | setInsideColor (float r, float g, float b, float a) |
| virtual void | getInsideColor (float &r, float &g, float &b, float &a) const |
| virtual void | setOutsideColor (float r, float g, float b, float a) |
| virtual void | getOutsideColor (float &r, float &g, float &b, float &a) const |
| virtual void | setSelectedInsideColor (float r, float g, float b, float a) |
| virtual void | getSelectedInsideColor (float &r, float &g, float &b, float &a) const |
| virtual void | setSelectedOutsideColor (float r, float g, float b, float a) |
| virtual void | getSelectedOutsideColor (float &r, float &g, float &b, float &a) const |
| virtual void | setFilled (bool filled) |
| virtual bool | isFilled () |
| virtual void | setStipplePattern (unsigned short) |
| virtual unsigned short | stipplePattern () |
| virtual void | setPixelLineWidth (int) |
| virtual int | pixelLineWidth () |
Public Member Functions inherited from makVrv::DtStateVisualizer | |
| DtStateVisualizer (DtBaseConnection &connection, DtStateListener &listener, DtSceneObjectAgent *sceneObjectAgent, DtModelSetId modelSet) | |
| virtual | ~DtStateVisualizer () |
| virtual DtModelSetId | modelSet () |
| virtual void | createModelAgents ()=0 |
| virtual void | destroyModelAgents ()=0 |
| virtual const TypeInfo & | typeInfo () const =0 |
| virtual void | setSceneObjectAgent (DtSceneObjectAgent *sceneObject) |
| void | setModelDefinition (const std::string &definition) |
| const std::string & | modelDefinition () const |
| virtual void | implementVisibility (bool visible) |
| void | setName (const std::string &) |
| const std::string & | name () const |
| virtual void | setPickable (bool) |
| virtual bool | pickable () const |
| virtual DtUniqueID | sceneObjectID () const |
| int | visualizerType () const |
| virtual void | setVisualizerDefinition (const DtVisualizerDefinition &) |
| DtStateListener & | listener () |
| const DtStateListener & | listener () const |
| DtBaseConnection & | simulation () |
| void | setDistribute (bool b) |
| bool | distribute () const |
| virtual bool | isVisible () const |
| virtual bool | setVisualizerIsVisible (bool vis, DtVisualizerShowHideContext::VisualizerShowHideContext context) |
Protected Member Functions | |
| virtual void | setInitialValuesFromVisualizerDefinition () override |
| virtual void | connectToListenerSignals () override |
| virtual void | updateColors ()=0 |
| void | setFriendlyForceColorStyle (vrvTacticalGraphicUtilities::FriendlyForceColorStyle style) |
Protected Member Functions inherited from makVrv::DtStateVisualizer | |
| virtual void | setModelDefinitionForAgents ()=0 |
| virtual void | makeVisible () |
| template<typename T , typename C > | |
| void | connectAndUpdate (boost::signalslib::signal< void(T)> &sig, void(C::*fp)(T), T val) |
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 |
| makVrv::DtWedgeVisualizer::DtWedgeVisualizer | ( | DtBaseConnection & | simulation, |
| DtStateListener & | listener, | ||
| DtSceneObjectAgent * | sceneObject, | ||
| DtModelSetId | modelSet | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
delete |
Default Constructor not implemented.
|
delete |
Copy Constructor not implemented - Copy not allowed.
|
delete |
Assignment Operator not implemented - Copy not allowed.
|
overridevirtual |
Initialize the visualizer.
Reimplemented from makVrv::DtStateVisualizer.
|
virtual |
Set/Get the color for the wedge. Valid range for argument values are 0.0 - 1.0. This will apply to all segments of the arc. If arguments are all 0, use the default as defined in the visual definition.
|
virtual |
Set/Get the color for the wedge. Valid range for argument values are 0.0 - 1.0. This will apply to all segments of the arc. If arguments are all 0, use the default as defined in the visual definition.
|
virtual |
Set/Get the color of the wedge's central vertex. Valid range for argument values are 0.0 - 1.0. Default value is (0, 0, 0, 0).
|
virtual |
Set/Get the color of the wedge's central vertex. Valid range for argument values are 0.0 - 1.0. Default value is (0, 0, 0, 0).
|
virtual |
Set/Get the inside color of the wedge. Valid range for argument values are 0.0 - 1.0. Default value is (0, 0, 0, 1). This function will also update mySelectedInsideColor if setSelectedInsideColor(...) was not be called beforehand.
|
virtual |
Set/Get the inside color of the wedge. Valid range for argument values are 0.0 - 1.0. Default value is (0, 0, 0, 1). This function will also update mySelectedInsideColor if setSelectedInsideColor(...) was not be called beforehand.
|
virtual |
Set/Get the outside color of the wedge. Valid range for argument values are 0.0 - 1.0. Default value is (0, 0, 0, 1).
|
virtual |
Set/Get the outside color of the wedge. Valid range for argument values are 0.0 - 1.0. Default value is (0, 0, 0, 1).
|
virtual |
Set/Get the inside color of the wedge when selected. Valid range for argument values are 0.0 - 1.0. Default value is (0, 0, 0, 1).
|
virtual |
Set/Get the inside color of the wedge when selected. Valid range for argument values are 0.0 - 1.0. Default value is (0, 0, 0, 1).
|
virtual |
Set/Get the outside color of the wedge when selected. Valid range for argument values are 0.0 - 1.0. Default value is (1, 1, 1, 1).
|
virtual |
Set/Get the outside color of the wedge when selected. Valid range for argument values are 0.0 - 1.0. Default value is (1, 1, 1, 1).
|
virtual |
Set / Get if the widge is filled Default set from visualizer definition.
Reimplemented in makVrv::Dt2DWedgeVisualizer.
|
virtual |
Set / Get if the widge is filled Default set from visualizer definition.
|
virtual |
Sets color to default color The default color is defined in the visualizer definition. This function is called when setColor( 0, 0, 0, 0 ); is called.
|
virtual |
Sets the fill style of the area. If fill is 0, will be considered an outlined area. Translates the fill style bit to a patterened fill style using the mapping routines found in vrvTacticalGraphicUtilities.h.
|
virtual |
Returns the currently set fill style.
|
virtual |
Set the pen style This function translates the pen style to a stipple pattern. See vrvTacticalGraphicUtilities for styles.
|
virtual |
Returns the stipple pattern.
|
virtual |
Set/Get the stipple pattern.
Reimplemented in makVrv::Dt2DWedgeVisualizer.
|
virtual |
Set/Get the stipple pattern.
|
overridevirtual |
Sets whether or not the wedge is selected. Connected to DtStateListener's signal_objectSelectionChanged signal.
Reimplemented from makVrv::DtStateVisualizer.
|
virtual |
Set whether to solid fill or gradient fill the wedge. This function does nothing if setFill(false).
Reimplemented in makVrv::Dt2DWedgeVisualizer.
|
virtual |
Set the fill pattern of the wedge.
Reimplemented in makVrv::Dt2DWedgeVisualizer.
|
virtual |
Set/Get the line width of the wedge The pixel line width is the width of the line in osg pixel space. This is different than physicalLineWidth which sets the width of the line in database space.
Reimplemented in makVrv::Dt2DWedgeVisualizer.
|
virtual |
Set/Get the line width of the wedge The pixel line width is the width of the line in osg pixel space. This is different than physicalLineWidth which sets the width of the line in database space.
|
virtual |
Set whether or not the color of this graphic, if aligned friendly,
can be overridden with black/white coloration
|
virtual |
Returns (based on the model definitionor set value) whether or not the color of this graphic, if aligned friendly, can be overridden with black/white coloration.
|
overrideprotectedvirtual |
Sets member variables from the visualizer definition if they exist Should not call this directly. Called by DtStateVisualizer::initialize.
Reimplemented from makVrv::DtStateVisualizer.
|
overrideprotectedvirtual |
Connect the visualizer to the listeners signals Called by DtStateVisualizer::initialize()
Reimplemented from makVrv::DtStateVisualizer.
|
protectedpure virtual |
Update the colors on the model.
Implemented in makVrv::Dt2DWedgeVisualizer.
|
protected |
Connected to the TG listener's signal_friendlyForceColorStyleChanged. This will cache the new value and force a call to updateColors()
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |