Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Examples

VOSGUI::NumericInput Class Reference

MetaObject for a numeric input object. More...

#include <input_numeric.hh>

Inheritance diagram for VOSGUI::NumericInput:

VOSGUI::Input VOSGUI::Widget MetaObject VOSGUI::LocalNumericInput VOSGUI::RemoteNumericInput VOSGUI::SliderNumericInput VOSGUI::LocalSliderNumericInput VOSGUI::RemoteSliderNumericInput VOSGUI::LocalSliderNumericInput VOSGUI::RemoteSliderNumericInput List of all members.

Public Member Functions

Access Subobjects

Static Public Member Functions


Detailed Description

MetaObject for a numeric input object.

Suggested representation is a text input with small increment/decrement controls.

Bug:
Only floating point numbers are implemented yet.

Todo:
General interface using template methods, for floating point, integer, and vector (of float or int) types.

Definition at line 48 of file input_numeric.hh.


Constructor & Destructor Documentation

NumericInput::NumericInput (  MetaObject *  superobject  ) 
 

Constructor.

Definition at line 30 of file input_numeric.cc.

NumericInput::~NumericInput (   )  [virtual]
 

Destructor.

Definition at line 35 of file input_numeric.cc.


Member Function Documentation

double NumericInput::getIncrement (   )  [virtual]
 

Get the increment value.

Definition at line 198 of file input_numeric.cc.

string NumericInput::getIncrementDatatype (   )  [virtual]
 

Get the datatype of gui:increment property.

Definition at line 218 of file input_numeric.cc.

Property * NumericInput::getIncrementObject (   )  [virtual]
 

Get the gui:increment object.

Definition at line 233 of file input_numeric.cc.

double NumericInput::getMaximum (   )  [virtual]
 

Get the maximum value.

Definition at line 87 of file input_numeric.cc.

string NumericInput::getMaximumDatatype (   )  [virtual]
 

Get the datatype of gui:maximum property.

Definition at line 110 of file input_numeric.cc.

Property * NumericInput::getMaximumObject (   )  [virtual]
 

Get the gui:maximum object.

Definition at line 130 of file input_numeric.cc.

double NumericInput::getMinimum (   )  [virtual]
 

Get the minimum value.

Definition at line 145 of file input_numeric.cc.

string NumericInput::getMinimumDatatype (   )  [virtual]
 

Get the datatype of gui:minimum property.

Definition at line 169 of file input_numeric.cc.

Property * NumericInput::getMinimumObject (   )  [virtual]
 

Get the gui:minimum object.

Definition at line 184 of file input_numeric.cc.

const string NumericInput::getType (   )  [virtual]
 

Return type string ("gui:widget.input").

Reimplemented from VOSGUI::Input.

Reimplemented in VOSGUI::SliderNumericInput.

Definition at line 61 of file input_numeric.cc.

double NumericInput::getValue (   )  [virtual]
 

Definition at line 83 of file input_numeric.cc.

void NumericInput::registerExtenders (   )  [static]
 

Register Extenders.

Reimplemented from VOSGUI::Input.

Reimplemented in VOSGUI::SliderNumericInput.

Definition at line 66 of file input_numeric.cc.

Referenced by VOSGUI::registerAll().

void NumericInput::setIncrement (  const double  value,
PropertyAccessControl *  ac = 0
)  [virtual]
 

Set gui:increment property.

Parameters:
value The new value
ac Property access control policy. If omitted, then &NoAccessControl::static_ will be used.

Definition at line 225 of file input_numeric.cc.

void NumericInput::setIncrementObject (  Property *  newobj  )  [virtual]
 

Set the gui:increment object.

Parameters:
newobj The new subobject.

Definition at line 237 of file input_numeric.cc.

void NumericInput::setMaximum (  const double  value,
PropertyAccessControl *  ac = 0
)  [virtual]
 

Set gui:maximum property.

Parameters:
value The new value
ac Property access control policy. If omitted, then &NoAccessControl::static_ will be used.

Definition at line 117 of file input_numeric.cc.

Referenced by setRange().

void NumericInput::setMaximumObject (  Property *  newobj  )  [virtual]
 

Set the gui:maximum object.

Parameters:
newobj The new subobject.

Definition at line 134 of file input_numeric.cc.

void NumericInput::setMinimum (  const double  value,
PropertyAccessControl *  ac = 0
)  [virtual]
 

Set gui:minimum property.

Parameters:
value The new value
ac Property access control policy. If omitted, then &NoAccessControl::static_ will be used.

Definition at line 176 of file input_numeric.cc.

Referenced by setRange().

void NumericInput::setMinimumObject (  Property *  newobj  )  [virtual]
 

Set the gui:minimum object.

Parameters:
newobj The new subobject.

Definition at line 188 of file input_numeric.cc.

void NumericInput::setRange (  double  min,
double  max,
PropertyAccessControl *  ac = 0
)  [virtual]
 

Set the maximum and minimum values.

Definition at line 125 of file input_numeric.cc.

void NumericInput::setValue (  double  v  )  [virtual]
 

Definition at line 77 of file input_numeric.cc.


The documentation for this class was generated from the following files:
Generated on Tue Aug 12 03:56:11 2003 for Interreality Project - VOS by doxygen 1.3.2