Optika GUI Toolik  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members
Optika::DoubleArrayWidget Class Reference

A widget for editing Arrays of type double. More...

#include <Optika_ArrayWidget.hpp>

Inheritance diagram for Optika::DoubleArrayWidget:
Inheritance graph
[legend]

Constructors

 DoubleArrayWidget (QString name, QString type, const RCP< const ParameterEntryValidator > validator, QWidget *parent=0)
 Constructs a DoubleArrayWidget. More...
 

Overridden from Generic1DArrayWidget

Array< double > getArrayFromWidgets ()
 
QWidget * getEditorWidget (int index)
 

Overridden from GenericArrayWidget

void accept ()
 

Additional Inherited Members

- Public Member Functions inherited from Optika::Generic1DArrayWidget< double >
 Generic1DArrayWidget (QString name, QString type, const RCP< const ParameterEntryValidator > validator, QWidget *parent=0)
 Constructs a Generic1DArrayWidget. More...
 
const Array< double > getData () const
 
void initData (Array< double > array)
 Initializes all of the data in the array widget so when it pops up, the individual widgets are populate with their current values in the array. Also, sets the baseArray to array. More...
 
- Public Member Functions inherited from Optika::GenericArrayWidget< double >
const QString getType () const
 Gets the type of array being edited. More...
 
const QString getName () const
 Returns the name of the parameter being edits. More...
 
const RCP< const
ParameterEntryValidator
getEntryValidator () const
 Returns the validator being used on the array. More...
 
virtual void accept ()=0
 called when the user is done entering data into the widget. MUST BE IMPLEMENTED AS A SLOT IN CONCRETE SUBCLASSES! More...
 
 GenericArrayWidget (QString name, QString type, const RCP< const ParameterEntryValidator > validator, QWidget *parent=0)
 Constructs a GenericArrayWidget. More...
 
- Protected Types inherited from Optika::Generic1DArrayWidget< double >
typedef std::vector< QWidget * > WVector
 Convienece typedef. Represents an array of QWidgets. More...
 
- Protected Member Functions inherited from Optika::Generic1DArrayWidget< double >
void doAcceptWork ()
 
- Protected Member Functions inherited from Optika::GenericArrayWidget< double >
virtual void setupArrayLayout ()
 Sets up the layout for the arrayContainer, including adding what ever editing widget should be used for the particual type of array. More...
 
- Protected Attributes inherited from Optika::Generic1DArrayWidget< double >
WVector widgetVector
 Conatins the editing widgets (e.g. QLineEdits and QSpinBoxes) comprising the array editor. More...
 
Array< double > baseArray
 The array to be edited. More...
 
- Protected Attributes inherited from Optika::GenericArrayWidget< double >
QWidget * arrayContainer
 The widget containing all of the editing widgets (e.g. QLineEdits, and QSpinBoxes) that comprise the array editor. More...
 

Detailed Description

A widget for editing Arrays of type double.

Definition at line 1056 of file Optika_ArrayWidget.hpp.

Constructor & Destructor Documentation

Optika::DoubleArrayWidget::DoubleArrayWidget ( QString  name,
QString  type,
const RCP< const ParameterEntryValidator validator,
QWidget *  parent = 0 
)
inline

Constructs a DoubleArrayWidget.

Parameters
nameThe name of the parmaeter being edited.
typeThe array's template type.
validatorThe validator on the array (null if there is none).
parentThe parent widget.

Definition at line 1072 of file Optika_ArrayWidget.hpp.

Member Function Documentation

Array<double> Optika::DoubleArrayWidget::getArrayFromWidgets ( )
inlinevirtual

Implements Optika::Generic1DArrayWidget< double >.

Definition at line 1085 of file Optika_ArrayWidget.hpp.

QWidget* Optika::DoubleArrayWidget::getEditorWidget ( int  index)
inlineprivatevirtual

Implements Optika::Generic1DArrayWidget< double >.

Definition at line 1096 of file Optika_ArrayWidget.hpp.

void Optika::DoubleArrayWidget::accept ( )
inlineslot

Definition at line 1114 of file Optika_ArrayWidget.hpp.


The documentation for this class was generated from the following file: