Float control that allows the user to specify units.
For example: 1km, 2.3cm etc. The constrainInput() method must be called before attempting to get the input with getData() or getFloatData(). A few notes about the class: 1. Information is stored in default units(such as cms) 2. getData() and SetValue() will return or set information in default units 3. getFloatData() will return information in current units 3. setLengthUnits() includes a boolean parameter which will force the updating of the field to current units
#include
<class_units_widget_1_1_constrained_units_float_control.h>
Public Member Functions |
|
__init__ () | |
setLengthUnits () | |
constrainInput () | |
Compute the decimal number from the unit
input. |
|
getFloatValue () | |
SetValue () | |
isDataChanged () |
UnitsWidget.ConstrainedUnitsFloatControl.__init__ | ( | ) |
UnitsWidget.ConstrainedUnitsFloatControl.setLengthUnits | ( | ) |
UnitsWidget.ConstrainedUnitsFloatControl.constrainInput | ( | ) |
Compute the decimal number from the unit input.
UnitsWidget.ConstrainedUnitsFloatControl.getFloatValue | ( | ) |
UnitsWidget.ConstrainedUnitsFloatControl.SetValue | ( | ) |
UnitsWidget.ConstrainedUnitsFloatControl.isDataChanged | ( | ) |