Static Public Member Functions |
| static double | convert (double value, RS::Unit source, RS::Unit dest) |
| static RVector | convert (const RVector &value, RS::Unit source, RS::Unit dest) |
| static QString | doubleToString (double value, double prec, bool showLeadingZeroes=true, bool showTrailingZeroes=false) |
| | Converts a double into a string which is as short as possible.
|
| static QString | doubleToString (double value, int prec, bool showLeadingZeroes=true, bool showTrailingZeroes=false) |
| | Converts a double into a string which is as short as possible.
|
| static QString | formatAngle (double angle, RS::AngleFormat format, int prec, bool showLeadingZeroes=true, bool showTrailingZeroes=false) |
| | Formats the given angle with the given format.
|
| static QString | formatArchitectural (double length, RS::Unit unit, int prec, bool showUnit=false, bool showLeadingZeroes=true, bool showTrailingZeroes=false) |
| | Formats the given length in architectural format (e.g.
|
| static QString | formatDecimal (double length, RS::Unit unit, int prec, bool showUnit=false, bool showLeadingZeroes=true, bool showTrailingZeroes=false) |
| | Formats the given length in decimal (normal) format (e.g.
|
| static QString | formatEngineering (double length, RS::Unit unit, int prec, bool showUnit=false, bool showLeadingZeroes=true, bool showTrailingZeroes=false) |
| | Formats the given length in engineering format (e.g.
|
| static QString | formatFractional (double length, RS::Unit unit, int prec, bool showUnit=false, bool showLeadingZeroes=true, bool showTrailingZeroes=false) |
| | Formats the given length in fractional format (e.g.
|
| static QString | formatLinear (double length, RS::Unit unit, RS::LinearFormat format, int prec, bool showUnit=false, bool showLeadingZeroes=true, bool showTrailingZeroes=false) |
| | Formats the given length in the given format.
|
| static QString | formatScientific (double length, RS::Unit unit, int prec, bool showUnit=false, bool showLeadingZeroes=true, bool showTrailingZeroes=false) |
| | Formats the given length in scientific format (e.g.
|
| static double | getFactorToM (RS::Unit unit) |
| static QString | getLabel (double v, RDocument &document, bool maxPrecision=false, bool forceSuppressTrailingZeroes=false) |
| static bool | isMetric (RS::Unit unit) |
| static QString | trimTrailingZeroes (const QString &s) |
| static QString | unitToName (RS::Unit unit, bool tr=true) |
| static QString | unitToSymbol (RS::Unit unit) |
Conversion methods for units.
- Scriptable:
- This class is wrapped for script environments.