A unit group represents "energy" or "volume" the default unit used are the unit used by the calculations engine, they're all SI. The user prefered unit represents the unit that the user selected to be presented on the GUI
More...
A unit group represents "energy" or "volume" the default unit used are the unit used by the calculations engine, they're all SI. The user prefered unit represents the unit that the user selected to be presented on the GUI
Definition at line 14 of file IUnitGroup.cs.
double PlugInsInterfaces.DataTypes.IUnitGroup.ConvertFromDefaultToOverride |
( |
double |
valueToConvert | ) |
|
Takes a value in the default unit and converts it to the user prefered unit
- Parameters
-
valueToConvert | Value in default unit to be converted |
- Returns
- Value converted in user prefered unit
double PlugInsInterfaces.DataTypes.IUnitGroup.ConvertFromDefaultToSpecific |
( |
double |
valueToConvert, |
|
|
string |
unit |
|
) |
| |
Converts a value represented in default unit to a specified unit (this must be a unit that belongs to the same group)
- Parameters
-
valueToConvert | Value in default unit to be converted |
unit | Unit that belongs to that group in which the value will be converted |
- Returns
- The converted value in the new unit
double PlugInsInterfaces.DataTypes.IUnitGroup.ConvertFromOverrideToDefault |
( |
double |
valueToConvert | ) |
|
Takes a value in the override unit, and converts it to the default unit Usefull to parse user inputs in textboxes
- Parameters
-
valueToConvert | Value in override unit to be converted |
- Returns
- Value converted in default unit<returns>
string PlugInsInterfaces.DataTypes.IUnitGroup.DefaultUnitStr |
|
get |
The default unit used for this group
Definition at line 25 of file IUnitGroup.cs.
string PlugInsInterfaces.DataTypes.IUnitGroup.Name |
|
get |
string PlugInsInterfaces.DataTypes.IUnitGroup.OverrideUnitStr |
|
get |
The prefered unit used for this group
Definition at line 30 of file IUnitGroup.cs.
The documentation for this interface was generated from the following file:
- C:/Users/ddieffenthaler/Desktop/SVN/source/greet-dev/main/PlugInsInterfaces/DataManipulation/IUnitGroup.cs