![]() |
VR-Forces Developer's Guide
|
Thread-safe shared state object for interaction display settings.
Access is controlled via DtReadSettingsLock and DtWriteSettingsLock. Use DtInteractionsSettingsBackup for undo/redo support.

Public Member Functions | |
| virtual | ~DtSharedInteractionsSettings () |
Field Value Getters/Setters | |
| virtual bool | enableBallistics () const |
| virtual void | setEnableBallistics (bool enabled) |
Settings record / backup methods | |
| void | setFromRecord (const makArchives::DtInteractionsSettingsRecord &rec) |
| void | getRecord (makArchives::DtInteractionsSettingsRecord &rec) const |
| virtual const DtInteractionsSettingsBackup * | settingsBackup () const |
| virtual DtInteractionsSettingsBackup * | settingsBackup () |
| virtual void | backup () |
Public Member Functions inherited from makVrv::DtSharedSettings | |
| DtSharedSettings (const DtSharedSettingsManager &manager) | |
| virtual | ~DtSharedSettings () |
| boost::shared_mutex & | mutex () |
| virtual std::vector < std::function< void()> > & | eventSignalsToEmit () |
| virtual const std::vector < std::function< void()> > & | eventSignalsToEmit () const |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static const std::string & | className () |
Protected Member Functions | |
| DtSharedInteractionsSettings (DtSharedSettingsManager &manager) | |
Protected Attributes | |
| bool | myEnableBallistics |
| DtInteractionsSettingsBackup * | mySettingsBackup |
Protected Attributes inherited from makVrv::DtSharedSettings | |
| const DtSharedSettingsManager & | myManager |
| boost::shared_mutex | myMutex |
| std::vector< std::function < void()> > | myEventSignalsToEmit |
Friends | |
| class | DtReadSettingsLock< DtSharedInteractionsSettings > |
| class | DtWriteSettingsLock< DtSharedInteractionsSettings > |
|
virtual |
DTOR.
|
protected |
Protected CTOR (Use DtReadSettingsLock and DtWriteSettingsLock).
|
virtual |
Returns true if ballistic visual effects are enabled.
|
virtual |
Sets whether ballistic visual effects are enabled.
| enabled | True to enable ballistic visual effects, false to disable. |
| void makVrv::DtSharedInteractionsSettings::setFromRecord | ( | const makArchives::DtInteractionsSettingsRecord & | rec | ) |
Populates this object from a deserialized DtInteractionsSettingsRecord.
| rec | The record to read from. |
| void makVrv::DtSharedInteractionsSettings::getRecord | ( | makArchives::DtInteractionsSettingsRecord & | rec | ) | const |
Fills rec with the current settings state.
| rec | The record to populate. |
|
virtual |
Returns the backup manager for undo/redo support, or null if not yet set up.
Reimplemented from makVrv::DtSharedSettings.
|
virtual |
Returns the backup manager for undo/redo support, or null if not yet set up.
Reimplemented from makVrv::DtSharedSettings.
|
virtual |
Takes a snapshot of the current settings for undo/redo.
Reimplemented from makVrv::DtSharedSettings.
|
static |
Returns the canonical name used to look up this object in DtSharedSettingsManager.
|
friend |
Use the DtReadSettingsLock to read the object.
|
friend |
Use the DtWriteSettingsLock to write to the object.
|
protected |
|
protected |