Class for graphics items representing curve segments in the Curve Editor panel.
More...
#include <SegmentGraphicsItem.h>
|
virtual QRectF | boundingRect () const |
| Returns the bounding rectangle of the graphics item.
|
|
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
| Paints the graphics item into a graphics view.
|
|
Class for graphics items representing curve segments in the Curve Editor panel.
Frapper::SegmentGraphicsItem::SegmentGraphicsItem |
( |
KeyGraphicsItem * |
startKeyItem, |
|
|
KeyGraphicsItem * |
endKeyItem, |
|
|
const QColor & |
color = QColor(Qt::darkGray) |
|
) |
| |
Constructor of the SegmentGraphicsItem class.
Constructors and Destructors.
- Parameters
-
startKeyItem | The key item where the curve segment starts. |
endKeyItem | The key item where the curve segment ends. |
color | The color to use for the curve segment. |
Constructor of the SegmentGraphicsItem class.
- Parameters
-
startKeyItem | The key item where the curve segment starts. |
endKeyItem | The key item where the curve segment ends. |
color | The color to use for the curve segment. |
Frapper::SegmentGraphicsItem::~SegmentGraphicsItem |
( |
| ) |
|
void Frapper::SegmentGraphicsItem::setWidth |
( |
const float |
width | ) |
|
|
inline |
Sets the with by the given value.
Public Functions.
- Parameters
-
width | The value to set the item width. |
Sets the with by the given value.
- Parameters
-
width | The value to set the item width. |
Returns the key item where the curve segment starts.
- Returns
- The key item where the curve segment starts.
void Frapper::SegmentGraphicsItem::setStartKeyItem |
( |
KeyGraphicsItem * |
startKeyItem | ) |
|
|
inline |
Sets the key item where the curve segment should start.
- Parameters
-
startKeyItem | The key item where the curve segment should start. |
Returns the key item where the curve segment ends.
- Returns
- The key item where the curve segment ends.
void Frapper::SegmentGraphicsItem::setEndKeyItem |
( |
KeyGraphicsItem * |
endKeyItem | ) |
|
|
inline |
Sets the key item where the curve segment should end.
- Parameters
-
endKeyItem | The key item where the curve segment should end. |
void Frapper::SegmentGraphicsItem::adjust |
( |
| ) |
|
|
inline |
Calculates the start and end points for painting the curve segment.
QRectF Frapper::SegmentGraphicsItem::boundingRect |
( |
| ) |
const |
|
protectedvirtual |
Returns the bounding rectangle of the graphics item.
Protected Functions.
- Returns
- The bounding rectangle of the graphics item.
Returns the bounding rectangle of the graphics item.
- Returns
- The bounding rectangle of the graphics item.
void Frapper::SegmentGraphicsItem::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionGraphicsItem * |
option, |
|
|
QWidget * |
widget |
|
) |
| |
|
protectedvirtual |
Paints the graphics item into a graphics view.
- Parameters
-
painter | The object to use for painting. |
option | Style options for painting the graphics item. |
widget | The widget into which to paint the graphics item. |
The key item where the curve segment starts.
The key item where the curve segment ends.
QColor Frapper::SegmentGraphicsItem::m_color |
|
private |
The color to use for painting the curve segment.
QPointF Frapper::SegmentGraphicsItem::m_startPoint |
|
private |
The start point to use for painting the curve segment.
QPointF Frapper::SegmentGraphicsItem::m_endPoint |
|
private |
The end point to use for painting the curve segment.
qreal Frapper::SegmentGraphicsItem::m_width |
|
private |
the width of the timeline
The documentation for this class was generated from the following files: