VR-Forces 4.8 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. More...
 
virtual ~DtVrfObserverViewsWidgetLogic ()
 DTOR. More...
 
- Public Member Functions inherited from makVrv::DtObserverViewsWidgetLogic
virtual ~DtObserverViewsWidgetLogic ()
 virtual DTOR More...
 
virtual void slot_captureAndAddObserverView ()
 Captures the current observer view and adds a new record to the interface. More...
 
virtual void slot_setObserverViewByNameAndMode (const DtUnicode &, DtObserverViewsManager::ViewProjection projection, bool animate=false)
 Sets the currently selected observer to the new view. More...
 
virtual void slot_clearObserverViews ()
 Clears out internal observer views and tells interface to do the same. More...
 
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. More...
 
virtual void slot_dissociateObserverViewsToCurrentTerrain ()
 Tells the observer views manager to delete the file of associated observer views. More...
 
virtual void slot_saveObserverViewsFileAs (const DtUnicode &filename)
 Saves out all observer view records to the specified filename. More...
 
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). More...
 
virtual void slot_deleteObserverView ()
 Deletes the specified observer view from interface and observer record list. More...
 
virtual void slot_saveObserverView ()
 Saves the specified observer view from interface and observer record list. More...
 
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. More...
 
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. More...
 
virtual
DtObserverViewsManager::ViewProjection 
observerViewProjectionMode (const makArchives::DtObserverStateRecord &record)
 get default observer view projection mode ("2D" or "3D"). More...
 
void refreshObserverViewList ()
 updates the observer view list in the gui More...
 
void refreshWidget ()
 called when the widget is initialized/enabled More...
 
virtual void setRightClickedObserverViewData (const std::string &observeViewName, DtObserverViewsManager::ViewProjection projection)
 keep track of the latest observer view that received the onRightClick event More...
 
void slot_showExitMessageDialog ()
 Pops up a mesage if the observer view list has been modified. More...
 
void slot_savedLoadedFile ()
 saves if exists the observer view file associated to the terrain opened in the scene. More...
 

Protected Member Functions

virtual void slot_setDefaultObserverViewRecord (const makArchives::DtObserverStateRecord &observerView)
 listens when an observer view is set as default More...
 
virtual void slot_unSetDefaultObserverViewRecord (const makArchives::DtObserverStateRecord &observerView)
 listens when unsetting a default observer More...
 
virtual void slot_showExitMessageDialog ()
 
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. More...
 
virtual void onScenarioInformationAboutToBeSaved ()
 Called before the scenario information is saved in order to commit name edits. More...
 
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. More...
 
virtual bool canDissociate () const
 helper function used to determine if the Dissociate icon should be enabled. More...
 
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. More...
 
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. More...
 
virtual bool canClear () const
 helper function used to determine if the Clear icon should be enabled. More...
 
virtual void slot_capturedObserverViewAdded (const makArchives::DtObserverStateRecord &observerView)
 listens when the observer view list has been modified More...
 
virtual void slot_observerViewRemoved (const makArchives::DtObserverStateRecord &observerView)
 listens when a observer view is removed from the list More...
 
virtual void slot_observerViewNameModified (const std::string &newName, const makArchives::DtObserverStateRecord &observerView)
 listens when the name of an observer view is modified More...
 
virtual void slot_observerViewsAssociatedToTerrain ()
 listens when the observer views are associated to the terrain in scene More...
 
virtual void slot_observerViewDissociatedToTerrain (const makArchives::DtObserverStateRecordsList &observerView)
 listens when the observer views are dissociated from the terrain in scene More...
 
virtual void slot_observerViewsImportedAndMerge (const makArchives::DtObserverStateRecordsList &observerViewList)
 listens when an osrx file records are loaded and added the current list More...
 
virtual void slot_observerViewsImportedAndReplaced (const makArchives::DtObserverStateRecordsList &observerViewList)
 listens when an osrx file records are loaded and replace the current list More...
 
virtual void slot_associatedViewsToTerrainLoaded (const makArchives::DtObserverStateRecordsList &observerViewList)
 listens when the associated observer views to a terrain are being added to the list More...
 
virtual void slot_associatedViewsToTerrainUnloaded (const makArchives::DtObserverStateRecordsList &observerViewList)
 listens when the associated observer views to a terrain are being removed from the list More...
 
virtual void slot_observerViewsAboutToBeCleared ()
 called when the observer view list is about to be cleared More...
 
virtual void slot_observerViewsCleared ()
 called AFTER the observer view list is cleared More...
 
virtual void slot_sceneTerrainLoaded (const DtUnicode &terreainFileName)
 listens when a terrain loaded in the scene More...
 
virtual void slot_terrainCleared ()
 listens when the loaded terrain in scene is cleared More...
 
virtual void slot_toggleDefaultObserverView (bool set)
 listens when a default observer view is set or unset More...
 
virtual void slot_postInitialize ()
 listens to postInitialize signal More...
 
virtual void slot_saveSingleObserverViewsFile (const DtUnicode &observerViewFileName)
 listens to save single observer view record signal More...
 
virtual void processEnableState ()
 Enables/Disables buttons in interface based on whether or not there is an observer. More...
 
 DtObserverViewsWidgetLogic (DtDe &de, DtObserverViewsWidgetInterface *iFace)
 Constructor (protected - use ::create() ) More...
 

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

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
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 Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)