![]() |
VR-Forces 4.7 Class Documentation
|
Manages the creation, animation, and timeout of comm lines and squawk indicators. More...
Classes | |
| struct | CommLineInfo |
| Stores information about a single comm line. More... | |
| struct | SquawkIndicatorInfo |
| Stores information about a single squawk indicator. More... | |
Public Member Functions | |
Lookup and Modifier Methods | |
| virtual void | findOrCreateAndSelectCommLine (int modelSet, int visualType, const DtCommunicationLine::AttachablePoint &source, const DtCommunicationLine::AttachablePoint &dest) |
| Finds / creates the communication line between the given entities. | |
| virtual void | findOrCreateAndSelectSquawkIndicator (int modelSet, int visualType, const DtSquawkIndicator::AttachablePoint &transmitLoc) |
| Finds / creates the squawk indicator on the given entity. | |
| void | setAnimationRate (float rate) |
| Sets the animation rate of the currently selected visualization. | |
| void | setLifetime (float lifetime) |
| Sets the lifetime of the currently selected visualization. | |
| virtual void | setColor (float red, float green, float blue, float alpha=1.0) |
| Sets the color of the currently selected visualization. | |
| virtual void | setSenderOffset (const DtVector &offset) |
| Sets the offset of attachments to the sender location. | |
| virtual void | setReceiverOffset (const DtVector &offset) |
| Sets the offset of attachments to the receiver locaiton. | |
Comm Line and Squawk Indicator Deletion | |
| virtual void | deleteCommLines () |
| Deletes all comm lines. | |
| virtual void | deleteSquawkIndicators () |
| Deletes all squawk indicators. | |
| virtual void | deleteCommLinesByModelSet (int modelSet) |
| Deletes all comm lines for the given model set. | |
| virtual void | deleteSquawkIndicatorsByModelSet (int modelSet) |
| Deletes all squawk indicators for the given model set. | |
Static Public Member Functions | |
| static DtRadioCommsVisualizationManager & | instance (DtDe &de) |
| Static instance accessor for the manager class. | |
Protected Types | |
| enum | SelectionType { CommunicationLine, SquawkIndicator, None } |
| Enumeration for type of visualization currently selected. More... | |
| typedef boost::unordered_map < DtUniqueID, SquawkIndicatorInfo > | SquawkIndicatorsById |
| Map type for mapping indicator ids to squawk indicator info. | |
| typedef std::map < DtSquawkIndicator::AttachablePoint, SquawkIndicatorInfo > | SquawkIndicatorsByLocation |
| Map type for mapping attach points to the indicator at that point. | |
| typedef boost::unordered_map < int, SquawkIndicatorsByLocation > | ModelSetSquawkIndicatorsMap |
| Map type for mapping model set to a SquawkIndicatorsByLocation map. | |
| typedef boost::unordered_map < DtUniqueID, CommLineInfo > | CommLinesById |
| Map type for mapping comm line ids to comm line information. | |
| typedef std::pair < DtCommunicationLine::AttachablePoint, DtCommunicationLine::AttachablePoint > | CommLineEndpointPair |
| Pair type for storing pairs of attach points as a since endpoint pair. | |
| typedef std::map < CommLineEndpointPair, CommLineInfo > | CommLinesByEndpoints |
| Map type for mapping a CommLineEndpointPair to the comm line between them. | |
| typedef boost::unordered_map < int, CommLinesByEndpoints > | ModelSetCommLinesMap |
| Map type for mapping model set to a CommLinesByEndpoints map. | |
| typedef boost::unordered_map < DtUniqueID, float > | LifetimesMap |
| Map type for mapping comm/squawk line ids to custom lifetimes. | |
Protected Member Functions | |
| DtRadioCommsVisualizationManager (DtDe &de) | |
| CTOR. | |
| virtual | ~DtRadioCommsVisualizationManager () |
| DTOR. | |
| virtual void | useCurrentSettings () |
| Stores the currently configured settings. | |
| virtual void | slot_displaySettingsChanged () |
| Receives notification that visibility of comm/squawk lines changed. | |
| virtual void | slot_squawkIndicatorAnimationRateChanged (float rate) |
| Receives notification that the squawk indicator animation rate changed. | |
| virtual void | slot_commLineAnimationRateChanged (float rate) |
| Receives notification that the comm line animation rate changed. | |
| virtual void | slot_squawkIndicatorLifetimeChanged (float lifetime) |
| Receives notification that the squawk indicator lifetime changed. | |
| virtual void | slot_commLineLifetimeChanged (float lifetime) |
| Receives notification that the comm line lifetime changed. | |
| virtual void | slot_commLineRenderModeChanged (makArchives::DtRadioCommunicationsSettingsRecord::CommLineMode renderMode) |
| Receives notification that the comm line render mode changed. | |
| virtual void | slot_greatCircleExaggerationAmountChanged (float amount) |
| Receives notification that the great circle arc exaggeration amount changed. | |
| virtual void | slot_preTick () |
| Receives tick signal from the De. | |
Manages the creation, animation, and timeout of comm lines and squawk indicators.
|
protected |
Map type for mapping indicator ids to squawk indicator info.
|
protected |
Map type for mapping attach points to the indicator at that point.
|
protected |
Map type for mapping model set to a SquawkIndicatorsByLocation map.
|
protected |
Map type for mapping comm line ids to comm line information.
|
protected |
Pair type for storing pairs of attach points as a since endpoint pair.
|
protected |
Map type for mapping a CommLineEndpointPair to the comm line between them.
|
protected |
Map type for mapping model set to a CommLinesByEndpoints map.
|
protected |
Map type for mapping comm/squawk line ids to custom lifetimes.
|
protected |
|
protected |
CTOR.
|
protectedvirtual |
DTOR.
|
static |
Static instance accessor for the manager class.
|
virtual |
Finds / creates the communication line between the given entities.
Reverses the scroll direction of the line if necessary and resets the line's creation time.
|
virtual |
Finds / creates the squawk indicator on the given entity.
Resets the squawk indicator's creation time.
| void makVrv::DtRadioCommsVisualizationManager::setAnimationRate | ( | float | rate | ) |
Sets the animation rate of the currently selected visualization.
| void makVrv::DtRadioCommsVisualizationManager::setLifetime | ( | float | lifetime | ) |
Sets the lifetime of the currently selected visualization.
|
virtual |
Sets the color of the currently selected visualization.
|
virtual |
Sets the offset of attachments to the sender location.
|
virtual |
Sets the offset of attachments to the receiver locaiton.
Note: Only applies to comm lines.
|
virtual |
Deletes all comm lines.
|
virtual |
Deletes all squawk indicators.
|
virtual |
Deletes all comm lines for the given model set.
|
virtual |
Deletes all squawk indicators for the given model set.
|
protectedvirtual |
Stores the currently configured settings.
The cached settings values will be updated as the settings change, and will be used to create/animate/timeout comm and squawk lines and indicators so that repeated settings lookups aren't needed every tick.
|
protectedvirtual |
Receives notification that visibility of comm/squawk lines changed.
Updates internal enabled flags and deletes comm/squawk lines if toggled off.
|
protectedvirtual |
Receives notification that the squawk indicator animation rate changed.
Updates the value of the cached squawk indicator animation rate.
|
protectedvirtual |
Receives notification that the comm line animation rate changed.
Updates the value of the cached comm line animation rate.
|
protectedvirtual |
Receives notification that the squawk indicator lifetime changed.
Updates the value of the cached squawk indicator lifetime.
|
protectedvirtual |
Receives notification that the comm line lifetime changed.
Updates the value of the cached comm line lifetime.
|
protectedvirtual |
Receives notification that the comm line render mode changed.
Updates the cached render mode value and updates existing comm lines.
|
protectedvirtual |
Receives notification that the great circle arc exaggeration amount changed.
Updates the exaggeration amount for all instantiated comm lines.
|
protectedvirtual |
Receives tick signal from the De.
Performs animation and timeout on comm/squawk lines.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |