|
Optika Development
|
#include <Optika_SpecificParameterEntryValidators.hpp>


Public Member Functions | |
| EnhancedNumberValidator () | |
| EnhancedNumberValidator (float min, float max, float step=floatDefaultStep, int precision=floatDefaultPrecision) | |
| void | setPrecision (int precision) |
| int | getPrecision () const |
Static Public Member Functions | |
| static void | applyToSpinBox (Teuchos::RCP< const EnhancedNumberValidator< float > > validator, QDoubleSpinBox *spinBox) |
A specific validator used to validat values of type float.
| Optika::EnhancedNumberValidator< float >::EnhancedNumberValidator | ( | ) | [inline] |
Construcsts an EnhancedNumberValidator of type float with no minimum or maximum.
| Optika::EnhancedNumberValidator< float >::EnhancedNumberValidator | ( | float | min, |
| float | max, | ||
| float | step = floatDefaultStep, |
||
| int | precision = floatDefaultPrecision |
||
| ) | [inline] |
Constructs an EnhancedNumberValidator of type float.
| min | The minimum acceptable value for this validator. |
| max | The maximum acceptable value for this validator. |
| step | The increments at which the value should be changed. This is mostly used for the QSpinBox that is used in the Optika GUI. If you're not using the GUI, you may ignore this parameter. |
| precision | This determines the precision at which the number should be displayed in the GUI. NOTE: THIS DOES NOT ACTUALLY SPECIFY THE PRECISION USED IN STORING THE VARIABLE. IT IS FOR GUI PURPOSES ONLY! |
| static void Optika::EnhancedNumberValidator< float >::applyToSpinBox | ( | Teuchos::RCP< const EnhancedNumberValidator< float > > | validator, |
| QDoubleSpinBox * | spinBox | ||
| ) | [inline, static] |
Applies an EnhancedNumberValidator of type float to a QDoubleSpinBox.
| validator | The validator to be useed. |
| spinBox | The SpinBox on which to apply the validator. |
| int Optika::EnhancedNumberValidator< float >::getPrecision | ( | ) | const [inline] |
Gets the precision specified for the validator. NOTE: THIS IS PRECISION USED BY THE GUI. NOT THE ACTUAL PRECISION USED TO STORE THE VARIABLE.
| void Optika::EnhancedNumberValidator< float >::setPrecision | ( | int | precision | ) | [inline] |
Sets the precision specified for the validator. NOTE: THIS IS PRECISION USED BY THE GUI. NOT THE ACTUAL PRECISION USED TO STORE THE VARIABLE.
| The | precision specific for the validator. |
1.7.4