![]() |
VR-Forces 4.5 Class Documentation
|
The DtVrfDiplayUnitSettingsMnager class is a subclass of the DtDisplayUnitsSettingsManager to add methods for temperature. More...

Public Types | |
| enum | TemperatureUnits { UnitsCelsius, UnitsFahrenheit, UnitsKelvin, End_TemperatureUnits } |
Public Member Functions | |
| DtVrfDisplayUnitsSettingsManager (makVrv::DtDe &) | |
| CTOR. | |
| virtual | ~DtVrfDisplayUnitsSettingsManager () |
| DTOR. | |
| virtual void | setTemperatureUnits (TemperatureUnits units) |
| Sets the units of temperature to use. | |
| virtual TemperatureUnits | currentTemperatureUnits () const |
| virtual void | setTemperatureDecimals (int) |
| Sets the decimals to use – common for all. | |
| virtual int | currentTemperatureDecimals () const |
| virtual makVrv::DtUnicode | temperatureUnitNotation (TemperatureUnits temperatureUnit) const |
| virtual makVrv::DtUnicode | currentTemperatureUnitNotation () const |
| virtual double | convertTemperatureUnitNativeToDisplay (double temp) const |
| Converts the temperature from the given native unit (Celsius) to the display. | |
| virtual std::string | convertTemperatureUnitNativeToDisplayString (double temp) const |
| Converts the temperature from the given native unit (Celsius) to the display string. | |
| virtual double | convertTemperature (DtVrfDisplayUnitsSettingsManager::TemperatureUnits temperatureUnit, double) const |
| Converts temperature from given units from Celsius. | |
| virtual double | revertTemperature (DtVrfDisplayUnitsSettingsManager::TemperatureUnits temperatureUnit, double) const |
| Converts temperature to the given unit to Celsius. | |
| virtual double | convertTemperatureUnitDisplayToNative (double temp) const |
| Converts from display unit to native (Celsius) | |
| virtual std::string | valueToText (double value, int decimals) const |
| virtual void | setTemperatureConverter (DtTemperatureConverter *) |
| Deletes old temperature converter and takes ownership of the supplied. | |
| virtual DtTemperatureConverter * | temperatureConverter () const |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. | |
Static Public Member Functions | |
| static DtVrfDisplayUnitsSettingsManager & | instance (makVrv::DtDe &) |
| static void | registerInstance (makVrv::DtDe &, DtVrfDisplayUnitsSettingsManager *) |
Public Attributes | |
| boost::signal< void(TemperatureUnits from, TemperatureUnits to)> | signal_temperatureUnitsChanged |
| Signal when the temperature units change. | |
| boost::signal< void(int)> | signal_temperatureDecimalsChanged |
| Signal when the temperature decimals change. | |
Protected Member Functions | |
| virtual void | initializeTemperatureUnits () |
Protected Attributes | |
| DtTemperatureConverter * | myTemperatureConverter |
| makVrv::DtDe & | myDe |
The DtVrfDiplayUnitSettingsMnager class is a subclass of the DtDisplayUnitsSettingsManager to add methods for temperature.
| makVrf::DtVrfDisplayUnitsSettingsManager::DtVrfDisplayUnitsSettingsManager | ( | makVrv::DtDe & | ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Sets the units of temperature to use.
|
virtual |
|
virtual |
Sets the decimals to use – common for all.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Converts the temperature from the given native unit (Celsius) to the display.
|
virtual |
Converts the temperature from the given native unit (Celsius) to the display string.
|
virtual |
Converts temperature from given units from Celsius.
|
virtual |
Converts temperature to the given unit to Celsius.
|
virtual |
Converts from display unit to native (Celsius)
|
virtual |
|
virtual |
Deletes old temperature converter and takes ownership of the supplied.
|
virtual |
|
static |
|
static |
|
protectedvirtual |
| boost::signal<void (TemperatureUnits from, TemperatureUnits to)> makVrf::DtVrfDisplayUnitsSettingsManager::signal_temperatureUnitsChanged |
Signal when the temperature units change.
| boost::signal<void (int)> makVrf::DtVrfDisplayUnitsSettingsManager::signal_temperatureDecimalsChanged |
Signal when the temperature decimals change.
|
protected |
|
protected |