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

Logic that will retrieve the observer view records from the scenario manager and also use in internal member. More...

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

Public Member Functions

 DtVrfObserverViewsWidgetLogic (makVrv::DtDe &de, makVrv::DtObserverViewsWidgetInterface *iFace)
 CTOR.
virtual ~DtVrfObserverViewsWidgetLogic ()
 DTOR.
- Public Member Functions inherited from makVrv::DtObserverViewsWidgetLogic
virtual ~DtObserverViewsWidgetLogic ()
 virtual DTOR
virtual void slot_captureAndAddObserverView ()
 Captures the current observer view and adds a new record to the interface.
virtual void slot_setObserverViewByNameAndMode (const DtUnicode &, DtObserverViewsManager::ViewProjection projection, bool animate=false)
 Sets the currently selected observer to the new view.
virtual void slot_clearObserverViews ()
 Clears out internal observer views and tells interface to do the same.
virtual void slot_associateObserverViewsToCurrentTerrain ()
 Tells the observer views manager to save out all records to a file with the loaded terrain files base name and .osrx extension.
virtual void slot_dissociateObserverViewsToCurrentTerrain ()
 Tells the observer views manager to delete the file of associated observer views.
virtual void slot_saveObserverViewsFileAs (const DtUnicode &filename)
 Saves out all observer view records to the specified filename.
virtual void slot_saveObserverViewsFile ()
 Saves out all observer view records to the observer views file that was last loaded (this filename is cleared by a terrain clear operation).
virtual void slot_deleteObserverView ()
 Deletes the specified observer view from interface and observer record list.
virtual void slot_saveObserverView ()
 Saves the specified observer view from interface and observer record list.
virtual void slot_loadObserverViewsFile (const DtUnicode &)
 Loads in the specified file and merges in records found into the internal records list and into the user interface.
virtual bool slot_renameObserverRecord (const DtUnicode &newName, const DtUnicode &oldName, DtObserverViewsManager::ViewProjection projection)
 Renames the observer view record internally and in the interface if the name does not already exist.
virtual
DtObserverViewsManager::ViewProjection 
observerViewProjectionMode (const makArchives::DtObserverStateRecord &record)
 get default observer view projection mode ("2D" or "3D").
void refreshObserverViewList ()
 updates the observer view list in the gui
void refreshWidget ()
 called when the widget is initialized/enabled
virtual void setRightClickedObserverViewData (const std::string &observeViewName, DtObserverViewsManager::ViewProjection projection)
 keep track of the latest observer view that received the onRightClick event
void slot_savedLoadedFile ()
 saves if exists the observer view file associated to the terrain opened in the scene.

Protected Member Functions

virtual void slot_setDefaultObserverViewRecord (const makArchives::DtObserverStateRecord &observerView)
 listens when an observer view is set as default
virtual void slot_unSetDefaultObserverViewRecord (const makArchives::DtObserverStateRecord &observerView)
 listens when unsetting a default observer
virtual void slot_showExitMessageDialog ()
 Pops up a mesage if the observer view list has been modified.
virtual void initialize ()
virtual void scenarioClosed ()
virtual void scenarioLoaded ()
virtual void onSetDefaultObserverView (std::string oldView, std::string newView)
 Sets the new default observer view view.
virtual void onScenarioInformationAboutToBeSaved ()
 Called before the scenario information is saved in order to commit name edits.
virtual void hideObserverView (const std::string &, bool)
virtual void terrainViewsHidden (const std::set< std::string > &)
virtual std::string observerViewProjectionModeString (const makArchives::DtObserverStateRecord &record) const
- Protected Member Functions inherited from makVrv::DtObserverViewsWidgetLogic
virtual bool canAssociate () const
 helper function used to determine if the Associate icon should be enabled and if, for a close/exit warning dialog, the Associate button should be on the warning dialog.
virtual bool canDissociate () const
 helper function used to determine if the Dissociate icon should be enabled.
virtual bool canSave () const
 helper function used to determine if, for a close/exit warning dialog, the Save button should be on the warning dialog.
virtual bool canSaveAs () const
 helper function used to determine if the Save icon should be enabled and if, for a close/exit warning dialog, the Save As button should be on the warning dialog.
virtual bool canClear () const
 helper function used to determine if the Clear icon should be enabled.
virtual void slot_capturedObserverViewAdded (const makArchives::DtObserverStateRecord &observerView)
 listens when the observer view list has been modified
virtual void slot_observerViewRemoved (const makArchives::DtObserverStateRecord &observerView)
 listens when a observer view is removed from the list
virtual void slot_observerViewNameModified (const std::string &newName, const makArchives::DtObserverStateRecord &observerView)
 listens when the name of an observer view is modified
virtual void slot_observerViewsAssociatedToTerrain ()
 listens when the observer views are associated to the terrain in scene
virtual void slot_observerViewDissociatedToTerrain (const makArchives::DtObserverStateRecordsList &observerView)
 listens when the observer views are dissociated from the terrain in scene
