![]() |
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 DtOverlayZone | currentZone () const |
| 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 | updateLabel () |
| virtual void | updateFontBasedIcon () |
| virtual void | updateGeneratedMilStdImageIcon () |
| virtual void | connectToListenerSignals () override |
| virtual void | setInitialValuesFromVisualizerDefinition () override |
| virtual void | slot_milSymbolStandardChanged (DtSymbologyStandard standard) |
| virtual void | slot_colorSymbolByForceChanged (bool enabled) |
| virtual void | slot_friendlyForceColorStyleChanged (vrvTacticalGraphicUtilities::FriendlyForceColorStyle style) |
| virtual void | slot_updateSidc () |
| virtual void | updateCachedSidc () |
| virtual void | invalidateMilStdWidgetCache () |
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, SoundInteractionVisualizerType, 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 |
|
virtual |
When true, createModelAgents() creates a DtMilStdWidget agent instead of a plain DtWidgetLabel agent and drives the icon via setBackgroundImage() with a MIL-STD virtual key. false.
|
virtual |
|
protectedvirtual |
Returns the current overlay zone based on mouse over/selected/pinned state.
|
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 label used for the MIL STD Icon.
Reimplemented in makVrv::DtAggregateMilStdIconVisualizer, makVrv::DtEnvironmentalMilStdIconVisualizer, and makVrv::DtEntityMilStdIconVisualizer.
|
protectedvirtual |
|
protectedvirtual |
|
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.
|
protectedvirtual |
Called when the global MilStd icon standard changes. Tears down and recreates model agents if the mode switches between generated MIL-STD image and font-glyph paths.
|
protectedvirtual |
Receives signal that color-symbol-by-force has been toggled; invalidates the cached MIL-STD image and triggers a label update.
|
protectedvirtual |
Receives signal that the friendly force color style has changed; invalidates the cached MIL-STD image and triggers a label update. SS25 SIDCs only.
|
protectedvirtual |
Connected to the DtObjectTypeStateListener's signal_sidcSet signal and signal_objectTypeSet signal. Updates the cached SIDC string and then updates the label.
|
protectedvirtual |
Updates the cached SIDC string based upon the current state of the visualizer.
|
protectedvirtual |
Reset the cached MIL-STD key and widget-property flags so the next updateGeneratedMilStdImageIcon() call re-pushes everything to myLabel. Call after the label is destroyed/recreated or after global rendering state changes outside the DtMilStdKeyParams struct (e.g. symbology standard switch).
|
protected |
|
protected |
|
protected |
|
protected |
True
|
protected |
True
|
protected |
False
|
protected |
True
|
protected |
whether or not the widget this visualizer controls is pinned
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
When true the icon is rendered as a rasterised MIL-STD texture via DtMilStdWidget rather than via glyph-font compositing.
|
protected |
When true the MIL-STD icon frame fill is overridden with force color.
|
protected |
Friendly force color style used to force friendly symbol set 25 icons to black or white when set.
|
protected |
When true the MIL-STD icon is rendered with ghosting (alpha override).
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Overlay group manager for this connection; bound in the constructor.
Cached icon overlay group ID for the Normal zone.
Cached icon overlay group ID for the Selected zone.
Cached icon overlay group ID for the MouseOver zone.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
The base altitude to use when determining the scale to use while pinned std::numeric_limits<double>::min()
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Override index from the registry; -1 when no override applies.
|
protected |
Last DtMilStdKeyParams used to generate myLastMilStdKey. Used to skip generateMilStdKey() when nothing affecting the key changed.
|
protected |
Cached MIL-STD virtual key matching myLastMilStdParams. Empty until the first successful build.
|
protected |
True once myLastMilStdParams / myLastMilStdKey have been populated.
|
protected |
True once the per-widget MIL-STD properties (overlay, events, bounds policy, size, color) have been pushed to myLabel. Reset by invalidateMilStdWidgetCache().
|
protected |