Plasma
Plasma::RotationAnimation Class Reference
2D rotation animation. More...
#include <rotation_p.h>

Public Slots | |
| void | setAngle (const qreal &angle) |
| void | setAxis (const Qt::Axis &axis) |
| void | setReference (const qint8 &reference) |
Public Member Functions | |
| qreal | angle () const |
| Qt::Axis | axis () const |
| qint8 | reference () const |
| RotationAnimation (QObject *parent=0, qint8 reference=Center, Qt::Axis axis=Qt::ZAxis, qreal angle=180) | |
| void | setEasingCurve (const QEasingCurve &curve) |
| ~RotationAnimation () | |
Protected Member Functions | |
| void | updateEffectiveTime (int currentTime) |
| void | updateState (QAbstractAnimation::State newState, QAbstractAnimation::State oldState) |
Properties | |
| qreal | angle |
| Qt::Axis | axis |
| qint8 | reference |
Detailed Description
2D rotation animation.This animation rotates a QGraphicsWidget in a axis (reference and axis can be defined using properties). See also StackedRotationAnimation.
Definition at line 39 of file rotation_p.h.
Constructor & Destructor Documentation
| Plasma::RotationAnimation::RotationAnimation | ( | QObject * | parent = 0, |
|
| qint8 | reference = Center, |
|||
| Qt::Axis | axis = Qt::ZAxis, |
|||
| qreal | angle = 180 | |||
| ) | [explicit] |
Default constructor.
- Parameters:
-
parent Animation object parent. reference See Animation::Reference. axis Which axis to rotate (XAxis, YAxis, ZAxis). angle Rotation angle (0 to 360)
Definition at line 30 of file rotation.cpp.
| Plasma::RotationAnimation::~RotationAnimation | ( | ) |
Member Function Documentation
| qreal Plasma::RotationAnimation::angle | ( | ) | const |
Animation rotation angle (e.g.
45, 180, etc)
| Qt::Axis Plasma::RotationAnimation::axis | ( | ) | const |
get animation rotation axis (e.g.
YAxis, ZAxis, XAxis)
| qint8 Plasma::RotationAnimation::reference | ( | ) | const |
Rotation reference (e.g.
Center, Up, Down, Left, Right) can be combined (i.e. Center|Up)
| void Plasma::RotationAnimation::setAngle | ( | const qreal & | angle | ) | [slot] |
Set animation rotation angle (e.g.
45, 180, etc)
- angle The angle
Definition at line 68 of file rotation.cpp.
| void Plasma::RotationAnimation::setAxis | ( | const Qt::Axis & | axis | ) | [slot] |
set animation rotation axis
- axis Rotation (e.g. YAxis, ZAxis, XAxis)
Definition at line 48 of file rotation.cpp.
| void Plasma::RotationAnimation::setEasingCurve | ( | const QEasingCurve & | curve | ) |
| void Plasma::RotationAnimation::setReference | ( | const qint8 & | reference | ) | [slot] |
Set rotation reference (e.g.
Center, Up, Down, Left, Right) can be combined (i.e. Center|Up)
- reference The reference
Definition at line 58 of file rotation.cpp.
| void Plasma::RotationAnimation::updateEffectiveTime | ( | int | currentTime | ) | [protected, virtual] |
| void Plasma::RotationAnimation::updateState | ( | QAbstractAnimation::State | newState, | |
| QAbstractAnimation::State | oldState | |||
| ) | [protected] |
Definition at line 73 of file rotation.cpp.
Property Documentation
qreal Plasma::RotationAnimation::angle [read, write] |
Definition at line 45 of file rotation_p.h.
Qt::Axis Plasma::RotationAnimation::axis [read, write] |
Definition at line 43 of file rotation_p.h.
qint8 Plasma::RotationAnimation::reference [read, write] |
Definition at line 44 of file rotation_p.h.
The documentation for this class was generated from the following files:
KDE 4.5 API Reference