CurveEditorGraphicsView Class Reference

#include <CurveEditorGraphicsView.h>

Inheritance diagram for CurveEditorGraphicsView:

Inheritance graph
[legend]
Collaboration diagram for CurveEditorGraphicsView:

Collaboration graph
[legend]

List of all members.

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.
TimelineGraphicsItemm_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.


Constructor & Destructor Documentation

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

Constructor of the CurveEditorGraphicsView class.

Constructors and Destructors.

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

Parameters:
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.


Member Function Documentation

void CurveEditorGraphicsView::showCurves ( QList< QTreeWidgetItem * > *  selectedItems  ) 

Displays the curves of the selected items in the curve editor widget.

Public Functions.

Parameters:
selectedItems The item list whose animated parameters to display in the curve editor widget.
Displays the curves of the given parameter group in the curve editor widget.

Parameters:
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.

Parameters:
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.

Parameters:
visible Flag to control whether to show or hide the scrollbars.
Toggles the visibility of scrollbars for the curve editor graphics view.

Parameters:
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.

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.

Parameters:
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.

Parameters:
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.

Parameters:
painter The QT painter object.
rect The drawing region painter object.


Member Data Documentation

The pen for painting the control points on a curve.

The pen for painting the path between points on a curve.

Brush to fill the control points on a curve.

Size of the points on a curve.

A list of NumberParameters which should be drawn.

The timeleine widget.

The timeleine widgets position.

The max number of keys in numberparameters to draw.

The max value of keys in numberparameters to draw.

The flag for showing only enabled parameters.


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