#include <Quantity.h>
Public Types | |
enum | NumberFormat { Default = 0, Fixed = 1, Scientific = 2 } |
enum | NumberOption { , OmitGroupSeparator = 0x01, RejectGroupSeparator = 0x02 } |
typedef int | NumberOptions |
Public Member Functions | |
int | getDenominator () const |
QuantityFormat () | |
void | setDenominator (int denom) |
char | toFormat () const |
Static Public Member Functions | |
static int | getDefaultDenominator () |
static void | setDefaultDenominator (int denom) |
static NumberFormat | toFormat (char c, bool *ok=0) |
Public Attributes | |
int | denominator |
NumberFormat | format |
NumberOptions | option |
int | precision |
Static Public Attributes | |
static int | defaultDenominator = 8 |
Member Typedef Documentation
◆ NumberOptions
typedef int Base::QuantityFormat::NumberOptions |
Member Enumeration Documentation
◆ NumberFormat
◆ NumberOption
Constructor & Destructor Documentation
◆ QuantityFormat()
QuantityFormat::QuantityFormat | ( | ) |
Member Function Documentation
◆ getDefaultDenominator()
|
static |
Referenced by Gui::Dialog::DlgSettingsUnitsImp::loadSettings().
◆ getDenominator()
int Base::QuantityFormat::getDenominator | ( | ) | const |
Referenced by Base::UnitsSchemaImperialBuilding::schemaTranslate().
◆ setDefaultDenominator()
|
static |
Referenced by Gui::Dialog::DlgSettingsUnitsImp::saveSettings().
◆ setDenominator()
void Base::QuantityFormat::setDenominator | ( | int | denom | ) |
◆ toFormat() [1/2]
char Base::QuantityFormat::toFormat | ( | ) | const |
Referenced by Gui::InputField::getFormat(), Base::QuantityPy::setFormat(), and Gui::InputField::setFormat().
◆ toFormat() [2/2]
|
static |
Member Data Documentation
◆ defaultDenominator
|
static |
◆ denominator
int Base::QuantityFormat::denominator |
◆ format
NumberFormat Base::QuantityFormat::format |
Referenced by Gui::InputField::selectNumber(), and Gui::InputField::setFormat().
◆ option
NumberOptions Base::QuantityFormat::option |
Referenced by Sketcher::Constraint::getPresentationValue().
◆ precision
int Base::QuantityFormat::precision |
Referenced by Gui::InputField::getPrecision(), ifc2x3.ifcgeometricrepresentationsubcontext::ifcgeometricrepresentationcontext_precision(), ifc4.ifcgeometricrepresentationsubcontext::ifcgeometricrepresentationcontext_precision(), Gui::QuantitySpinBox::setDecimals(), and Gui::InputField::setPrecision().
The documentation for this struct was generated from the following files:
- src/Base/Quantity.h
- src/Base/Quantity.cpp