CurveEditorPanel Class Reference

Class for a panel that contains a curve editor widget for displaying number parameters. More...

#include <CurveEditorPanel.h>

Inheritance diagram for CurveEditorPanel:

Inheritance graph
[legend]
Collaboration diagram for CurveEditorPanel:

Collaboration graph
[legend]

List of all members.

Public Slots

void updateTree (bool objectsSelected)
 Slot that is called when the selection in the scene model has changed.
void buildTree (Node *node)
 Initializes the Selection Tree.
void showCurves ()
 Displays the curves of the given node in the curve editor.
void setCurrentFrame (const int index) const
 Sets the index of the current frame in the scene's time.
void changeKeyValues (double value)
 Sets the value of the selected Keys.
void scaleKeyValues (double scale)
 Scales the value of the selected Keys.
void muteSelectedParameterGroups ()
 Mutes/unmutes the in treeView selected Parameters.
void muteAllParameterGroups ()
 Mutes/unmutes all treeView Parameters.
void unmuteAllParameterGroups ()
 Unmutes all treeView Parameters.

Public Member Functions

 CurveEditorPanel (QWidget *parent=0, Qt::WindowFlags flags=0)
 Constructor of the CurveEditorPanel class.
virtual ~CurveEditorPanel ()
 Destructor of the CurveEditorPanel class.
virtual void fillToolBars (QToolBar *mainToolBar, QToolBar *panelToolBar)
 Fills the given tool bars with actions for the curve editor panel.

Private Member Functions

void fillTree (ParameterGroup *rootData, QTreeWidgetItem *rootItem)
 Fills the tree view with node data groups.

Private Attributes

QDoubleSpinBox * m_valueSpinBox
 Line edit value for key value overwrite.
QDoubleSpinBox * m_scaleSpinBox
 Line edit value for key value overwrite.
QCheckBox * m_curveCheckBox
 Checkbox which enables/disables view flag for enabled/disabled parameters.
CurveEditorGraphicsViewm_curveEditorGraphicsView
 The graphics view for drawing the curves.
QHBoxLayout * m_hboxLayout
 The layout for horizontal arranging the tree an drawing region.
QTreeWidget * m_dataTree
 The tree widget visualizing the databases.
QIcon m_muteIcon
 The mute icon for the data tree.


Detailed Description

Class for a panel that contains a curve editor widget for displaying number parameters.

Constructor & Destructor Documentation

CurveEditorPanel::CurveEditorPanel ( QWidget *  parent = 0,
Qt::WindowFlags  flags = 0 
)

Constructor of the CurveEditorPanel class.

Constructors and Destructors.

Parameters:
parent The parent widget the created instance will be a child of.
flags Extra widget options.
Constructor of the CurveEditorPanel class.

Parameters:
parent The parent widget the created instance will be a child of.
flags Extra widget options.

CurveEditorPanel::~CurveEditorPanel (  )  [virtual]

Destructor of the CurveEditorPanel class.

Defined virtual to guarantee that the destructor of a derived class will be called if the instance of the derived class is saved in a variable of its parent class type.


Member Function Documentation

void CurveEditorPanel::fillToolBars ( QToolBar *  mainToolBar,
QToolBar *  panelToolBar 
) [virtual]

Fills the given tool bars with actions for the curve editor panel.

Public Functions.

Parameters:
mainToolBar The main tool bar to fill with actions.
panelToolBar The panel tool bar to fill with actions.
Fills the given tool bars with actions for the curve editor panel.

Parameters:
mainToolBar The main tool bar to fill with actions.
panelToolBar The panel tool bar to fill with actions.

Reimplemented from Panel.

void CurveEditorPanel::updateTree ( bool  objectsSelected  )  [slot]

Slot that is called when the selection in the scene model has changed.

Public Slots.

Parameters:
objectsSelected Flag that states whether objects in the scene are selected.
Slot that is called when the selection in the scene model has changed.

Parameters:
objectsSelected Flag that states whether objects in the scene are selected.

void CurveEditorPanel::buildTree ( Node node  )  [slot]

Initializes the Selection Tree.

Parameters:
node The node whose animated parameters to display in the curve editor.

void CurveEditorPanel::showCurves (  )  [slot]

Displays the curves of the given node in the curve editor.

void CurveEditorPanel::setCurrentFrame ( const int  index  )  const [slot]

Sets the index of the current frame in the scene's time.

Parameters:
index The new index of the current frame in the scene's time.

void CurveEditorPanel::changeKeyValues ( double  value  )  [slot]

Sets the value of the selected Keys.

Parameters:
value The new value for the selected keys.

void CurveEditorPanel::scaleKeyValues ( double  scale  )  [slot]

Scales the value of the selected Keys.

Parameters:
scale The scale value for the selected keys.

void CurveEditorPanel::muteSelectedParameterGroups (  )  [slot]

Mutes/unmutes the in treeView selected Parameters.

void CurveEditorPanel::muteAllParameterGroups (  )  [slot]

Mutes/unmutes all treeView Parameters.

Mutes all treeView Parameters.

void CurveEditorPanel::unmuteAllParameterGroups (  )  [slot]

Unmutes all treeView Parameters.

void CurveEditorPanel::fillTree ( ParameterGroup rootData,
QTreeWidgetItem *  rootItem 
) [private]

Fills the tree view with node data groups.

Privata Functions.

Parameters:
root the root parameter group of the selected node
Fills the tree view with node data groups

Parameters:
rootData the root parameter group containing the data
rootItem the QTreeWidgetItem to add the data


Member Data Documentation

QDoubleSpinBox* CurveEditorPanel::m_valueSpinBox [private]

Line edit value for key value overwrite.

QDoubleSpinBox* CurveEditorPanel::m_scaleSpinBox [private]

Line edit value for key value overwrite.

QCheckBox* CurveEditorPanel::m_curveCheckBox [private]

Checkbox which enables/disables view flag for enabled/disabled parameters.

The graphics view for drawing the curves.

QHBoxLayout* CurveEditorPanel::m_hboxLayout [private]

The layout for horizontal arranging the tree an drawing region.

QTreeWidget* CurveEditorPanel::m_dataTree [private]

The tree widget visualizing the databases.

The mute icon for the data tree.


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

Generated on Wed Feb 24 15:01:00 2010 for Frapper by  doxygen 1.5.9