VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
makVrf::DtVrfSimulationObjectGroupHandler Class Reference

The class will handle the saving of new simulation object groups. More...

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

Public Member Functions

 DtVrfSimulationObjectGroupHandler (makVrv::DtDe &)
 CTOR.
virtual ~DtVrfSimulationObjectGroupHandler ()
 DTOR.
virtual void saveSimulationObjectGroup ()
 Shows a dialog to the user for gathering information about the saving of the simulation object group, and, if the user accepts the dialog, calls the saveSimulationObjectGroup method that supplies the information provided to create the simulation object group.
virtual void saveSimulationObjectGroup (const DtSimulationObjectGroupSaveInformation &, bool quitOnSave=false, bool saveAsZip=false)
 Saves the simulation object group by sending a message to the back-end.
virtual void setDataDirectory (const DtFilename &)
 Where to save the sog files.
virtual const DtFilename & dataDirectory () const
virtual
DtSimulationObjectGroupSaveInformation 
simulationObjectGroupSaveInformation () const
virtual bool loadSimulationObjectGroup (const std::string &terrain)
 Loads the given simulation object group as found in the specified .sog file and saves off the information found in mySimulationObjectGroupSaveInformation.
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor.
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor.

Static Public Member Functions

static
DtVrfSimulationObjectGroupHandler
instance (makVrv::DtDe &de)
 Returns instance of the handler.
static void registerInstance (makVrv::DtDe &, DtVrfSimulationObjectGroupHandler *)

Public Attributes

boost::signal< void(const
std::string &)> 
signal_savedSimulationObjectGroup
 Signal sent when a simulation object group has been saved.
boost::signal< void()> signal_simulationObjectGroupLoaded

Protected Member Functions

virtual void completeObjectGroupLoad ()
 Called when new scenario is completed loading, create simulation object group at 0, 0, 0.
virtual void scenarioJustLoaded ()
DtSimulationObjectGroupSaveDialogcreateSimulationObjectGroupSaveDialog () const
 Creates the dialog that is used to request selection group information from the user.
virtual void processSimulationObjectGroupSaveResults (const DtSimMessage *)
 Process the results of the simulation object group creation if we are the ones that started it.
virtual void addObjectStates (DtSimulationObjectGroupModelSetEntry *, const boost::unordered_set< DtUUID > &) const
 Saves out the object states tha are part of the simulation group for future use when creating this simulation group to be able to display information when creating.
virtual void completeExit ()

Protected Attributes

makVrv::DtDemyDe
DtSimulationObjectGroupSaveInformationmySimulationObjectGroupSaveInformation
DtFilename myDataDirectory
bool myQuitOnSave

Detailed Description

The class will handle the saving of new simulation object groups.

Call the saveSimulationObjectGroup method to show a dialog which will allow the user to create the selection group from all the information in the current scenario

Constructor & Destructor Documentation

makVrf::DtVrfSimulationObjectGroupHandler::DtVrfSimulationObjectGroupHandler ( makVrv::DtDe )

CTOR.

virtual makVrf::DtVrfSimulationObjectGroupHandler::~DtVrfSimulationObjectGroupHandler ( )
virtual

DTOR.

Member Function Documentation

static DtVrfSimulationObjectGroupHandler& makVrf::DtVrfSimulationObjectGroupHandler::instance ( makVrv::DtDe de)
static

Returns instance of the handler.

static void makVrf::DtVrfSimulationObjectGroupHandler::registerInstance ( makVrv::DtDe ,
DtVrfSimulationObjectGroupHandler  
)
static
virtual void makVrf::DtVrfSimulationObjectGroupHandler::saveSimulationObjectGroup ( )
virtual

Shows a dialog to the user for gathering information about the saving of the simulation object group, and, if the user accepts the dialog, calls the saveSimulationObjectGroup method that supplies the information provided to create the simulation object group.

virtual void makVrf::DtVrfSimulationObjectGroupHandler::saveSimulationObjectGroup ( const DtSimulationObjectGroupSaveInformation ,
bool  quitOnSave = false,
bool  saveAsZip = false 
)
virtual

Saves the simulation object group by sending a message to the back-end.

virtual void makVrf::DtVrfSimulationObjectGroupHandler::setDataDirectory ( const DtFilename &  )
virtual

Where to save the sog files.

virtual const DtFilename& makVrf::DtVrfSimulationObjectGroupHandler::dataDirectory ( ) const
virtual
virtual DtSimulationObjectGroupSaveInformation makVrf::DtVrfSimulationObjectGroupHandler::simulationObjectGroupSaveInformation ( ) const
virtual
virtual bool makVrf::DtVrfSimulationObjectGroupHandler::loadSimulationObjectGroup ( const std::string &  terrain)
virtual

Loads the given simulation object group as found in the specified .sog file and saves off the information found in mySimulationObjectGroupSaveInformation.

Will return true if the .sog file is found, else will return false. Will also create a new scenario to place this simulation object group on using the simulation object group terrain

virtual void makVrf::DtVrfSimulationObjectGroupHandler::completeObjectGroupLoad ( )
protectedvirtual

Called when new scenario is completed loading, create simulation object group at 0, 0, 0.

virtual void makVrf::DtVrfSimulationObjectGroupHandler::scenarioJustLoaded ( )
protectedvirtual
DtSimulationObjectGroupSaveDialog* makVrf::DtVrfSimulationObjectGroupHandler::createSimulationObjectGroupSaveDialog ( ) const
protected

Creates the dialog that is used to request selection group information from the user.

virtual void makVrf::DtVrfSimulationObjectGroupHandler::processSimulationObjectGroupSaveResults ( const DtSimMessage )
protectedvirtual

Process the results of the simulation object group creation if we are the ones that started it.

virtual void makVrf::DtVrfSimulationObjectGroupHandler::addObjectStates ( DtSimulationObjectGroupModelSetEntry ,
const boost::unordered_set< DtUUID > &   
) const
protectedvirtual

Saves out the object states tha are part of the simulation group for future use when creating this simulation group to be able to display information when creating.

virtual void makVrf::DtVrfSimulationObjectGroupHandler::completeExit ( )
protectedvirtual

Member Data Documentation

boost::signal<void (const std::string&)> makVrf::DtVrfSimulationObjectGroupHandler::signal_savedSimulationObjectGroup

Signal sent when a simulation object group has been saved.

boost::signal<void ()> makVrf::DtVrfSimulationObjectGroupHandler::signal_simulationObjectGroupLoaded
makVrv::DtDe& makVrf::DtVrfSimulationObjectGroupHandler::myDe
protected
DtSimulationObjectGroupSaveInformation* makVrf::DtVrfSimulationObjectGroupHandler::mySimulationObjectGroupSaveInformation
protected
DtFilename makVrf::DtVrfSimulationObjectGroupHandler::myDataDirectory
protected
bool makVrf::DtVrfSimulationObjectGroupHandler::myQuitOnSave
protected

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

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)