![]() |
VR-Forces Developer's Guide
|
Implementation for a Spherical Sector Tactical Graphic Visualizer.
This class is used by a Connection to realize a Spherical Sector tactical graphic by setting the attributes of a Spherical Sector model according to signals received from the DtTacticalGraphicStateListener.
This class implements a 3D-only tactical graphic.

Public Member Functions | |
| DtSphericalSectorVisualizer (DtBaseConnection &simulation, DtStateListener &listener, DtSceneObjectAgent *sceneObject, DtModelSetId modelSet) | |
| virtual | ~DtSphericalSectorVisualizer () |
| DtSphericalSectorVisualizer ()=delete | |
| DtSphericalSectorVisualizer (const DtSphericalSectorVisualizer &)=delete | |
| DtSphericalSectorVisualizer & | operator= (const DtSphericalSectorVisualizer &)=delete |
| virtual const DtStateVisualizer::TypeInfo & | typeInfo () const |
| virtual void | initialize () override |
| virtual void | slot_setSelected (bool) override |
| virtual void | setIsFriendlyForceColorOverrideEnabled (bool enabled) |
| virtual bool | isFriendlyForceColorOverrideEnabled () const |
| virtual void | setPickable (bool isPickable) override |
| virtual void | setIsDome (bool isDome) |
| virtual bool | isDome () 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 | setSelectedColor (float r, float g, float b, float a) |
| virtual void | getSelectedColor (float &r, float &g, float &b, float &a) const |
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 |
| virtual void | implementVisibility (bool visible) |
| 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 &) |
| 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) |
Static Public Member Functions | |
| static const DtStateVisualizer::TypeInfo & | theTypeInfo () |
Protected Member Functions | |
| virtual void | connectToListenerSignals () override |
| virtual void | updateColors () |
| virtual void | setInitialValuesFromVisualizerDefinition () override |
| virtual void | createModelAgents () override |
| virtual void | destroyModelAgents () override |
| virtual void | setModelDefinitionForAgents () override |
| void | setFriendlyForceColorStyle (vrvTacticalGraphicUtilities::FriendlyForceColorStyle style) |
Protected Member Functions inherited from makVrv::DtStateVisualizer | |
| virtual void | makeVisible () |
| template<typename T , typename C > | |
| void | connectAndUpdate (boost::signalslib::signal< void(T)> &sig, void(C::*fp)(T), T val) |
Protected Attributes | |
| DtEllipsoidArcModelAgent * | mySphericalSectorModelAgent |
| DtTacticalGraphicStateListener & | mySphericalSectorListener |
| float | myDefaultColor [4] |
| float | myColor [4] |
| float | mySelectedColor [4] |
| bool | myDefaultColorSet |
| bool | myDefaultFontColorSet |
| vrvTacticalGraphicUtilities::FriendlyForceColorStyle | myFriendlyForceColorStyle |
| bool | myIsFriendlyForceColorOverrideEnabled |
| bool | myIsDome |
Protected Attributes inherited from makVrv::DtStateVisualizer | |
| DtBaseConnection & | mySimulation |
| DtStateListener & | myListener |
| bool | myDistributeFlag |
| DtUniqueID | mySceneObjectID |
| std::string | myName |
| std::string | myModelDefinition |
| DtSignalConnectionManager | myConnections |
| DtModelSetId | myModelSet |
| int | myVisualizerType |
| bool | myPickable |
| bool | myVisible |
| const DtVisualizerDefinition * | myVisualizerDefinition |
| 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 |
| makVrv::DtSphericalSectorVisualizer::DtSphericalSectorVisualizer | ( | DtBaseConnection & | simulation, |
| DtStateListener & | listener, | ||
| DtSceneObjectAgent * | sceneObject, | ||
| DtModelSetId | modelSet | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
delete |
Default Constructor - not allowed.
|
delete |
Copy Constructor not implemented - Copy not allowed.
|
delete |
Assignment Operator not implemented - Copy not allowed.
|
virtual |
Get the instance's type info.
Implements makVrv::DtStateVisualizer.
|
static |
Get the class's type info.
|
overridevirtual |
Initialize the visualizer.
Reimplemented from makVrv::DtStateVisualizer.
|
virtual |
Color.
Sets the color for the spherical sector. 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 |
Returns the color.
|
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 |
Set/Get the color of the spherical sector. Valid range for argument values are 0.0 - 1.0. Default value is (1, 1, 1, 1).
|
virtual |
Color.
Sets the color for the spherical sector. 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
|
overridevirtual |
Sets whether or not the spherical sector is selected. Connected to DtStateListener's signal_objectSelectionChanged signal.
Reimplemented from makVrv::DtStateVisualizer.
|
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.
|
overridevirtual |
Sets pickable state.
Reimplemented from makVrv::DtStateVisualizer.
|
virtual |
Set whether or not this spherical sector is shaped like a dome, i.e. hemisphere with flat face downward. If true, then the elevation range for the spherical sector will be 0 radians to PI/2 radians. If false, then the elevation range for the spherical secotr will be -PI/2 radians to PI/2 radians.
|
virtual |
Get whether or not this spherical sector is shaped like a dome, i.e. hemisphere with flat face downward.
|
overrideprotectedvirtual |
Connect the visualizer to the listeners signals.
Reimplemented from makVrv::DtStateVisualizer.
|
protectedvirtual |
Update the colors on the model.
|
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 |
No-op must override pure virtual.
Implements makVrv::DtStateVisualizer.
|
overrideprotectedvirtual |
No-op must override pure virtual.
Implements makVrv::DtStateVisualizer.
|
overrideprotectedvirtual |
No-op must override pure virtual.
Implements makVrv::DtStateVisualizer.
|
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 |