![]() |
VR-Forces 4.7 Class Documentation
|

Public Member Functions | |
| DtVrfSpotReportManager (makVrv::DtDe &) | |
| virtual | ~DtVrfSpotReportManager () |
| void | setAutoSave (bool b) |
| bool | autoSave () const |
| virtual void | getRecord (DtVrfSpotReportsSettingsRecord &rec) const |
| virtual void | getSplitRecord (std::vector< DtVrfSpotReportsSettingsRecord > &rec, std::vector< std::string > &fileNames) |
| To support writing element definitions in folders as multiple files not implemented. | |
| virtual void | addRecords (DtVrfSpotReportsSettingsRecord &recs, DtVrfSpotReportsSettingsRecord &combinedRec) |
| To support writing element definitions in folders as multiple files not implemented. | |
| virtual void | setFromRecord (const DtVrfSpotReportsSettingsRecord &rec, bool updateFilter=true) |
| Emits signal to add FogOfWar filter with the new spot report settings. | |
| virtual void | requestSpotReports () |
| Requests spot reports and sets internal id to make sure this gui is the only one that will handle them. | |
| virtual void | requestSpotReportsFor (std::vector< int > forces) |
| Request spot reports for the given forces. | |
| virtual void | showPerspectiveForForce (const std::string &, bool autoSave=true) |
| Shows the perspective (ground truth and spot reports) for the given force. | |
| virtual void | setDisplayReportingName (bool) |
| Calls to current settings record to store the values. | |
| virtual bool | displayReportingName () const |
| virtual void | setDisplayObservedName (bool) |
| virtual bool | displayObservedName () const |
| virtual void | setDisplayTimeSinceLastReport (bool) |
| virtual bool | displayTimeSinceLastReport () const |
| virtual void | setDisplayLastContact (bool) |
| virtual bool | displayLastContact () const |
| virtual void | setDisplayLocation (bool) |
| virtual bool | displayLocation () const |
| virtual void | setDisplayVelocity (bool) |
| virtual bool | displayVelocity () const |
| virtual void | setDisplayContactRadius (bool) |
| virtual bool | displayContactRadius () const |
| virtual void | setDisplayContactRadiusIndicator (bool) |
| virtual bool | displayContactRadiusIndicator () const |
| virtual void | setDisplayHeading (bool) |
| virtual bool | displayHeading () const |
| virtual void | setDisplayEntityType (bool) |
| virtual bool | displayEntityType () const |
| virtual void | setDisplayHeadingIndicator (bool) |
| virtual bool | displayHeadingIndicator () const |
| virtual void | setDisplayVelocityIndicator (bool) |
| virtual bool | displayVelocityIndicator () const |
| virtual void | setApplyToEnvironmentals (bool) |
| virtual bool | applyToEnvironmentals () const |
| virtual void | setShowOnlyActiveEnvironmentals (bool) |
| virtual bool | showOnlyActiveEnvironmentals () const |
| virtual void | setShowTrackHistories (bool) |
| Whether or not to show track histories. | |
| virtual bool | showTrackHistories () const |
| virtual void | setShowTrackHistoriesForSelected (bool) |
| Whether or not to show track history lines for objects that are selected. Except for length, settings for track history are the same as entity track history lines. | |
| virtual bool | showTrackHistoriesForSelected () const |
| virtual void | setNumberOfTrackReports (int) |
| The number of track reports to keep in memory for the track report history (default is 10) | |
| virtual int | numberOfTrackReports () const |
| const std::vector< int > & | certaintyLevels () const |
| void | setCertaintyLevels (const std::vector< int > &) |
| void | setCertaintyLevel (int level, int time) |
| virtual bool | showSpotReportsForForce (int) const |
| Returns true/false the the specified force should be shown for either spot reports or ground truth. | |
| virtual bool | showGroundTruthForForce (int) const |
| virtual void | setSpotReportGatherTime (double) |
| The time (simulation) used to gather spot reports before reporting to the GUI. Default is 5 simulation seconds. | |
| virtual double | spotReportGatherTime () const |
| virtual void | setKeepReportsForTimePeriod (bool) |
| Whether or not to keep track reports for a given length of time. | |
| virtual bool | keepReportsForTimePeriod () const |
| virtual void | setKeepReportsForTime (int) |
| If keeping reports for a time period, how long (in seconds) to keep the report around for. Default is 2 minutes. | |
| virtual int | keepReportsForTime () const |
| virtual void | addShowSpotReportFor (int) |
| Adds/removes items for the specified force items. | |
| virtual void | removeShowSpotReportFor (int) |
| void | setShowSpotReportsForForce (const std::vector< int > &) |
| const std::vector< int > | spotReportsFor () const |
| virtual void | addShowGroundTruthFor (int) |
| virtual void | removeShowGroundTruthFor (int) |
| void | setShowGroundTruthForForce (const std::vector< int > &) |
| const std::vector< int > | groundTruthFor () const |
| virtual void | setDisplayFlag (int, bool) |
| Sets display flag to on/off. | |
| virtual void | setSpotReportsGloballyEnabled (bool enabled) |
| Sets the global state of spot reports - all entities set to use the global setting (which is the default) will obey this value. | |
| void | setSystemEnabled (bool) |
| Set to false to disable the spot report and ground truth display system. | |
| bool | systemEnabled () const |
| virtual void | loadDefaults (bool fromFactory=false) |
| Loads default or factory record. | |
| virtual void | saveAsDefaults () |
| Saves record as default record. | |
| const makVrv::DtRecordSettingsBackupInterface * | settingsBackup () const |
| makVrv::DtRecordSettingsBackupInterface * | settingsBackup () |
| void | exportSettings (const std::string &fileName) |
| Exports the current cache settings to a file. | |
| void | importSettings (const std::string &fileName) |
| Import the current cache settings from a file. | |
| virtual void | processReceiveSpotReport (const DtVrfObjectMessage *msg) |
| virtual void | processReceiveSpotReports (const DtVrfObjectMessage *msg) |
| virtual bool | addOrUpdateSpotReport (const std::string &type, void *, const DtUUID &) |
| Calls to the spot report data processor to add a new type of supplied spot report or update it (if it exists). | |
| virtual void | addFogOfWarFilter (const DtVrfSelectionFilter &) |
| Adds a new filter to the fog of war filters list, replacing one that is already there with the same name. | |
| virtual void | removeFogOfWarFilter (const std::string &) |
| Removes fog of war filter with given name. | |
| virtual bool | passesFogOfWarFilters (const makVrv::DtVrlinkSimulatedBaseState *, const DtVrfObjectDataState *objState=0) const |
| Returns true if this item passes the fog of war filters and should be visible. | |
| virtual bool | passesFogOfWarFilters (makVrv::DtUniqueID) const |
| virtual bool | canShowScenarioEvent (makVrv::DtUniqueID) const |
| Returns true if the scenario event can be shown given the current fog of war and scenario event settings. | |
| virtual bool | blockSignals (bool) |
| Blocks the sending of any signals. | |
| virtual void | addSpotReportDataHandler (const std::string &s, DtSpotReportDataHandlerCreatorInterface *) |
| Once added, the spot report data processor class will take ownership of the memory. | |
| virtual void | removeSpotReport (makVrv::DtUniqueID) |
| Given the spot report unique id, remove it. | |
| virtual void | removeSpotReportDataHandler (const std::string &s) |
| virtual void | setSpotReportsSelectable (bool) |
| Set spot reports to be selectable. Default is false. | |
| virtual bool | spotReportsSelectable () const |
| virtual int | certaintyLevelForTime (double d) const |
| Given the time (in seconds) return the certainty level of the spot report. | |
| virtual void | reset () |
| Resets forces requested for spot reports to allow for requesting again when spot report reporting changes. | |
| virtual void | addSpotReportVisualHandler (const std::string &s, DtExternalDataVisualHandlerCreatorInterface *) |
| Once added, the external data visuals manager class will take ownership of the memory. | |
| virtual void | removeSpotReportVisualHandler (const std::string &s) |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. | |
Static Public Member Functions | |
| static DtVrfSpotReportManager & | instance (makVrv::DtDe &de) |
| Returns instance of the messager. | |
Public Attributes | |
| boost::signal< void(const DtVrfSpotReportsSettingsRecord &)> | signal_spotReportOptionsChanged |
| Sent after anything about the spot report options have changed. | |
| boost::signal< void(bool)> | signal_spotReportsSelectableChanged |
| Sent after selectability of spot reports have changed. This is currently only able to be set via the API. | |
| boost::signal< void(bool)> | signal_showTrackHistoryForSelectedItemsChanged |
| Sent when whether or not track history for selected items have changed. | |
| boost::signal< void(int)> | signal_numberOfTrackReportsChanged |
| Sent when when the number of track reports to store have changed. | |
| boost::signal< void(bool)> | signal_keepReportsForTimePeriodChanged |
| Sent when when the way to time out reports have changed. | |
| boost::signal< void(int)> | signal_keepReportsForTimeChanged |
| Sent when when the time to keep reports has changed. Only sent if keeping reports for time period. | |
Protected Member Functions | |
| virtual void | enableDecoration (const std::string &, bool) |
| virtual bool | decorationIsEnabled (const std::string &) const |
| virtual void | slot_observerModeAdded (int) |
| virtual void | setTrackHistoriesVisible (bool) |
| If you call this directly it will not change flags internally, so, if new modes are added and this is true, that mode will not show track histories. | |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| makVrv::DtRecordSettingsBackupInterface * | mySettingsBackup |
| bool | mySignalsBlocked |
| DtVrfSpotReportsSettingsRecord | mySpotReportSettings |
| bool | mySpotReportsSelectable |
| std::set< unsigned long > | mySpotReportRequestIds |
| std::set< int > | myAlreadyRequested |
| std::map< std::string, DtVrfSelectionFilter * > | myModified |
| std::set< std::string > | myRemoved |
| DtVrfSelectionFilter * | myActiveEnvironmentalsFilter |
| makVrv::DtSignalConnectionManager | myConnections |
| makVrf::DtVrfSpotReportManager::DtVrfSpotReportManager | ( | makVrv::DtDe & | ) |
|
virtual |
|
static |
Returns instance of the messager.
| void makVrf::DtVrfSpotReportManager::setAutoSave | ( | bool | b | ) |
| bool makVrf::DtVrfSpotReportManager::autoSave | ( | ) | const |
|
virtual |
|
inlinevirtual |
To support writing element definitions in folders as multiple files not implemented.
|
inlinevirtual |
To support writing element definitions in folders as multiple files not implemented.
|
virtual |
Emits signal to add FogOfWar filter with the new spot report settings.
|
virtual |
Requests spot reports and sets internal id to make sure this gui is the only one that will handle them.
|
virtual |
Request spot reports for the given forces.
|
virtual |
Shows the perspective (ground truth and spot reports) for the given force.
The autoSave flag will determine if these settings are saved
|
virtual |
Calls to current settings record to store the values.
Will back up and auto save as necessary
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Whether or not to show track histories.
|
virtual |
|
virtual |
Whether or not to show track history lines for objects that are selected. Except for length, settings for track history are the same as entity track history lines.
|
virtual |
|
virtual |
The number of track reports to keep in memory for the track report history (default is 10)
|
virtual |
| const std::vector<int>& makVrf::DtVrfSpotReportManager::certaintyLevels | ( | ) | const |
| void makVrf::DtVrfSpotReportManager::setCertaintyLevels | ( | const std::vector< int > & | ) |
Returns true/false the the specified force should be shown for either spot reports or ground truth.
If the internal list is empty will return true
|
virtual |
The time (simulation) used to gather spot reports before reporting to the GUI. Default is 5 simulation seconds.
|
virtual |
|
virtual |
Whether or not to keep track reports for a given length of time.
|
virtual |
|
virtual |
If keeping reports for a time period, how long (in seconds) to keep the report around for. Default is 2 minutes.
|
virtual |
|
virtual |
Adds/removes items for the specified force items.
|
virtual |
| void makVrf::DtVrfSpotReportManager::setShowSpotReportsForForce | ( | const std::vector< int > & | ) |
| const std::vector<int> makVrf::DtVrfSpotReportManager::spotReportsFor | ( | ) | const |
|
virtual |
|
virtual |
| void makVrf::DtVrfSpotReportManager::setShowGroundTruthForForce | ( | const std::vector< int > & | ) |
| const std::vector<int> makVrf::DtVrfSpotReportManager::groundTruthFor | ( | ) | const |
Sets display flag to on/off.
|
virtual |
Sets the global state of spot reports - all entities set to use the global setting (which is the default) will obey this value.
| void makVrf::DtVrfSpotReportManager::setSystemEnabled | ( | bool | ) |
Set to false to disable the spot report and ground truth display system.
If false, spot reports will not be displayed and ground truth will be displayed for all entities. Default is true
| bool makVrf::DtVrfSpotReportManager::systemEnabled | ( | ) | const |
|
virtual |
Loads default or factory record.
|
virtual |
Saves record as default record.
|
inline |
|
inline |
| void makVrf::DtVrfSpotReportManager::exportSettings | ( | const std::string & | fileName | ) |
Exports the current cache settings to a file.
| void makVrf::DtVrfSpotReportManager::importSettings | ( | const std::string & | fileName | ) |
Import the current cache settings from a file.
|
virtual |
|
virtual |
|
virtual |
Calls to the spot report data processor to add a new type of supplied spot report or update it (if it exists).
The spot report data processor will look up the appropriate type of spot report manager object based on the supplied type. See the DtSpotReportDataProcessor class for more information
|
virtual |
Adds a new filter to the fog of war filters list, replacing one that is already there with the same name.
Emits signal_addFogOfWarFilter via the shared signaler
|
virtual |
Removes fog of war filter with given name.
Emits signal_removeFogOfWarFilter with given name, even if filter does not exist in list
|
virtual |
Returns true if this item passes the fog of war filters and should be visible.
|
virtual |
|
virtual |
Returns true if the scenario event can be shown given the current fog of war and scenario event settings.
Blocks the sending of any signals.
|
virtual |
Once added, the spot report data processor class will take ownership of the memory.
If an existing handler is there for the supplied string, it will be replaced
|
virtual |
Given the spot report unique id, remove it.
|
virtual |
|
virtual |
Set spot reports to be selectable. Default is false.
|
virtual |
Given the time (in seconds) return the certainty level of the spot report.
Return of -1 means that no level was found
|
virtual |
Resets forces requested for spot reports to allow for requesting again when spot report reporting changes.
|
virtual |
Once added, the external data visuals manager class will take ownership of the memory.
If an existing handler is there for the supplied string, it will be replaced
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
If you call this directly it will not change flags internally, so, if new modes are added and this is true, that mode will not show track histories.
| boost::signal<void (const DtVrfSpotReportsSettingsRecord&)> makVrf::DtVrfSpotReportManager::signal_spotReportOptionsChanged |
Sent after anything about the spot report options have changed.
| boost::signal<void (bool)> makVrf::DtVrfSpotReportManager::signal_spotReportsSelectableChanged |
Sent after selectability of spot reports have changed. This is currently only able to be set via the API.
| boost::signal<void (bool)> makVrf::DtVrfSpotReportManager::signal_showTrackHistoryForSelectedItemsChanged |
Sent when whether or not track history for selected items have changed.
| boost::signal<void (int)> makVrf::DtVrfSpotReportManager::signal_numberOfTrackReportsChanged |
Sent when when the number of track reports to store have changed.
| boost::signal<void (bool)> makVrf::DtVrfSpotReportManager::signal_keepReportsForTimePeriodChanged |
Sent when when the way to time out reports have changed.
| boost::signal<void (int)> makVrf::DtVrfSpotReportManager::signal_keepReportsForTimeChanged |
Sent when when the time to keep reports has changed. Only sent if keeping reports for time period.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |