Frapper  1.0a
Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
Frapper::CurveEditorPanel Class Reference

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

#include <CurveEditorPanel.h>

Inheritance diagram for Frapper::CurveEditorPanel:
Inheritance graph
[legend]
Collaboration diagram for Frapper::CurveEditorPanel:
Collaboration graph
[legend]

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 ()
 Sets the value of the selected Keys.
 
void scaleKeyValues ()
 Scales the value of the selected Keys.
 
void normalizeKeyValues ()
 Scales the values of the shown curve to a maximum of one.
 
void muteSelectedParameterGroups ()
 Mutes/unmutes the in treeView selected Parameters.
 
void muteAllParameterGroups ()
 Mutes/unmutes all treeView Parameters.
 
void unmuteAllParameterGroups ()
 Unmutes all treeView Parameters.
 
void updateAllParameters ()
 Updates all treeView Parameters.
 

Signals

void drag ()
 Signal that is emitted when a drag event is emited.
 

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.
 
- Public Member Functions inherited from Frapper::ViewPanel
 ViewPanel (Type viewPanelType, QWidget *parent=0, Qt::WindowFlags flags=0)
 Constructor of the ViewPanel class.
 
Type getViewPanelType ()
 Returns the type of the view panel.
 
- Public Member Functions inherited from Frapper::Panel
 Panel (QWidget *parent=0, Qt::WindowFlags flags=0)
 Constructor of the Panel class.
 
virtual ~Panel ()
 Destructor of the Panel class.
 
QMap< QString, QString > getPanelParameters ()
 Gets the panel parameters. For load and save functionality.
 
virtual void setPanelParameters (const QMap< QString, QString > &parameterMap)
 Sets the panel parameters. For load and save functionality.
 
virtual void registerControl (NodeModel *nodeModel, SceneModel *sceneModel)
 Connects the panel with the scene.
 

Protected Member Functions

void keyPressEvent (QKeyEvent *event)
 Handles key press events for the widget.
 

Private Member Functions

void muteItems (QTreeWidgetItem *item)
 Changes color and icon of selected treeView Items and chids.
 
void unmuteItems (QTreeWidgetItem *item)
 Changes color and icon of selected treeView Items and chids.
 
void updateItems ()
 Updates color and icon of selected treeView Items and chids.
 
void fillTree (ParameterGroup *rootData, QTreeWidgetItem *rootItem)
 Fills the tree view with node data groups.
 

Private Attributes

QDoubleSpinBox * m_normalizeSpinBox
 Line edit value for key value overwrite.
 
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.
 

Additional Inherited Members

- Public Types inherited from Frapper::ViewPanel
enum  Type {
  T_Documentation, T_Viewport, T_NetworkEditor, T_HierarchyEditor,
  T_ParameterEditor, T_CurveEditor, T_Timeline, T_PluginPanel,
  T_PainterPanel, T_NumTypes
}
 Nested enumeration for the different types of view panels. More...
 
- Static Public Member Functions inherited from Frapper::Panel
static QString getTypeName (Type panelType)
 Returns the name of the given panel type.
 
static QString getTypeIconName (Type panelType)
 Returns the icon name for the given panel type.
 
- Protected Attributes inherited from Frapper::Panel
QMap< QString, QString > m_parameterMap
 Map with default values. For load and save functionality.
 

Detailed Description

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

Constructor & Destructor Documentation

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

Constructor of the CurveEditorPanel class.

Constructors and Destructors.

Parameters
parentThe parent widget the created instance will be a child of.
flagsExtra widget options.

Constructor of the CurveEditorPanel class.

Parameters
parentThe parent widget the created instance will be a child of.
flagsExtra widget options.
Frapper::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 Frapper::CurveEditorPanel::fillToolBars ( QToolBar *  mainToolBar,
QToolBar *  panelToolBar 
)
virtual

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

Public Functions.

