YANE-Framework 1.1.0
Public Slots | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes

yane::ModelQt2::ParameterWidget Class Reference

Widget to modify parameters of the class Model object which is simulated. More...

Collaboration diagram for yane::ModelQt2::ParameterWidget:
[legend]

List of all members.

Public Slots

void applyParameterChanges ()
 Submits parameter changes to the referenced model.
void publishSettings ()
 Accepts the parameter input.

Public Member Functions

 ParameterWidget (QSettings *settings, yane::Model::Model *model, QWidget *parent=0)
 Constructor.
 ~ParameterWidget ()
 Destructor.

Protected Slots

void acceptData ()
 Slot to accepts the parameter input.
void resetData ()
 Slot which resets data to standard values.

Protected Member Functions

virtual void hideEvent (QHideEvent *event)
 Function to hide the ConstraintsWidget dock.

Protected Attributes

ParameterEditDelegate_editdelegate
 Pointer which provides a generic model for storing custom data.
int * _intresetstorage
 Array to store the original double parameter values.
QStandardItemModel * _itemmodel
 Pointer assigning the configuration of this widget.
yane::Model::Model_model
 Settings for the ConstraintsWidget object.
bool _paramschanged
 Array to store the original integer parameter values.
double * _resetstorage
 Model used for simulation.
QSettings * _settings
 Pointer of the yane::ModelQt2::ParameterEditDelegate objects.

Detailed Description

ParameterWidget


Constructor & Destructor Documentation

yane::ModelQt2::ParameterWidget::ParameterWidget ( QSettings *  settings,
yane::Model::Model model,
QWidget *  parent = 0 
)
Parameters:
settingsSettings for the ConstraintsWidget object
modelA Model object
parentParenting widget

Member Function Documentation

void yane::ModelQt2::ParameterWidget::applyParameterChanges ( ) [slot]

The Submit has to be separated from the acceptData() call, to avoid a disturbance of a ode solver during a computation task. This Method is called by active computation threads before a ode computation.

void yane::ModelQt2::ParameterWidget::hideEvent ( QHideEvent *  event) [protected, virtual]
Parameters:
eventQHideEvent triggered by user

Member Data Documentation

Indicates, if the parameter changes have to be transfered to the model class