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

yane::ModelQt2::ConstraintsWidget Class Reference

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

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

List of all members.

Public Slots

void publishSettings ()
 Slot which defines the settings of the model used for simulation.

Public Member Functions

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

Protected Slots

void acceptData ()
 Slot to send data to the simulation widget.
void resetData ()
 Slot which resets data to standard values.

Protected Member Functions

virtual void hideEvent (QHideEvent *event)
 Function to hide the ConstraintsWidget dock.
void readBounds ()
 Function to obtain the bounds on state and control from the internal class Model object.
void writeBounds ()
 Function to set the bounds on state and control from the internal class Model object.

Protected Attributes

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

Constructor & Destructor Documentation

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

Member Function Documentation

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