Parameters
mainToolBarThe main tool bar to fill with actions.
panelToolBarThe panel tool bar to fill with actions.

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

Parameters
mainToolBarThe main tool bar to fill with actions.
panelToolBarThe panel tool bar to fill with actions.

Reimplemented from Frapper::Panel.

void Frapper::CurveEditorPanel::updateTree ( bool  objectsSelected)
slot

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

Public Slots.

Parameters
objectsSelectedFlag that states whether objects in the scene are selected.

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

Parameters
objectsSelectedFlag that states whether objects in the scene are selected.
void Frapper::CurveEditorPanel::buildTree ( Node node)
slot

Initializes the Selection Tree.

Parameters
nodeThe node whose animated parameters to display in the curve editor.
void Frapper::CurveEditorPanel::showCurves ( )
slot

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

void Frapper::CurveEditorPanel::setCurrentFrame ( const int  index) const
slot

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

Parameters
indexThe new index of the current frame in the scene's time.
void Frapper::CurveEditorPanel::changeKeyValues ( )
slot

Sets the value of the selected Keys.

void Frapper::CurveEditorPanel::scaleKeyValues ( )
slot

Scales the value of the selected Keys.

void Frapper::CurveEditorPanel::normalizeKeyValues ( )
slot

Scales the values of the shown curve to a maximum of one.

void Frapper::CurveEditorPanel::muteSelectedParameterGroups ( )
slot

Mutes/unmutes the in treeView selected Parameters.

void Frapper::CurveEditorPanel::muteAllParameterGroups ( )
slot

Mutes/unmutes all treeView Parameters.

Mutes all treeView Parameters.

void Frapper::CurveEditorPanel::unmuteAllParameterGroups ( )
slot

Unmutes all treeView Parameters.

void Frapper::CurveEditorPanel::updateAllParameters ( )
slot

Updates all treeView Parameters.

void Frapper::CurveEditorPanel::drag ( )
signal

Signal that is emitted when a drag event is emited.

void Frapper::CurveEditorPanel::muteItems ( QTreeWidgetItem *  item)
private

Changes color and icon of selected treeView Items and chids.

Privata Functions.

Fills the tree view with node data groups

Parameters
rootDatathe root parameter group containing the data
rootItemthe QTreeWidgetItem to add the data Changes color and icon of selected treeView Items and chids
void Frapper::CurveEditorPanel::unmuteItems ( QTreeWidgetItem *  item)
private

Changes color and icon of selected treeView Items and chids.

void Frapper::CurveEditorPanel::updateItems ( )
private

Updates color and icon of selected treeView Items and chids.

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

Fills the tree view with node data groups.

Parameters
rootthe root parameter group of the selected node
void Frapper::CurveEditorPanel::keyPressEvent ( QKeyEvent *  event)
protected

Handles key press events for the widget.

Protected Events.

Parameters
eventThe description of the key event.

Handles key press events for the widget.

Parameters
eventThe description of the key event.

Member Data Documentation

QDoubleSpinBox* Frapper::CurveEditorPanel::m_normalizeSpinBox
private

Line edit value for key value overwrite.

QDoubleSpinBox* Frapper::CurveEditorPanel::m_valueSpinBox
private

Line edit value for key value overwrite.

QDoubleSpinBox* Frapper::CurveEditorPanel::m_scaleSpinBox
private

Line edit value for key value overwrite.

QCheckBox* Frapper::CurveEditorPanel::m_curveCheckBox
private

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

CurveEditorGraphicsView* Frapper::CurveEditorPanel::m_curveEditorGraphicsView
private

The graphics view for drawing the curves.

QHBoxLayout* Frapper::CurveEditorPanel::m_hboxLayout
private

The layout for horizontal arranging the tree an drawing region.

QTreeWidget* Frapper::CurveEditorPanel::m_dataTree
private

The tree widget visualizing the databases.

QIcon Frapper::CurveEditorPanel::m_muteIcon
private

The mute icon for the data tree.


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