Home · All Classes · Modules

QGraphicsItemAnimation Class Reference
[QtGui module]

The QGraphicsItemAnimation class provides simple animation support for QGraphicsItem. More...

Inherits QObject.

Methods

Qt Signals


Detailed Description

The QGraphicsItemAnimation class provides simple animation support for QGraphicsItem.


Method Documentation

QGraphicsItemAnimation.__init__ (self, QObject parent = None)

The parent argument, if not None, causes self to be owned by Qt instead of PyQt.

Constructs an animation object with the given parent.

QGraphicsItemAnimation.clear (self)

Clears the lists of points and transformations used for the animation, but retains the item and time line.

float QGraphicsItemAnimation.horizontalScaleAt (self, float step)

Returns the horizontal scale for the item at the specified step value.

See also setScaleAt().

float QGraphicsItemAnimation.horizontalShearAt (self, float step)

Returns the horizontal shear for the item at the specified step value.

See also setShearAt().

QGraphicsItem QGraphicsItemAnimation.item (self)

Returns the item operated on by the animation object.

See also setItem().

QMatrix QGraphicsItemAnimation.matrixAt (self, float step)

Returns the matrix used to transform the item at the specified step value.

QPointF QGraphicsItemAnimation.posAt (self, float step)

Returns the point corresponding to the given step value.

See also setPosAt().

QGraphicsItemAnimation.reset (self)

This method is also a Qt slot with the C++ signature void reset().

Resets the item to its starting position and transformation.

float QGraphicsItemAnimation.rotationAt (self, float step)

Returns the angle at which the item is rotated at the specified step value.

See also setRotationAt().

QGraphicsItemAnimation.setItem (self, QGraphicsItem item)

Sets the specified item to be used in the animation.

See also item().

QGraphicsItemAnimation.setPosAt (self, float step, QPointF pos)

Sets the position of the item at the given step value to the point specified.

See also posAt().

QGraphicsItemAnimation.setRotationAt (self, float step, float angle)

Sets the rotation of the item at the given step value to the angle specified.

See also rotationAt().

QGraphicsItemAnimation.setScaleAt (self, float step, float sx, float sy)

Sets the scale of the item at the given step value using the horizontal and vertical scale factors specified by sx and sy.

See also verticalScaleAt() and horizontalScaleAt().

QGraphicsItemAnimation.setShearAt (self, float step, float sh, float sv)

Sets the shear of the item at the given step value using the horizontal and vertical shear factors specified by sh and sv.

See also verticalShearAt() and horizontalShearAt().

QGraphicsItemAnimation.setStep (self, float x)

This method is also a Qt slot with the C++ signature void setStep(double).

Sets the current step value for the animation, causing the item to be transformed according to the specified parameter and the transformations previously set up for the animation.

QGraphicsItemAnimation.setTimeLine (self, QTimeLine timeLine)

Sets the time line object used to control the rate of animation to the timeLine specified.

See also timeLine().

QGraphicsItemAnimation.setTranslationAt (self, float step, float dx, float dy)

Sets the translation of the item at the given step value using the horizontal and vertical coordinates specified by dx and dy.

See also xTranslationAt() and yTranslationAt().

QTimeLine QGraphicsItemAnimation.timeLine (self)

Returns the time line object used to control the rate at which the animation occurs.

See also setTimeLine().

float QGraphicsItemAnimation.verticalScaleAt (self, float step)

Returns the vertical scale for the item at the specified step value.

See also setScaleAt().

float QGraphicsItemAnimation.verticalShearAt (self, float step)

Returns the vertical shear for the item at the specified step value.

See also setShearAt().

float QGraphicsItemAnimation.xTranslationAt (self, float step)

Returns the horizontal translation of the item at the specified step value.

See also setTranslationAt().

float QGraphicsItemAnimation.yTranslationAt (self, float step)

Returns the vertical translation of the item at the specified step value.

See also setTranslationAt().


Qt Signal Documentation

void afterAnimationStep (double)

This method is meant to be overridden by subclassed that needs to execute additional code after a new step has taken place.

void beforeAnimationStep (double)

This method is meant to be overridden by subclassed that needs to execute additional code before a new step takes place.


PyQt 4.1 for X11Copyright © Riverbank Computing Ltd and Trolltech AS 2006Qt 4.2.1