VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtObserverViewsWidgetLogic Class Reference

The logic for controlling and updating the makVrv::DtObserverViewsWidget. More...

Inheritance diagram for makVrv::DtObserverViewsWidgetLogic:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~DtObserverViewsWidgetLogic ()
 virtual DTOR
virtual void setCurrentObserver (const std::string &observerName)
 Set the observer to use in all other operations.
virtual void setCurrentObserver (DtObserver *)
virtual void captureAndAddObserverView ()
 Captures the current observer view and adds a new record to the interface.
virtual void setObserverView (const std::string &)
 Sets the currently selected observer to the new view.
virtual void clearObserverViews ()
 Clears out internal observer views and tells interface to do the same.
virtual void saveObserverStateRecords (const std::string &filename)
 Saves out all records to the specified filename.
virtual void saveObserverStateRecord (const std::string &filename, const std::string &record)
 Saves out the specified record to the specified filename.
virtual void deleteView (const std::string &)
 Deletes the specified observer view from interface and observer record list.
virtual void loadObserverStateRecords (const std::string &)
 Loads in the specified file and merges in records found into the internal records list and into the user interface.
virtual void loadAndSetObserverState (const std::string &)
 Loads the specified file into internal records and interface as loadObserverStateRecords, but also sets up all observers (in order they are specified) with records found in the file.
virtual bool renameObserverRecord (const std::string &newName, const std::string &oldName)
 Renames the observer view record internally and in the interface if the name does not already exist.

Static Public Member Functions

static DtObserverViewsWidgetLogiccreate (DtDe &de, DtObserverViewsWidgetInterface *iFace)
 Create and initialize the logic.

Protected Member Functions

virtual void slot_activate (DtDe *subject)
virtual void slot_deactivate (DtDe *subject)
virtual void onObserverAboutToBeDestroyed (DtInputDriver *inputDriver, DtObserver *observer)
virtual void onCurrentObserverChanged (DtInputDriver *inputDriver, DtObserver *observer)
virtual void onInputDriverCreated (DtInputDriver *inputDriver)
virtual void onInputDriverAboutToBeDestroyed (DtInputDriver *inputDriver)
virtual void processEnableState ()
 /brief Enables/Disables buttons in interface based on whether or not there is an observer
virtual std::string generateName (const makArchives::DtObserverStateRecord &) const
 /brief Generates a unique name based on the supplied observer record and what is already in the list
virtual void loadObserverStateRecords (const std::string &, makArchives::DtObserverStateRecordsList &) const
 /brief Returns a list of all records found in the specified file
virtual void loadObserverStateRecords (const std::string &, bool setObservers)
 /brief Loads observer state records, setting them into the interface, and optionally setting the observers as well
 DtObserverViewsWidgetLogic (DtDe &de, DtObserverViewsWidgetInterface *iFace)
 Constructor (protected - use ::create() )

Protected Attributes

DtDemyDe
DtObserverViewsWidgetInterfacemyInterface
DtObservermyCurrentObserver
DtInputDrivermyInputDriver
makArchives::DtObserverStateRecordsList myObserverRecords

Detailed Description

The logic for controlling and updating the makVrv::DtObserverViewsWidget.


Constructor & Destructor Documentation

virtual DTOR

Constructor (protected - use ::create() )


Member Function Documentation

Create and initialize the logic.

virtual void makVrv::DtObserverViewsWidgetLogic::setCurrentObserver ( const std::string &  observerName) [virtual]

Set the observer to use in all other operations.

Captures the current observer view and adds a new record to the interface.

virtual void makVrv::DtObserverViewsWidgetLogic::setObserverView ( const std::string &  ) [virtual]

Sets the currently selected observer to the new view.

Clears out internal observer views and tells interface to do the same.

virtual void makVrv::DtObserverViewsWidgetLogic::saveObserverStateRecords ( const std::string &  filename) [virtual]

Saves out all records to the specified filename.

virtual void makVrv::DtObserverViewsWidgetLogic::saveObserverStateRecord ( const std::string &  filename,
const std::string &  record 
) [virtual]

Saves out the specified record to the specified filename.

virtual void makVrv::DtObserverViewsWidgetLogic::deleteView ( const std::string &  ) [virtual]

Deletes the specified observer view from interface and observer record list.

virtual void makVrv::DtObserverViewsWidgetLogic::loadObserverStateRecords ( const std::string &  ) [virtual]

Loads in the specified file and merges in records found into the internal records list and into the user interface.

If there are duplicate names, will make them unique by adding an index to them

virtual void makVrv::DtObserverViewsWidgetLogic::loadAndSetObserverState ( const std::string &  ) [virtual]

Loads the specified file into internal records and interface as loadObserverStateRecords, but also sets up all observers (in order they are specified) with records found in the file.

virtual bool makVrv::DtObserverViewsWidgetLogic::renameObserverRecord ( const std::string &  newName,
const std::string &  oldName 
) [virtual]

Renames the observer view record internally and in the interface if the name does not already exist.

If it does, method returns false

virtual void makVrv::DtObserverViewsWidgetLogic::slot_activate ( DtDe subject) [protected, virtual]
virtual void makVrv::DtObserverViewsWidgetLogic::slot_deactivate ( DtDe subject) [protected, virtual]
virtual void makVrv::DtObserverViewsWidgetLogic::onObserverAboutToBeDestroyed ( DtInputDriver inputDriver,
DtObserver observer 
) [protected, virtual]
virtual void makVrv::DtObserverViewsWidgetLogic::onCurrentObserverChanged ( DtInputDriver inputDriver,
DtObserver observer 
) [protected, virtual]
virtual void makVrv::DtObserverViewsWidgetLogic::onInputDriverCreated ( DtInputDriver inputDriver) [protected, virtual]
virtual void makVrv::DtObserverViewsWidgetLogic::onInputDriverAboutToBeDestroyed ( DtInputDriver inputDriver) [protected, virtual]
virtual void makVrv::DtObserverViewsWidgetLogic::processEnableState ( ) [protected, virtual]

/brief Enables/Disables buttons in interface based on whether or not there is an observer

virtual std::string makVrv::DtObserverViewsWidgetLogic::generateName ( const makArchives::DtObserverStateRecord ) const [protected, virtual]

/brief Generates a unique name based on the supplied observer record and what is already in the list

virtual void makVrv::DtObserverViewsWidgetLogic::loadObserverStateRecords ( const std::string &  ,
makArchives::DtObserverStateRecordsList  
) const [protected, virtual]

/brief Returns a list of all records found in the specified file

virtual void makVrv::DtObserverViewsWidgetLogic::loadObserverStateRecords ( const std::string &  ,
bool  setObservers 
) [protected, virtual]

/brief Loads observer state records, setting them into the interface, and optionally setting the observers as well


Member Data Documentation


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)