![]() |
VR-Forces 4.5 Class Documentation
|

Public Member Functions | |
| virtual | ~DtOculusSettingsManager () |
| DTOR. | |
Setting Getters/Setters | |
Returns view that is being mirrorored. 0 = disabled, 1=undistorted mirror, 2=distorted mirror | |
| int | mirroring () const |
| void | setMirroring (int view) |
| Set mirroring enabled. | |
| bool | isMonoscopic () const |
| Returns true if monoscopic mode is enabled. | |
| void | setMonoscopic (bool enabled) |
| Set monoscopic mode enabled. | |
| void | setPixelsPerDisplayPixel (float pixels) |
| Sets pixels per display pixel. | |
| float | getPixelsPerDisplayPixel () const |
| Gets pixels per display pixel. | |
Setting persistence methods. | |
Use the settings from the given settings record. | |
| void | setFromRecord (const makArchives::DtOculusSettingsRecord &rec) |
| Set the current settings' state from the given record (abstract). | |
| void | getRecord (makArchives::DtOculusSettingsRecord &rec) const |
| Populate the given record with the current settings. | |
Public Member Functions inherited from makVrv::DtBaseSettingsManager< makArchives::DtOculusSettingsRecord > | |
| DtBaseSettingsManager (DtDe &de, const std::string &name, const std::string &displayName, const std::string &ext) | |
| CTOR. | |
| virtual | ~DtBaseSettingsManager () |
| Virtual DTOR. | |
| virtual void | initializeBackup () |
| Creates a backup of the settings' current state. | |
Public Member Functions inherited from makVrv::DtCommonBaseSettingsManager< makArchives::DtOculusSettingsRecord > | |
| DtCommonBaseSettingsManager (DtDe &de, const std::string &name, const std::string &displayName, const std::string &ext) | |
| CTOR The name, displayName, and extension parameters are used for creating the settings object (DtDeSettings) and backup, and for constructing the filename when readin/writing the records to disk. | |
| virtual | ~DtCommonBaseSettingsManager () |
| Virtual DTOR. | |
| virtual void | autoSaveIfNecessary () |
| Saves the current settings as defaults if autosave is enabled. | |
| virtual void | setAutoSave (bool doit) |
| Sets whether autosave is enabled for the settings manager. | |
| virtual bool | autoSave () const |
| Gets whether autosave is enabled for the settings manager. | |
| virtual void | setUseDefaultSettingsRecord (bool useit) |
| Sets whether setting initialization should check for a default record. | |
| virtual bool | useDefaultSettingsRecord () const |
| Gets whether setting initialization should check for a default record. | |
| virtual DtDeSettings * | settings () |
| Accessor for the manager's DtDeSettings object. | |
| virtual const DtDeSettings * | settings () const |
| Accessor for the manager's DtDeSettings object (const). | |
| virtual DtSettingsBackup * | settingsBackup () |
| Accessor for the manager's settings backup. | |
| virtual const DtSettingsBackup * | settingsBackup () const |
| Accessor for the manager's settings backup (const). | |
| virtual void | loadDefaults () |
| Initializes the settings and creates a backup. | |
| virtual void | saveDefaultSettings () |
| Saves the current settings' state as the default (on disk). | |
| virtual void | loadDefaultSettings (bool loadOnlyFactorySettings) |
| Loads the default settings from disk. | |
| virtual void | importSettings (const std::string &filePath) |
| Load the settings' state from the given file. | |
| virtual void | exportSettings (const std::string &filePath) const |
| Save the current settings' state to the given file. | |
| virtual void | getSplitRecord (std::vector< makArchives::DtOculusSettingsRecord > &rec, std::vector< std::string > &fileNames) |
| For directory support, split the main record into different sub-records and give them each a file name. | |
| virtual void | addRecords (makArchives::DtOculusSettingsRecord &rec, makArchives::DtOculusSettingsRecord &combinedRec) |
| For directory support, when reading in a directory, add the records from each file to the combined record. | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. | |
Static Public Member Functions | |
| static DtOculusSettingsManager & | instance (DtDe &de) |
| Get an instance of the settings manager. | |
Public Attributes | |
Boost signals for changed settings | |
| boost::signal< void(int)> | signal_mirroringSet |
| boost::signal< void(bool)> | signal_monoscopicSet |
| boost::signal< void(float)> | signal_pixelsPerDisplayPixelSet |
Protected Member Functions | |
| DtOculusSettingsManager (DtDe &) | |
| Protected CTOR ( use instance(..) ) | |
Protected Attributes | |
| makArchives::DtOculusSettingsRecord | mySettingsRecord |
Friends | |
| template<typename ManagerClass > | |
| ManagerClass & | defaultManagerInstanceFunction (DtDe &, bool) |
| Befriend the manager instance functions for instance retrieval / creation. | |
| template<typename ManagerClass > | |
| void | defaultManagerRegisterInstanceFunction (DtDe &, ManagerClass *) |
| Befriend the manager instance functions for instance retrieval / creation. | |
Additional Inherited Members | |
Protected Types inherited from makVrv::DtBaseSettingsManager< makArchives::DtOculusSettingsRecord > | |
| typedef DtRecordSettingsBackup < DtBaseSettingsManager < makArchives::DtOculusSettingsRecord > , makArchives::DtOculusSettingsRecord > | RecordBackupType |
|
virtual |
DTOR.
|
protected |
Protected CTOR ( use instance(..) )
|
static |
Get an instance of the settings manager.
| int makVrv::DtOculusSettingsManager::mirroring | ( | ) | const |
| void makVrv::DtOculusSettingsManager::setMirroring | ( | int | view | ) |
Set mirroring enabled.
| bool makVrv::DtOculusSettingsManager::isMonoscopic | ( | ) | const |
Returns true if monoscopic mode is enabled.
| void makVrv::DtOculusSettingsManager::setMonoscopic | ( | bool | enabled | ) |
Set monoscopic mode enabled.
| void makVrv::DtOculusSettingsManager::setPixelsPerDisplayPixel | ( | float | pixels | ) |
Sets pixels per display pixel.
| float makVrv::DtOculusSettingsManager::getPixelsPerDisplayPixel | ( | ) | const |
Gets pixels per display pixel.
|
virtual |
Set the current settings' state from the given record (abstract).
Implements makVrv::DtBaseSettingsManager< makArchives::DtOculusSettingsRecord >.
|
virtual |
Populate the given record with the current settings.
Implements makVrv::DtBaseSettingsManager< makArchives::DtOculusSettingsRecord >.
|
friend |
Befriend the manager instance functions for instance retrieval / creation.
Befriend the manager instance functions for instance retrieval and creation.
Befriend the manager instance functions for instance retreival/creation.
Befriend the manager instance functions for instance retrieval/creation.
Manager requirements:
1) Static instance function
2) Protected DtSignalConnectionManager named myConnections.
3) Member functioned called loadDefaults which takes no arguments.
and loads the default settings of the manager or factory from disk.
4) define defaultManagerInstanceFunction as friend.
5) define defaultManagerRegisterInstanceFunction as friend (see below).
5) Protected Constructor which only takes a DtDe reference.
@code
class Manager { public: static Manager& instance(DtDe& de); void loadDefaults(); protected: template <typename managerclass>=""> friend ManagerClass& defaultManagerInstanceFunction(DtDe& de, bool); template <typename managerclass>=""> friend void defaultManagerRegisterInstanceFunction(DtDe& de, ManagerClass* mgr) Manager(DtDe&); DtSignalConnectionManager myConnections; };
Then simply in the implementation of instance call defaultManagerInstanceFunction with the de object and return the return value. @code
Manager& Manager::instance(DtDe& de) { return defaultManagerInstanceFunction<Manager>(de); }
|
friend |
Befriend the manager instance functions for instance retrieval / creation.
Befriend the manager instance functions for instance retrieval and creation.
Befriend the manager instance functions for instance retreival/creation.
Befriend the manager instance functions for instance retrieval/creation.
@code
static void Manager::registerInstance(DtDe& de, Manager* mgr) { defaultManagerRegisterInstanceFunction(de,mgr); } ...else where call. // Assuming class NewManager : public Manager Manager::registerInstance(de,new NewManager(de));
| boost::signal<void (int)> makVrv::DtOculusSettingsManager::signal_mirroringSet |
| boost::signal<void (bool)> makVrv::DtOculusSettingsManager::signal_monoscopicSet |
| boost::signal<void (float)> makVrv::DtOculusSettingsManager::signal_pixelsPerDisplayPixelSet |
|
protected |