• Skip to content
  • Skip to link menu
KDE 4.5 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
Note: This is a reduced mirror of the KDE API documentation hosted by Michael Pyne.
 

Plasma

Plasma::RotationAnimation

Plasma::RotationAnimation Class Reference

2D rotation animation. More...

#include <rotation_p.h>

Inheritance diagram for Plasma::RotationAnimation:

Inheritance graph
[legend]

List of all members.


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 (  ) 

Destructor.

Definition at line 39 of file rotation.cpp.


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  ) 

Reimplemented from Plasma::Animation.

  • curve Easing curve

Reimplemented from Plasma::Animation.

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]

Implements Plasma::EasingAnimation.

Definition at line 155 of file rotation.cpp.

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:
  • rotation_p.h
  • rotation.cpp

Plasma

Skip menu "Plasma"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

Class Picker

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  •     Sodep
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.9
This website is maintained by Michael Pyne, and is a reduced mirror of the KDE API docs. KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal