#include <CurveEditorGraphicsView.h>


Public Slots | |
| void | toggleScrollbars (bool visible) |
| Toggles the visibility of scrollbars for the curve editor graphics view. | |
| void | toggleShowEnabledOnly (bool enabled) |
| Toggle to show only enabled parameters. | |
Public Member Functions | |
| CurveEditorGraphicsView (QWidget *parent=0, Qt::WindowFlags flags=0) | |
| Constructor of the CurveEditorGraphicsView class. | |
| virtual | ~CurveEditorGraphicsView () |
| Destructor of the CurveEditorGraphicsView class. | |
| void | showCurves (QList< QTreeWidgetItem * > *selectedItems) |
| Displays the curves of the selected items in the curve editor widget. | |
| virtual void | buildScene () |
| Builds the scene containing the segment ande key widgets. | |
| void | setCurrentFrame (const int pos) |
| Sets the index of the current frame in the scene's time. | |
Protected Member Functions | |
| void | drawCurves (AbstractParameter *parameter) |
| Displays the curves of the given parameter group in the curve editor widget. | |
| virtual void | resizeEvent (QResizeEvent *event) |
| The overwritten the event handler for resize events. Adds scene resizing and redrawing. | |
| virtual void | drawBackground (QPainter *painter, const QRectF &rect) |
| The overwritten the event handler for background drawing events. Adds coordinate system to the background. | |
Private Attributes | |
| QPen | m_pointPen |
| The pen for painting the control points on a curve. | |
| QPen | m_connectionPen |
| The pen for painting the path between points on a curve. | |
| QBrush | m_pointBrush |
| Brush to fill the control points on a curve. | |
| QSizeF | m_pointSize |
| Size of the points on a curve. | |
| QList< NumberParameter * > | m_numberParametersToDraw |
| A list of NumberParameters which should be drawn. | |
| TimelineGraphicsItem * | m_timeline |
| The timeleine widget. | |
| int | m_timelinePos |
| The timeleine widgets position. | |
| int | m_maxLength |
| The max number of keys in numberparameters to draw. | |
| float | m_maxValue |
| The max value of keys in numberparameters to draw. | |
| bool | m_showEnabledCurves |
| The flag for showing only enabled parameters. | |
| CurveEditorGraphicsView::CurveEditorGraphicsView | ( | QWidget * | parent = 0, |
|
| Qt::WindowFlags | flags = 0 | |||
| ) |
Constructor of the CurveEditorGraphicsView class.
Constructors and Destructors.
| parent | The parent widget the created instance will be a child of. | |
| flags | Extra widget options. |
| parent | The parent widget the created instance will be a child of. | |
| flags | Extra widget options. |
| CurveEditorGraphicsView::~CurveEditorGraphicsView | ( | ) | [virtual] |
Destructor of the CurveEditorGraphicsView 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.
| void CurveEditorGraphicsView::showCurves | ( | QList< QTreeWidgetItem * > * | selectedItems | ) |
Displays the curves of the selected items in the curve editor widget.
Public Functions.
| selectedItems | The item list whose animated parameters to display in the curve editor widget. |
| parameterGroup | The parameter group whose animated parameters to display in the curve editor widget. |
| void CurveEditorGraphicsView::buildScene | ( | ) | [virtual] |
Builds the scene containing the segment ande key widgets.
| void CurveEditorGraphicsView::setCurrentFrame | ( | const int | pos | ) |
Sets the index of the current frame in the scene's time.
| index | The new index of the current frame in the scene's time. |
| void CurveEditorGraphicsView::toggleScrollbars | ( | bool | visible | ) | [slot] |
Toggles the visibility of scrollbars for the curve editor graphics view.
Public Slots.
| visible | Flag to control whether to show or hide the scrollbars. |
| visible | Flag to control whether to show or hide the scrollbars. |
Reimplemented from BaseGraphicsView.
| void CurveEditorGraphicsView::toggleShowEnabledOnly | ( | bool | enabled | ) | [slot] |
Toggle to show only enabled parameters.
| visible | Flag to control whether to show or hide enabled parameters. |
| void CurveEditorGraphicsView::drawCurves | ( | AbstractParameter * | parameter | ) | [inline, protected] |
Displays the curves of the given parameter group in the curve editor widget.
| parameterGroup | The parameter group whose animated parameters to display in the curve editor widget. | |
| selectedItems | The selected datatree items. | |
| parameterGroup | The parameter group whose animated parameters to display in the curve editor widget. |
| void CurveEditorGraphicsView::resizeEvent | ( | QResizeEvent * | event | ) | [protected, virtual] |
The overwritten the event handler for resize events. Adds scene resizing and redrawing.
| event | The description of the key event. |
| void CurveEditorGraphicsView::drawBackground | ( | QPainter * | painter, | |
| const QRectF & | rect | |||
| ) | [protected, virtual] |
The overwritten the event handler for background drawing events. Adds coordinate system to the background.
| painter | The QT painter object. | |
| rect | The drawing region painter object. |
QPen CurveEditorGraphicsView::m_pointPen [private] |
The pen for painting the control points on a curve.
QPen CurveEditorGraphicsView::m_connectionPen [private] |
The pen for painting the path between points on a curve.
QBrush CurveEditorGraphicsView::m_pointBrush [private] |
Brush to fill the control points on a curve.
QSizeF CurveEditorGraphicsView::m_pointSize [private] |
Size of the points on a curve.
QList<NumberParameter *> CurveEditorGraphicsView::m_numberParametersToDraw [private] |
A list of NumberParameters which should be drawn.
The timeleine widget.
int CurveEditorGraphicsView::m_timelinePos [private] |
The timeleine widgets position.
int CurveEditorGraphicsView::m_maxLength [private] |
The max number of keys in numberparameters to draw.
float CurveEditorGraphicsView::m_maxValue [private] |
The max value of keys in numberparameters to draw.
bool CurveEditorGraphicsView::m_showEnabledCurves [private] |
The flag for showing only enabled parameters.
1.5.9