virtual void slot_observerViewsImportedAndMerge (const makArchives::DtObserverStateRecordsList &observerViewList)
 listens when an osrx file records are loaded and added the current list
virtual void slot_observerViewsImportedAndReplaced (const makArchives::DtObserverStateRecordsList &observerViewList)
 listens when an osrx file records are loaded and replace the current list
virtual void slot_associatedViewsToTerrainLoaded (const makArchives::DtObserverStateRecordsList &observerViewList)
 listens when the associated observer views to a terrain are being added to the list
virtual void slot_associatedViewsToTerrainUnloaded (const makArchives::DtObserverStateRecordsList &observerViewList)
 listens when the associated observer views to a terrain are being removed from the list
virtual void slot_observerViewsAboutToBeCleared ()
 called when the observer view list is about to be cleared
virtual void slot_observerViewsCleared ()
 called AFTER the observer view list is cleared
virtual void slot_sceneTerrainLoaded (const DtUnicode &terreainFileName)
 listens when a terrain loaded in the scene
virtual void slot_terrainCleared ()
 listens when the loaded terrain in scene is cleared
virtual void slot_toggleDefaultObserverView (bool set)
 listens when a default observer view is set or unset
virtual void slot_postInitialize ()
 listens to postInitialize signal
virtual void slot_saveSingleObserverViewsFile (const DtUnicode &observerViewFileName)
 listens to save single observer view record signal
virtual void processEnableState ()
 /brief Enables/Disables buttons in interface based on whether or not there is an observer
 DtObserverViewsWidgetLogic (DtDe &de, DtObserverViewsWidgetInterface *iFace)
 Constructor (protected - use ::create() )

Protected Attributes

makVrv::DtSignalConnectionManager myConnections
- Protected Attributes inherited from makVrv::DtObserverViewsWidgetLogic
DtDemyDe
DtObserverViewsWidgetInterfacemyGui
DtObserverViewsManagermyObserverViewsManager
bool myHasSetupObserverRecords
std::string myObserversViewFile
std::string myTerrainFilename
DtSignalConnectionManager myConnections

Additional Inherited Members

- Static Public Member Functions inherited from makVrv::DtObserverViewsWidgetLogic
static DtObserverViewsWidgetLogiccreate (DtDe &de, DtObserverViewsWidgetInterface *iFace)
 Create and initialize the logic.

Detailed Description

Logic that will retrieve the observer view records from the scenario manager and also use in internal member.

Constructor & Destructor Documentation

makVrf::DtVrfObserverViewsWidgetLogic::DtVrfObserverViewsWidgetLogic ( makVrv::DtDe de,
makVrv::DtObserverViewsWidgetInterface iFace 
)

CTOR.

virtual makVrf::DtVrfObserverViewsWidgetLogic::~DtVrfObserverViewsWidgetLogic ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrf::DtVrfObserverViewsWidgetLogic::slot_setDefaultObserverViewRecord ( const makArchives::DtObserverStateRecord )
protectedvirtual

listens when an observer view is set as default

Reimplemented from makVrv::DtObserverViewsWidgetLogic.

virtual void makVrf::DtVrfObserverViewsWidgetLogic::slot_unSetDefaultObserverViewRecord ( const makArchives::DtObserverStateRecord )
protectedvirtual

listens when unsetting a default observer

Reimplemented from makVrv::DtObserverViewsWidgetLogic.

virtual void makVrf::DtVrfObserverViewsWidgetLogic::slot_showExitMessageDialog ( )
protectedvirtual

Pops up a mesage if the observer view list has been modified.

Reimplemented from makVrv::DtObserverViewsWidgetLogic.

virtual void makVrf::DtVrfObserverViewsWidgetLogic::initialize ( )
protectedvirtual
virtual void makVrf::DtVrfObserverViewsWidgetLogic::scenarioClosed ( )
protectedvirtual
virtual void makVrf::DtVrfObserverViewsWidgetLogic::scenarioLoaded ( )
protectedvirtual
virtual void makVrf::DtVrfObserverViewsWidgetLogic::onSetDefaultObserverView ( std::string  oldView,
std::string  newView 
)
protectedvirtual

Sets the new default observer view view.

virtual void makVrf::DtVrfObserverViewsWidgetLogic::onScenarioInformationAboutToBeSaved ( )
protectedvirtual

Called before the scenario information is saved in order to commit name edits.

virtual void makVrf::DtVrfObserverViewsWidgetLogic::hideObserverView ( const std::string &  ,
bool   
)
protectedvirtual
virtual void makVrf::DtVrfObserverViewsWidgetLogic::terrainViewsHidden ( const std::set< std::string > &  )
protectedvirtual
virtual std::string makVrf::DtVrfObserverViewsWidgetLogic::observerViewProjectionModeString ( const makArchives::DtObserverStateRecord record) const
protectedvirtual

Member Data Documentation

makVrv::DtSignalConnectionManager makVrf::DtVrfObserverViewsWidgetLogic::myConnections
protected

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

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)