VR-Forces 4.0.4 Class Documentation
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
makVrf::DtIndirectFireManager Class Reference

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...

Inheritance diagram for makVrf::DtIndirectFireManager:
Inheritance graph
[legend]

List of all members.

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 IndirectFireMapindirectArtillery () 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::DtRecordSettingsBackupInterfacesettingsBackup ()
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 DtIndirectFireManagerinstance (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::DtDemyDe
makVrv::DtSignalConnectionManager myConnectionManager
std::map< makVrv::DtElementID,
bool
myWaiting
IndirectFireMap myIndirectFire
makVrv::DtRecordSettingsBackupInterfacemySettingsBackup
DtIndirectFireSettingsRecord myIndirectFireSettings

Detailed Description

The indirect artillery manager will manage the indirect artillery items created int the scenario and allow for creation, deletion and modification of those items.


Member Typedef Documentation


Constructor & Destructor Documentation

CTOR. Registers all known dialogs with manager.

DTOR.


Member Function Documentation

Returns instance of the manager.

Register a new manager instance.

Get/Set record for default settings for indirect artillery objects.

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.

Returns true if there is indirect artillery data for the specified item.

Returns indirect artillery data for the specified item.

virtual void makVrf::DtIndirectFireManager::loadDefaults ( bool  fromFactory = false) [virtual]

Loads default or factory record.

Saves record as default record.

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.

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

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

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

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

Called when an artillery state view is updated, if name has changed, then signal an update.


Member Data Documentation

Sent after anything about the indirect artillery options have changed.


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)