![]() |
VR-Forces Developer's Guide
|
This manager will manage settings for intervisibility objects.

Static Public Member Functions | |
| static DtIntervisibilitySettingsManager & | instance (DtDe &de) |
Public Attributes | |
Boost signals for changed settings | |
| boost::signalslib::signal < void(bool)> | signal_intervisibilityEnabledSet |
| boost::signalslib::signal < void(bool)> | signal_leftClickMakesObjectsPermanentSet |
| boost::signalslib::signal < void(double)> | signal_originIntervisibilityElevationSet |
| boost::signalslib::signal < void(double)> | signal_endPointIntervisibilityElevationSet |
| boost::signalslib::signal < void(double)> | signal_fanModeSamplingRateSet |
| boost::signalslib::signal < void(double)> | signal_entityFanUpdateRateSet |
| boost::signalslib::signal < void(bool)> | signal_hatLinesEnabledSet |
| boost::signalslib::signal < void(bool)> | signal_hatLinesOnSelectionOnlySet |
| boost::signalslib::signal < void(float r, float g, float b, float a)> | signal_visibleColorSet |
| boost::signalslib::signal < void(float r, float g, float b, float a)> | signal_blockedColorSet |
| boost::signalslib::signal < void(float r, float g, float b, float a)> | signal_circleColorSet |
Protected Member Functions | |
| DtIntervisibilitySettingsManager (DtDe &de) | |
| virtual bool | applyFactoryOverrides (makArchives::DtIntervisibilitySettingsRecord &rec) const |
Protected Attributes | |
| bool | myIntervisibilityEnabled |
| bool | myLeftClickMakesObjectsPermanent |
| bool | myHatLinesEnabled |
| bool | myHatLinesOnSelectionOnly |
| double | myOriginIntervisibilityElevation |
| double | myEndPointIntervisibilityElevation |
| double | myFanModeSamplingRate |
| double | myEntityFanUpdateRate |
| float | myVisibleColor [4] |
| float | myBlockedColor [4] |
| float | myCircleColor [4] |
Protected Attributes inherited from makVrv::DtCommonBaseSettingsManager< makArchives::DtIntervisibilitySettingsRecord > | |
| DtSignalConnectionManager | myConnections |
| std::string | myName |
| std::string | myExtension |
| std::string | myDisplayName |
| bool | myUseDefaultSettingsRecordFlag |
| bool | myAutoSaveFlag |
| DtSettingsBackup * | mySettingsBackup |
| DtDe & | myDe |
Friends | |
| template<typename ManagerClass > | |
| ManagerClass & | defaultManagerInstanceFunction (DtDe &, bool) |
| template<typename ManagerClass > | |
| void | defaultManagerRegisterInstanceFunction (DtDe &, ManagerClass *) |
Additional Inherited Members | |
Protected Types inherited from makVrv::DtBaseSettingsManager< makArchives::DtIntervisibilitySettingsRecord > | |
| typedef DtRecordSettingsBackup < DtBaseSettingsManager < makArchives::DtIntervisibilitySettingsRecord > , makArchives::DtIntervisibilitySettingsRecord > | RecordBackupType |
|
virtual |
DTOR.
|
protected |
Protected CTOR ( use instance(..) ).
|
static |
Get an instance of the settings manager.
| void makVrv::DtIntervisibilitySettingsManager::setIntervisibilityEnabled | ( | bool | enabled | ) |
Sets whether intervisibility objects are globally seen/hidden.
| bool makVrv::DtIntervisibilitySettingsManager::intervisibilityEnabled | ( | ) | const |
Gets whether intervisibility objects are globally seen/hidden.
| void makVrv::DtIntervisibilitySettingsManager::setLeftClickMakesObjectsPermanent | ( | bool | enabled | ) |
Sets whether left-clicking places object or starts a new one.
| bool makVrv::DtIntervisibilitySettingsManager::leftClickMakesObjectsPermanent | ( | ) | const |
Gets whether left-clicking places object or starts a new one.
| void makVrv::DtIntervisibilitySettingsManager::setOriginIntervisibilityElevation | ( | double | height | ) |
Sets the distance above the origin to place the intervisibility line (in meters).
| double makVrv::DtIntervisibilitySettingsManager::originIntervisibilityElevation | ( | ) | const |
Gets the distance above the origin the intervisibility line is placed (in meters).
| void makVrv::DtIntervisibilitySettingsManager::setEndPointIntervisibilityElevation | ( | double | height | ) |
Sets the distance above the end point to place the intervisibility line (in meters).
| double makVrv::DtIntervisibilitySettingsManager::endPointIntervisibilityElevation | ( | ) | const |
Gets the distance above the end point the intervisibility line is placed (in meters).
| void makVrv::DtIntervisibilitySettingsManager::setFanModeSamplingRate | ( | double | radAngle | ) |
Sets the angle between fan mode samples (in radians).
| double makVrv::DtIntervisibilitySettingsManager::fanModeSamplingRate | ( | ) | const |
Gets the angle between fan mode samples (in radians).
| void makVrv::DtIntervisibilitySettingsManager::setEntityFanUpdateRate | ( | double | interval | ) |
Sets the time between entity fan mode updates (in seconds). Zero (0) default means check as fast as possible.
| double makVrv::DtIntervisibilitySettingsManager::entityFanUpdateRate | ( | ) | const |
Gets the time between entity fan mode updates (in seconds). Zero (0) default means check as fast as possible.
| void makVrv::DtIntervisibilitySettingsManager::setHatLinesEnabled | ( | bool | hatEnabled | ) |
Sets whether height above terrain lines are enabled.
| bool makVrv::DtIntervisibilitySettingsManager::hatLinesEnabled | ( | ) | const |
Gets whether height above terrain lines are enabled.
| void makVrv::DtIntervisibilitySettingsManager::setHatLinesOnSelectionOnly | ( | bool | selOnly | ) |
Sets whether HAT lines are shown only when the object is selected.
| bool makVrv::DtIntervisibilitySettingsManager::hatLinesOnSelectionOnly | ( | ) | const |
Gets whether HAT lines are shown only when the object is selected.
| void makVrv::DtIntervisibilitySettingsManager::setVisibleColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) |
Sets the color of the visible portion of the intervisibility line.
| void makVrv::DtIntervisibilitySettingsManager::visibleColor | ( | float & | r, |
| float & | g, | ||
| float & | b, | ||
| float & | a | ||
| ) | const |
Gets the color of the visible portion of the intervisibility line.
| void makVrv::DtIntervisibilitySettingsManager::setBlockedColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) |
Sets the color of the blocked portion of the intervisibility line.
| void makVrv::DtIntervisibilitySettingsManager::blockedColor | ( | float & | r, |
| float & | g, | ||
| float & | b, | ||
| float & | a | ||
| ) | const |
Gets the color of the blocked portion of the intervisibility line.
| void makVrv::DtIntervisibilitySettingsManager::setCircleColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) |
Sets the color of the circle outline of a fan, grid line or entity intervisibility.
| void makVrv::DtIntervisibilitySettingsManager::circleColor | ( | float & | r, |
| float & | g, | ||
| float & | b, | ||
| float & | a | ||
| ) | const |
Gets the color of the circle outline of a fan, grid line or entity intervisibility.
|
virtual |
Use the settings from the given settings record.
Implements makVrv::DtBaseSettingsManager< makArchives::DtIntervisibilitySettingsRecord >.
|
virtual |
Populate the given record with the current settings.
Implements makVrv::DtBaseSettingsManager< makArchives::DtIntervisibilitySettingsRecord >.
|
virtual |
Checks whether the given object type is one that can be attached to.
|
virtual |
Checks whether the entity with the given element id can be attached to.
Reimplemented in makVrf::DtVrfIntervisibilitySettingsManager.
|
protectedvirtual |
Get overrides to the factory record, if any. If there are overrides, this function returns true. This is an internal utility function used by VR-Vantage engineers to update factory defaults. As a result, this function returns false in releases but can be overriden by toolkit users if desired; however, generally toolkit users can and should use DtDeInitializer::addDefaultSettingsRecord(...) instead.
Implements makVrv::DtBaseSettingsManager< makArchives::DtIntervisibilitySettingsRecord >.
|
friend |
Befriend the manager instance functions for instance retreival/creation.
Befriend the manager instance functions for instance retreival/creation.
Befriend the manager instance functions for instance retrieval/creation.
Then simply in the implementation of instance call defaultManagerInstanceFunction with the de object and return the return value.
|
friend |
Befriend the manager instance functions for instance retreival/creation.
Befriend the manager instance functions for instance retreival/creation.
Befriend the manager instance functions for instance retrieval/creation.
| boost::signalslib::signal<void (bool)> makVrv::DtIntervisibilitySettingsManager::signal_intervisibilityEnabledSet |
| boost::signalslib::signal<void (bool)> makVrv::DtIntervisibilitySettingsManager::signal_leftClickMakesObjectsPermanentSet |
| boost::signalslib::signal<void (double)> makVrv::DtIntervisibilitySettingsManager::signal_originIntervisibilityElevationSet |
| boost::signalslib::signal<void (double)> makVrv::DtIntervisibilitySettingsManager::signal_endPointIntervisibilityElevationSet |
| boost::signalslib::signal<void (double)> makVrv::DtIntervisibilitySettingsManager::signal_fanModeSamplingRateSet |
| boost::signalslib::signal<void (double)> makVrv::DtIntervisibilitySettingsManager::signal_entityFanUpdateRateSet |
| boost::signalslib::signal<void (bool)> makVrv::DtIntervisibilitySettingsManager::signal_hatLinesEnabledSet |
| boost::signalslib::signal<void (bool)> makVrv::DtIntervisibilitySettingsManager::signal_hatLinesOnSelectionOnlySet |
| boost::signalslib::signal<void (float r, float g, float b, float a)> makVrv::DtIntervisibilitySettingsManager::signal_visibleColorSet |
| boost::signalslib::signal<void (float r, float g, float b, float a)> makVrv::DtIntervisibilitySettingsManager::signal_blockedColorSet |
| boost::signalslib::signal<void (float r, float g, float b, float a)> makVrv::DtIntervisibilitySettingsManager::signal_circleColorSet |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |