![]() |
VR-Forces 4.0.4 Class Documentation
|
The indirect artillery manager will manage the indirect artillery items created int the scenario and allow for creation, deletion and modification of those items. More...

Classes | |
| struct | IndirectFireData |
Public Types | |
| typedef std::map < makVrv::DtElementID, IndirectFireData > | IndirectFireMap |
Public Member Functions | |
| DtIndirectFireManager (makVrv::DtDe &) | |
| CTOR. Registers all known dialogs with manager. | |
| virtual | ~DtIndirectFireManager () |
| DTOR. | |
| void | setAutoSave (bool b) |
| bool | autoSave () const |
| virtual void | getRecord (DtIndirectFireSettingsRecord &rec) const |
| Get/Set record for default settings for indirect artillery objects. | |
| virtual void | getDefaultData (DtIfIndirectArtilleryData &rec) const |
| virtual void | setFromRecord (const DtIndirectFireSettingsRecord &rec) |
| virtual void | emptyList () |
| Empties the list of available indirect artillery munitions. | |
| virtual void | load (const std::string &) |
| Loads and adds the items in the specified artillery file into this manager as available artillery munitions. | |
| const IndirectFireMap & | indirectArtillery () const |
| virtual bool | hasIndirectFireData (makVrv::DtElementID) const |
| Returns true if there is indirect artillery data for the specified item. | |
| virtual DtIfIndirectArtilleryData | indirectArtilleryData (makVrv::DtElementID id) const |
| Returns indirect artillery data for the specified item. | |
| const DtIndirectArtilleryTypesManager & | typesManager () 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. | |
Static Public Member Functions | |
| static DtIndirectFireManager & | instance (makVrv::DtDe &de) |
| Returns instance of the manager. | |
| static void | registerInstance (makVrv::DtDe &, DtIndirectFireManager *) |
| Register a new manager instance. | |
Public Attributes | |
| boost::signal< void(const DtIndirectFireSettingsRecord &)> | signal_indirectArtillerySettingsChanged |
| Sent after anything about the indirect artillery options have changed. | |
| boost::signal< void(makVrv::DtElementID, const std::string &name, const DtIfIndirectArtilleryData &)> | signal_updated |
| boost::signal< void(makVrv::DtElementID)> | signal_removed |
Protected Member Functions | |
| virtual void | initArtilleryAreas () |
| Sets up the list widget with all current artillery areas. | |
| virtual void | slot_simObjectEntryAboutToBeRemoved (makVrv::DtSimObjectEntry &e) |
| Called when an object is about to be removed, will see if this is an existing indirect artillery area. | |
| virtual void | slot_simStateAdded (makVrv::DtSimObjectEntry &e) |
| Called when a new state is added, if a new indirect artillery area, add it to the list. | |
| virtual void | addIfArtillery (const makVrv::DtStateView< DtVrlinkSimulatedEnvironmentProcess > *) |
| Adds this item in if it is an artillery item (by matching object type) | |
| virtual void | waiting () |
| Called when waiting for data to be filled in for an environmental. | |
| virtual void | indirectArtilleryDataReceived (DtSimMessage *) |
| Called when received indirect artillery data. | |
| virtual void | slot_onArtilleryUpdated (const makVrv::DtStateView< DtVrlinkSimulatedEnvironmentProcess > *) |
| Called when an artillery state view is updated, if name has changed, then signal an update. | |
Protected Attributes | |
| DtIndirectArtilleryTypesManager | myManager |
| makVrv::DtDe & | myDe |
| makVrv::DtSignalConnectionManager | myConnectionManager |
| std::map< makVrv::DtElementID, bool > | myWaiting |
| IndirectFireMap | myIndirectFire |
| makVrv::DtRecordSettingsBackupInterface * | mySettingsBackup |
| DtIndirectFireSettingsRecord | myIndirectFireSettings |
The indirect artillery manager will manage the indirect artillery items created int the scenario and allow for creation, deletion and modification of those items.
| typedef std::map<makVrv::DtElementID, IndirectFireData> makVrf::DtIndirectFireManager::IndirectFireMap |
CTOR. Registers all known dialogs with manager.
| virtual makVrf::DtIndirectFireManager::~DtIndirectFireManager | ( | ) | [virtual] |
DTOR.
| static DtIndirectFireManager& makVrf::DtIndirectFireManager::instance | ( | makVrv::DtDe & | de | ) | [static] |
Returns instance of the manager.
| static void makVrf::DtIndirectFireManager::registerInstance | ( | makVrv::DtDe & | , |
| DtIndirectFireManager * | |||
| ) | [static] |
Register a new manager instance.
| bool makVrf::DtIndirectFireManager::autoSave | ( | ) | const |
| virtual void makVrf::DtIndirectFireManager::getRecord | ( | DtIndirectFireSettingsRecord & | rec | ) | const [virtual] |
Get/Set record for default settings for indirect artillery objects.
| virtual void makVrf::DtIndirectFireManager::getDefaultData | ( | DtIfIndirectArtilleryData & | rec | ) | const [virtual] |
| virtual void makVrf::DtIndirectFireManager::setFromRecord | ( | const DtIndirectFireSettingsRecord & | rec | ) | [virtual] |
| virtual void makVrf::DtIndirectFireManager::emptyList | ( | ) | [virtual] |
Empties the list of available indirect artillery munitions.
| virtual void makVrf::DtIndirectFireManager::load | ( | const std::string & | ) | [virtual] |
Loads and adds the items in the specified artillery file into this manager as available artillery munitions.
| const IndirectFireMap& makVrf::DtIndirectFireManager::indirectArtillery | ( | ) | const [inline] |
| virtual bool makVrf::DtIndirectFireManager::hasIndirectFireData | ( | makVrv::DtElementID | ) | const [virtual] |
Returns true if there is indirect artillery data for the specified item.
| virtual DtIfIndirectArtilleryData makVrf::DtIndirectFireManager::indirectArtilleryData | ( | makVrv::DtElementID | id | ) | const [virtual] |
Returns indirect artillery data for the specified item.
| virtual void makVrf::DtIndirectFireManager::loadDefaults | ( | bool | fromFactory = false | ) | [virtual] |
Loads default or factory record.
| virtual void makVrf::DtIndirectFireManager::saveAsDefaults | ( | ) | [virtual] |
Saves record as default record.
| const makVrv::DtRecordSettingsBackupInterface* makVrf::DtIndirectFireManager::settingsBackup | ( | ) | const [inline] |
| void makVrf::DtIndirectFireManager::exportSettings | ( | const std::string & | fileName | ) |
Exports the current cache settings to a file.
| void makVrf::DtIndirectFireManager::importSettings | ( | const std::string & | fileName | ) |
Import the current cache settings from a file.
| virtual void makVrf::DtIndirectFireManager::initArtilleryAreas | ( | ) | [protected, virtual] |
Sets up the list widget with all current artillery areas.
| virtual void makVrf::DtIndirectFireManager::slot_simObjectEntryAboutToBeRemoved | ( | makVrv::DtSimObjectEntry & | e | ) | [protected, virtual] |
Called when an object is about to be removed, will see if this is an existing indirect artillery area.
Will emit signal if area is removed
| virtual void makVrf::DtIndirectFireManager::slot_simStateAdded | ( | makVrv::DtSimObjectEntry & | e | ) | [protected, virtual] |
Called when a new state is added, if a new indirect artillery area, add it to the list.
Will emit added signal if new area is added
| virtual void makVrf::DtIndirectFireManager::addIfArtillery | ( | const makVrv::DtStateView< DtVrlinkSimulatedEnvironmentProcess > * | ) | [protected, virtual] |
Adds this item in if it is an artillery item (by matching object type)
| virtual void makVrf::DtIndirectFireManager::waiting | ( | ) | [protected, virtual] |
Called when waiting for data to be filled in for an environmental.
If found remove from list. Will emit added signal if new area is added
| virtual void makVrf::DtIndirectFireManager::indirectArtilleryDataReceived | ( | DtSimMessage * | ) | [protected, virtual] |
Called when received indirect artillery data.
Send update message if know about area, or, if do not know about area, see if know about it and then add new area
| virtual void makVrf::DtIndirectFireManager::slot_onArtilleryUpdated | ( | const makVrv::DtStateView< DtVrlinkSimulatedEnvironmentProcess > * | ) | [protected, virtual] |
Called when an artillery state view is updated, if name has changed, then signal an update.
| boost::signal<void (const DtIndirectFireSettingsRecord&)> makVrf::DtIndirectFireManager::signal_indirectArtillerySettingsChanged |
Sent after anything about the indirect artillery options have changed.
| boost::signal<void (makVrv::DtElementID, const std::string& name, const DtIfIndirectArtilleryData&)> makVrf::DtIndirectFireManager::signal_updated |
| boost::signal<void (makVrv::DtElementID)> makVrf::DtIndirectFireManager::signal_removed |
makVrv::DtDe& makVrf::DtIndirectFireManager::myDe [protected] |
std::map<makVrv::DtElementID, bool> makVrf::DtIndirectFireManager::myWaiting [protected] |
makVrv::DtRecordSettingsBackupInterface* makVrf::DtIndirectFireManager::mySettingsBackup [protected] |