Public Slots | |
void | frameChanged (int) |
Recompute our position and visibility for the given frame and redraw. | |
Signals | |
void | animationChanged () |
Public Member Functions | |
AnnotationObjectVertex (AnnotationObject *parent, int frameNum, FrameRange frameRange, QPointF initialPos) | |
Create a new vertex to be a part of a parent Annotation Object. | |
QRectF | boundingRect () const |
Get the bounding rectangle of this vertex. | |
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
Paint this vertex on the screen. | |
ObjectAnimation * | getAnimation () |
ObjectAnimation::FrameState | getFrameState (int fnum) |
void | makeOpaque () |
void | makeTransparent () |
void | setKeyframe (int frameNum, QPointF pos, bool visible) |
Set a new keyframe. | |
void | clearAnimation () |
Clear all keypoints from the animation. | |
Protected Member Functions | |
QVariant | itemChange (GraphicsItemChange change, const QVariant &value) |
Overloaded to redraw the parent whenever the vertex is moved. | |
void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) |
Highlight this vertex when the mouse moves over. | |
void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) |
Dehighlight this vertex when the mouse leaves. | |
void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
Select the object when the user clicks on it. |
Definition at line 13 of file AnnotationObject.qt.H.
AnnotationObjectVertex::AnnotationObjectVertex | ( | AnnotationObject * | parent, | |
int | frameNum, | |||
FrameRange | frameRange, | |||
QPointF | initialPos | |||
) |
Create a new vertex to be a part of a parent Annotation Object.
Definition at line 21 of file AnnotationObject.qt.C.
References AnnotationObject::getColor().
QRectF AnnotationObjectVertex::boundingRect | ( | ) | const |
Get the bounding rectangle of this vertex.
Definition at line 75 of file AnnotationObject.qt.C.
void AnnotationObjectVertex::clearAnimation | ( | ) |
Clear all keypoints from the animation.
Definition at line 192 of file AnnotationObject.qt.C.
References ObjectAnimation::clear().
Referenced by AnnotationObject::setVertices().
void AnnotationObjectVertex::frameChanged | ( | int | frameNum | ) | [slot] |
Recompute our position and visibility for the given frame and redraw.
Definition at line 176 of file AnnotationObject.qt.C.
References ObjectAnimation::getFrameState().
void AnnotationObjectVertex::hoverEnterEvent | ( | QGraphicsSceneHoverEvent * | event | ) | [protected] |
Highlight this vertex when the mouse moves over.
Definition at line 112 of file AnnotationObject.qt.C.
void AnnotationObjectVertex::hoverLeaveEvent | ( | QGraphicsSceneHoverEvent * | event | ) | [protected] |
Dehighlight this vertex when the mouse leaves.
Definition at line 134 of file AnnotationObject.qt.C.
QVariant AnnotationObjectVertex::itemChange | ( | GraphicsItemChange | change, | |
const QVariant & | value | |||
) | [protected] |
Overloaded to redraw the parent whenever the vertex is moved.
Definition at line 101 of file AnnotationObject.qt.C.
void AnnotationObjectVertex::mousePressEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [protected] |
Select the object when the user clicks on it.
Definition at line 167 of file AnnotationObject.qt.C.
References AnnotationObject::selectVertex().
void AnnotationObjectVertex::mouseReleaseEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [protected] |
Create a new keyframe with the new position of the object when moved by the mouse and select this object
Definition at line 149 of file AnnotationObject.qt.C.
References ObjectAnimation::getFrameState(), AnnotationObject::pubPrepareGeometryChange(), and ObjectAnimation::setPosition().
void AnnotationObjectVertex::paint | ( | QPainter * | painter, | |
const QStyleOptionGraphicsItem * | option, | |||
QWidget * | widget | |||
) |
Paint this vertex on the screen.
Definition at line 88 of file AnnotationObject.qt.C.
void AnnotationObjectVertex::setKeyframe | ( | int | frameNum, | |
QPointF | pos, | |||
bool | visible | |||
) |
Set a new keyframe.
Definition at line 128 of file AnnotationObject.qt.C.
References ObjectAnimation::setPosition().