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

#include <Optika_SpecificParameterEntryValidators.hpp>

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

List of all members.

Public Member Functions

 EnhancedNumberValidator ()
 EnhancedNumberValidator (double min, double max, double step=doubleDefaultStep, int precision=doubleDefaultPrecision)
void setPrecision (int precision)
int getPrecision () const

Static Public Member Functions

static void applyToSpinBox (Teuchos::RCP< const EnhancedNumberValidator< double > > validator, QDoubleSpinBox *spinBox)

Private Attributes

int precision

Detailed Description

template<>
class Optika::EnhancedNumberValidator< double >

A specific validator used to validate entry's of type long long int. A specific validator used to validate values of type double.

Definition at line 418 of file Optika_SpecificParameterEntryValidators.hpp.


Constructor & Destructor Documentation

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

Definition at line 424 of file Optika_SpecificParameterEntryValidators.hpp.

Optika::EnhancedNumberValidator< double >::EnhancedNumberValidator ( double  min,
double  max,
double  step = doubleDefaultStep,
int  precision = doubleDefaultPrecision 
) [inline]

Constructs an EnhancedNumberValidator of type double.

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 436 of file Optika_SpecificParameterEntryValidators.hpp.


Member Function Documentation

void Optika::EnhancedNumberValidator< double >::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 447 of file Optika_SpecificParameterEntryValidators.hpp.

int Optika::EnhancedNumberValidator< double >::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 458 of file Optika_SpecificParameterEntryValidators.hpp.

static void Optika::EnhancedNumberValidator< double >::applyToSpinBox ( Teuchos::RCP< const EnhancedNumberValidator< double > >  validator,
QDoubleSpinBox *  spinBox 
) [inline, static]

Applies an EnhancedNumberValidator of type double to a QDoubleSpinBox

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

Definition at line 468 of file Optika_SpecificParameterEntryValidators.hpp.


Member Data Documentation

int Optika::EnhancedNumberValidator< double >::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 489 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