![]() |
VR-Forces Developer's Guide
|
The shared simulation settings.

Public Member Functions | |
| virtual | ~DtSharedRangeRingsSettings () override |
| virtual void | setFill2D (bool) |
| virtual bool | fill2D () const |
| virtual void | setShowRangeSphere (bool) |
| virtual bool | showRangeSphere () const |
| virtual void | setShowWeaponNameLabel (bool) |
| virtual bool | showWeaponNameLabel () const |
| virtual void | setShowEntityNameLabel (bool) |
| virtual bool | showEntityNameLabel () const |
| virtual void | setShowRangeValueLabel (bool) |
| virtual bool | showRangeValueLabel () const |
| virtual void | setShowByDefault (bool) |
| virtual bool | showByDefault () const |
| virtual void | setShowForSelected (bool) |
| virtual bool | showForSelected () const |
| virtual void | setShowPhysicalFootprint (bool) |
| virtual bool | showPhysicalFootprint () const |
| virtual void | setSphereOpacityModifier (double) |
| virtual double | sphereOpacityModifier () const |
| virtual void | setAttackAnimationForRingEnabled (const std::string &, bool) |
| virtual bool | attackAnimationForRingEnabled (const std::string &) const |
| virtual const DtRangeRingsSettingsRecord::ColorOptions & | colorOptions () const |
| virtual DtRangeRingsSettingsRecord::ColorOption | colorOption (const std::string &) const |
| virtual void | setColorOptions (const DtRangeRingsSettingsRecord::ColorOptions &) |
| virtual bool | getColor (const std::string &type, int force, float &r, float &g, float &b, float &a, makVrv::DtUnicode &) const |
| virtual void | setColor (const std::string &type, int color, const makVrv::DtUnicode &) |
| virtual void | removeColorOption (const std::string &type) |
| virtual void | getRecord (DtRangeRingsSettingsRecord &rec) const |
| virtual void | setFromRecord (const DtRangeRingsSettingsRecord &rec) |
| virtual void | getSplitRecord (std::vector< DtRangeRingsSettingsRecord > &rec, std::vector< std::string > &fileNames) |
| virtual void | addRecords (DtRangeRingsSettingsRecord &recs, DtRangeRingsSettingsRecord &combinedRec) |
| virtual void | addColorOptionIfMissing (const std::string &option, int color, const makVrv::DtUnicode &label, bool visible=true) |
| virtual bool | getColorByCategory (const std::string &type, int &color) const |
| virtual makVrv::DtUnicode | labelForType (const std::string &) const |
| virtual void | setVisible (const std::string &type, bool) |
| virtual bool | visible (const std::string &type) const |
| virtual bool | wasRequested (const std::string &) const |
| virtual void | setSectorSizeProperty (const std::string &) |
| virtual const std::string & | sectorSizeProperty () const |
| virtual bool | hasNewOptions () const |
| virtual void | getAndClearOptions (std::set< std::string > &newOptions, std::set< std::string > &newOptionsRequested) |
Public Member Functions inherited from makVrv::DtSharedSettings | |
| DtSharedSettings (const DtSharedSettingsManager &manager) | |
| virtual | ~DtSharedSettings () |
| boost::shared_mutex & | mutex () |
| SafetyKey | safeToEmitSignals () |
| void | setCurrentWriteLock (boost::unique_lock< boost::shared_mutex > *currentWriteLock) |
| virtual const DtSettingsBackup * | settingsBackup () const |
| virtual DtSettingsBackup * | settingsBackup () |
| virtual void | backup () |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static std::string | className () |
Protected Member Functions | |
| virtual void | colorFromForce (int force, float &r, float &g, float &b) |
| DtSharedRangeRingsSettings (makVrv::DtSharedSettingsManager &manager) | |
Protected Attributes | |
| bool | myFill2D |
| bool | myShowRangeSphere |
| bool | myShowWeaponNameLabel |
| bool | myShowEntityNameLabel |
| bool | myShowRangeValueLabel |
| bool | myShowByDefault |
| bool | myShowForSelected |
| bool | myShowPhysicalFootprint |
| double | mySphereOpacityModifier |
| DtRangeRingsSettingsRecord::ColorOptions | myColorOptions |
| std::map< std::string, bool > | myRequested |
| std::map< std::string, bool > | myAttackAnimationEnabled |
| std::string | mySectorSizeProperty |
| std::set< std::string > | myNewColorOptions |
| std::set< std::string > | myNewOptionRequested |
Friends | |
| class | makVrv::DtReadSettingsLock< DtSharedRangeRingsSettings > |
| class | makVrv::DtWriteSettingsLock< DtSharedRangeRingsSettings > |
| class | makVrv::DtSharedSettingsManager |
|
overridevirtual |
DTOR.
|
protected |
CTOR.
|
static |
Get an instance of the settings object. Also protected, use the DtReadSettingsLock and DtWriteSettingsLock to access the object.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Attack animations are not currently stored as part of permanent record and and only be enabled/disabled in code.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
To support writing element definitions in folders as multiple files not implemented.
|
inlinevirtual |
To support writing element definitions in folders as multiple files not implemented.
|
virtual |
If color option is not there, add it.
|
virtual |
Some range rings have categories. These are included in the type. For instance: "Combat-Power.Anti-Tank.Range". Finds the color associated with the base category (e.g. "Combat-Power" in the example above) of the given type.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protectedvirtual |
|
friend |
Also protected, use the DtReadSettingsLock and DtWriteSettingsLock to access the object.
|
friend |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |