Optika GUI Toolik Version of the Day
Public Member Functions | Static Public Member Functions | Private Attributes
Optika::EnhancedNumberValidator< float > Class Template Reference

#include <Optika_SpecificParameterEntryValidators.hpp>

Inheritance diagram for Optika::EnhancedNumberValidator< float >:
Inheritance graph
[legend]

List of all members.

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)

Private Attributes

int precision

Detailed Description

template<>
class Optika::EnhancedNumberValidator< float >

A specific validator used to validat values of type float.

Definition at line 496 of file Optika_SpecificParameterEntryValidators.hpp.


Constructor & Destructor Documentation

Construcsts an EnhancedNumberValidator of type float with no minimum or maximum.

Definition at line 503 of file Optika_SpecificParameterEntryValidators.hpp.

Optika::EnhancedNumberValidator< float >::EnhancedNumberValidator ( float  min,
float  max,
float  step = floatDefaultStep,
int  precision = floatDefaultPrecision 
) [inline]

Constructs an EnhancedNumberValidator of type float.

Parameters:
minThe minimum acceptable value for this validator.
maxThe maximum acceptable value for this validator.
stepThe 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.
precisionThis 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!

Definition at line 515 of file Optika_SpecificParameterEntryValidators.hpp.


Member Function Documentation

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.

Parameters:
Theprecision specific for the validator.

Definition at line 525 of file Optika_SpecificParameterEntryValidators.hpp.

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.

Returns:
The precision specific for the validator.

Definition at line 536 of file Optika_SpecificParameterEntryValidators.hpp.

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.

Parameters:
validatorThe validator to be useed.
spinBoxThe SpinBox on which to apply the validator.

Definition at line 546 of file Optika_SpecificParameterEntryValidators.hpp.


Member Data Documentation

int Optika::EnhancedNumberValidator< float >::precision [private]

The precision with which the variable should be displayed in a GUI. NOTE: THIS IS PRECISION USED BY THE GUI. NOT THE ACTUAL PRECISION USED TO STORE THE VARIABLE.

Definition at line 567 of file Optika_SpecificParameterEntryValidators.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends