![]() |
VR-Forces Developer's Guide
|
A visualizer for displaying a Military Standard Symbology Icon. A symbology icon is made up of several different components. Included are: A frame, a color fill, and a icon.
Protected Member Functions | |
| virtual DtObjectTypeStateListener & | objectTypeStateListener () |
| virtual const DtObjectTypeStateListener & | objectTypeStateListener () const |
| virtual bool | fillCharacterByOutline (unsigned short outline, unsigned short lower, unsigned short upper, unsigned short start, bool equipment, unsigned short &fill) const |
| virtual unsigned short | forceOffset (int force) const |
| virtual void | displayChanged () |
| virtual void | createModelAgents () |
| virtual void | destroyModelAgents () |
| virtual void | update () |
| virtual void | updateLabel () |
| virtual void | connectToListenerSignals () override |
| virtual void | setInitialValuesFromVisualizerDefinition () override |
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) |
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::DtMilStdIconVisualizer::DtMilStdIconVisualizer | ( | DtBaseConnection & | connection, |
| DtStateListener & | listener, | ||
| DtSceneObjectAgent * | sceneObject, | ||
| DtModelSetId | modelSet | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
delete |
not allowed - default constructor
|
delete |
not allowed - copy constructor
|
delete |
not allowed = equals operator
|
overridevirtual |
Initialize the visualizer.
Reimplemented from makVrv::DtStateVisualizer.
Reimplemented in makVrf::DtVrfGui3DAggregateMilStdIconVisualizer, makVrf::DtVrfGuiEnvironmentalMilStdIconVisualizer, makVrf::DtVrfGuiEntityMilStdIconVisualizer, makVrv::DtEntityMilStdIconVisualizer, makVrf::DtVrfGui2DAggregateMilStdIconVisualizer, makVrv::DtEnvironmentalMilStdIconVisualizer, makVrv::DtAggregateMilStdIconVisualizer, and makVrv::Dt3DAggregateMilStdIconVisualizer.
|
virtual |
Sets the model definition of the agents.
Implements makVrv::DtStateVisualizer.
Reimplemented in makVrv::DtAggregateMilStdIconVisualizer, makVrv::DtEntityMilStdIconVisualizer, and makVrv::DtEnvironmentalMilStdIconVisualizer.
|
overridevirtual |
Set the visualizer to be selected. If selected, the visualizer widget's order group is changed to be the next available group number in the selectedGroupSet group set - provided by the DtOverlayGroupManager. Once no longer selected, the order group is restored to its original value. This method is invoked whenever the element this icon belongs to is selected. It is connected to the DtStateListener's signal_objectSelectionChanged signal.
Reimplemented from makVrv::DtStateVisualizer.
|
virtual |
Set whether the frame component is drawn.
|
virtual |
Get whether the frame component is drawn.
|
virtual |
Set whether the fill component is filled.
|
virtual |
Get whether the fill component is filled.
|
virtual |
Sets whether damaged component is drawn.
|
virtual |
Gets whether damaged component is drawn.
|
virtual |
Set whether or not the MIL-STD icon managed by this visualizer is pinned or not. A pinned MIL-STD icon will not be dynamically scaled. Instead, a fixed scale is used. If fixed icon scaling is not enabled, then the fixed scale that is used is determined by the altitude-specific configuration that corresponds to the altitude set using setBaseAltitudeToUseWhilePinned.
|
virtual |
Get whether or not the MIL-STD icon managed by this visualizer is pinned or not. A pinned MIL-STD icon will not be dynamically scaled. Instead, a fixed scale is used. If fixed icon scaling is not enabled, then the fixed scale that is used is determined by the altitude-specific configuration that corresponds to the altitude set using setBaseAltitudeToUseWhilePinned.
|
virtual |
Set the altitude used to determine which scale to use from the altitude-specific configurations while the the MIL-STD icon is pinned. This is only used if setFixedIconScalingEnabled(false). Altitude is in meters from mean sea level.
|
virtual |
Get the altitude used to determine which scale to use from the altitude-specific configurations while the the MIL-STD icon is pinned. This is only used if setFixedIconScalingEnabled(false). Altitude is in meters from mean sea level.
|
virtual |
Set whether or not fixed icon scaling will be used. If fixed icon scaling is NOT used, then icons will be dynamically scaled based on the altitude of the observer for the channel rendering the icon.
|
virtual |
Set the icon scale to use. This is only used if setFixedIconScalingEnabled(true).
|
virtual |
Set the altitude-specific scale values to use for this visualizer.
|
virtual |
Set whether the icon has it's color set by it's affiliation.
|
virtual |
Get whether the icon has it's color set by it's affiliation.
|
virtual |
Sets force of item. If force is different than current force, will cause an update.
Reimplemented in makVrv::DtEnvironmentalMilStdIconVisualizer.
|
inlinevirtual |
|
virtual |
Sets whether or not item is damaged. If damaged flag is different will cause an update.
|
inlinevirtual |
|
virtual |
Sets the color of the force. Forces an update.
Reimplemented in makVrf::DtVrfGui3DAggregateMilStdIconVisualizer, makVrf::DtVrfGuiEntityMilStdIconVisualizer, and makVrf::DtVrfGui2DAggregateMilStdIconVisualizer.
|
virtual |
|
virtual |
Routines to modify glyphs into force appropriate glyphs. Call outlineCharacterForUnitSymbolFont to get the force modified outline, then pass that result into fillCharacterForUnitSymbolFont to return the appropriate fill character.
|
virtual |
Reimplemented in makVrv::DtEnvironmentalMilStdIconVisualizer, and makVrv::DtEntityMilStdIconVisualizer.
|
virtual |
Generates the symbol string to use with a font based icon.
Reimplemented in makVrv::DtAggregateMilStdIconVisualizer.
|
virtual |
Returns glyphs.
|
virtual |
|
virtual |
|
virtual |
Sets pickable state.
Reimplemented from makVrv::DtStateVisualizer.
|
virtual |
Rotates the object to the given heading as supplied in radians.
|
virtual |
Sets the mouse hover state.
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Virtual function called after any symbol state changes Virtual function called after any symbol state changes (draw method, frame enabled, fill enabled, icon enabled, color by affiliation);.
|
protectedvirtual |
Override to create model agents that will be used to display data from the listener.
Implements makVrv::DtStateVisualizer.
Reimplemented in makVrv::DtAggregateMilStdIconVisualizer, makVrv::DtEntityMilStdIconVisualizer, and makVrv::DtEnvironmentalMilStdIconVisualizer.
|
protectedvirtual |
Destroys all currently created definitions.
Implements makVrv::DtStateVisualizer.
Reimplemented in makVrv::DtEnvironmentalMilStdIconVisualizer.
|
protectedvirtual |
Update the MIL STD Icon. This function invokes either updateLabel() or updateIcon() based on the set DrawMethod.
|
protectedvirtual |
Update the label used for the MIL STD Icon. This method is used if the DrawMethod is DrawMethod_Font.
Reimplemented in makVrv::DtAggregateMilStdIconVisualizer, makVrv::DtEnvironmentalMilStdIconVisualizer, and makVrv::DtEntityMilStdIconVisualizer.
|
overrideprotectedvirtual |
Connect the visualizer to the listeners signals Called by DtStateVisualizer::initialize()
Reimplemented from makVrv::DtStateVisualizer.
Reimplemented in makVrf::DtVrfGui3DAggregateMilStdIconVisualizer, makVrv::DtAggregateMilStdIconVisualizer, makVrf::DtVrfGuiEnvironmentalMilStdIconVisualizer, makVrv::DtEnvironmentalMilStdIconVisualizer, makVrv::DtEntityMilStdIconVisualizer, makVrf::DtVrfGuiEntityMilStdIconVisualizer, and makVrf::DtVrfGui2DAggregateMilStdIconVisualizer.
|
overrideprotectedvirtual |
Sets member variables from the visualizer definition if they exist Should not call this directly. Called by DtStateVisualizer::initialize.
Reimplemented from makVrv::DtStateVisualizer.
Reimplemented in makVrv::DtAggregateMilStdIconVisualizer, makVrv::DtEnvironmentalMilStdIconVisualizer, and makVrv::DtEntityMilStdIconVisualizer.
|
protected |
|
protected |
|
protected |
True
|
protected |
True
|
protected |
False
|
protected |
True
|
protected |
The base altitude to use when determining the scale to use while pinned std::numeric_limits<double>::min()
|
protected |
whether or not the widget this visualizer controls is pinned
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |