<class name="QGraphicsItemAnimation" doc="/**
&lt;p&gt;The &lt;a href=&quot;QGraphicsItemAnimation.html#QGraphicsItemAnimation(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsItemAnimation&lt;/tt&gt;&lt;/a&gt; class provides simple animation support for &lt;a href=&quot;QGraphicsItem.html&quot;&gt;&lt;tt&gt;QGraphicsItem&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QGraphicsItemAnimation.html#QGraphicsItemAnimation(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsItemAnimation&lt;/tt&gt;&lt;/a&gt; class animates a &lt;a href=&quot;QGraphicsItem.html&quot;&gt;&lt;tt&gt;QGraphicsItem&lt;/tt&gt;&lt;/a&gt;. You can schedule changes to the item's transformation matrix at specified steps. The &lt;a href=&quot;QGraphicsItemAnimation.html#QGraphicsItemAnimation(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsItemAnimation&lt;/tt&gt;&lt;/a&gt; class has a current step value. When this value changes the transformations scheduled at that step are performed. The current step of the animation is set with the &lt;tt&gt;setStep()&lt;/tt&gt; function.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QGraphicsItemAnimation.html#QGraphicsItemAnimation(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsItemAnimation&lt;/tt&gt;&lt;/a&gt; will do a simple linear interpolation between the nearest adjacent scheduled changes to calculate the matrix. For instance, if you set the position of an item at values 0.0 and 1.0, the animation will show the item moving in a straight line between these positions. The same is true for scaling and rotation.&lt;/p&gt;
&lt;p&gt;It is usual to use the class with a &lt;a href=&quot;%2E%2E/core/QTimeLine.html&quot;&gt;&lt;tt&gt;QTimeLine&lt;/tt&gt;&lt;/a&gt;. The timeline's valueChanged() signal is then connected to the &lt;tt&gt;setStep()&lt;/tt&gt; slot. For example, you can set up an item for rotation by calling &lt;tt&gt;setRotationAt()&lt;/tt&gt; for different step values. The animations timeline is set with the &lt;a href=&quot;QGraphicsItemAnimation.html#setTimeLine(com.trolltech.qt.core.QTimeLine)&quot;&gt;&lt;tt&gt;setTimeLine&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;
&lt;p&gt;An example animation with a timeline follows:&lt;/p&gt;
&lt;pre&gt;        QGraphicsItem *ball = new QGraphicsEllipseItem(0, 0, 20, 20);

        QTimeLine *timer = new QTimeLine(5000);
        timer-&amp;gt;setFrameRange(0, 100);

        QGraphicsItemAnimation *animation = new QGraphicsItemAnimation;
        animation-&amp;gt;setItem(ball);
        animation-&amp;gt;setTimeLine(timer);

        for (int i = 0; i &amp;lt; 200; ++i)
            animation-&amp;gt;setPosAt(i / 200.0, QPointF(i, i));

        QGraphicsScene *scene = new QGraphicsScene();
        scene-&amp;gt;setSceneRect(0, 0, 250, 250);
        scene-&amp;gt;addItem(ball);

        QGraphicsView *view = new QGraphicsView(scene);
        view-&amp;gt;show();

        timer-&amp;gt;start();&lt;/pre&gt;
&lt;p&gt;Note that steps lie between 0.0 and 1.0&amp;#x2e; It may be necessary to use setUpdateInterval(). The default update interval is 40 ms. A scheduled transformation cannot be removed when set, so scheduling several transformations of the same kind (e.g&amp;#x2e;, rotations) at the same step is not recommended.&lt;/p&gt;

@see &lt;a href=&quot;%2E%2E/core/QTimeLine.html&quot;&gt;&lt;tt&gt;QTimeLine&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/graphicsview.html&quot;&gt;The Graphics View Framework&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QGraphicsItemAnimation(com.trolltech.qt.core.QObject parent)" doc="/**
&lt;p&gt;Constructs an animation object with the given &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QGraphicsItemAnimation()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsItemAnimation.html#QGraphicsItemAnimation(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QGraphicsItemAnimation&lt;/tt&gt;&lt;/a&gt;(0). */"/>
    <method name="public final void clear()" doc="/**
&lt;p&gt;Clears the scheduled transformations used for the animation, but retains the item and timeline.&lt;/p&gt;
 */"/>
    <method name="public final double horizontalScaleAt(double step)" doc="/**
&lt;p&gt;Returns the horizontal scale for the item at the specified &lt;tt&gt;step&lt;/tt&gt; value.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsItemAnimation.html#setScaleAt(double, double, double)&quot;&gt;&lt;tt&gt;setScaleAt&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double horizontalShearAt(double step)" doc="/**
&lt;p&gt;Returns the horizontal shear for the item at the specified &lt;tt&gt;step&lt;/tt&gt; value.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsItemAnimation.html#setShearAt(double, double, double)&quot;&gt;&lt;tt&gt;setShearAt&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QGraphicsItemInterface item()" doc="/**
&lt;p&gt;Returns the item on which the animation object operates.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsItemAnimation.html#setItem(com.trolltech.qt.gui.QGraphicsItemInterface)&quot;&gt;&lt;tt&gt;setItem&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QMatrix matrixAt(double step)" doc="/**
&lt;p&gt;Returns the matrix used to transform the item at the specified &lt;tt&gt;step&lt;/tt&gt; value.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QPointF posAt(double step)" doc="/**
&lt;p&gt;Returns the position of the item at the given &lt;tt&gt;step&lt;/tt&gt; value.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsItemAnimation.html#setPosAt(double, com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;setPosAt&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.QPair&lt;java.lang.Double, com.trolltech.qt.core.QPointF&gt;&gt; posList()" doc="/**
&lt;p&gt;Returns all explicitly inserted positions.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsItemAnimation.html#posAt(double)&quot;&gt;&lt;tt&gt;posAt&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsItemAnimation.html#setPosAt(double, com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;setPosAt&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void reset()" doc="/**
&lt;p&gt;Resets the item to its starting position and transformation.&lt;/p&gt;
 */"/>
    <method name="public final double rotationAt(double step)" doc="/**
&lt;p&gt;Returns the angle at which the item is rotated at the specified &lt;tt&gt;step&lt;/tt&gt; value.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsItemAnimation.html#setRotationAt(double, double)&quot;&gt;&lt;tt&gt;setRotationAt&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.QPair&lt;java.lang.Double, java.lang.Double&gt;&gt; rotationList()" doc="/**
&lt;p&gt;Returns all explicitly inserted rotations.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsItemAnimation.html#rotationAt(double)&quot;&gt;&lt;tt&gt;rotationAt&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsItemAnimation.html#setRotationAt(double, double)&quot;&gt;&lt;tt&gt;setRotationAt&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.QPair&lt;java.lang.Double, com.trolltech.qt.core.QPointF&gt;&gt; scaleList()" doc="/**
&lt;p&gt;Returns all explicitly inserted scales.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsItemAnimation.html#verticalScaleAt(double)&quot;&gt;&lt;tt&gt;verticalScaleAt&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsItemAnimation.html#horizontalScaleAt(double)&quot;&gt;&lt;tt&gt;horizontalScaleAt&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsItemAnimation.html#setScaleAt(double, double, double)&quot;&gt;&lt;tt&gt;setScaleAt&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setItem(com.trolltech.qt.gui.QGraphicsItemInterface item)" doc="/**
&lt;p&gt;Sets the specified &lt;tt&gt;item&lt;/tt&gt; to be used in the animation.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsItemAnimation.html#item()&quot;&gt;&lt;tt&gt;item&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setPosAt(double step, com.trolltech.qt.core.QPointF pos)" doc="/**
&lt;p&gt;Sets the position of the item at the given &lt;tt&gt;step&lt;/tt&gt; value to the &lt;tt&gt;pos&lt;/tt&gt; specified.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsItemAnimation.html#posAt(double)&quot;&gt;&lt;tt&gt;posAt&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setRotationAt(double step, double angle)" doc="/**
&lt;p&gt;Sets the rotation of the item at the given &lt;tt&gt;step&lt;/tt&gt; value to the &lt;tt&gt;angle&lt;/tt&gt; specified.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsItemAnimation.html#rotationAt(double)&quot;&gt;&lt;tt&gt;rotationAt&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setScaleAt(double step, double sx, double sy)" doc="/**
&lt;p&gt;Sets the scale of the item at the given &lt;tt&gt;step&lt;/tt&gt; value using the horizontal and vertical scale factors specified by &lt;tt&gt;sx&lt;/tt&gt; and &lt;tt&gt;sy&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsItemAnimation.html#verticalScaleAt(double)&quot;&gt;&lt;tt&gt;verticalScaleAt&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsItemAnimation.html#horizontalScaleAt(double)&quot;&gt;&lt;tt&gt;horizontalScaleAt&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setShearAt(double step, double sh, double sv)" doc="/**
&lt;p&gt;Sets the shear of the item at the given &lt;tt&gt;step&lt;/tt&gt; value using the horizontal and vertical shear factors specified by &lt;tt&gt;sh&lt;/tt&gt; and &lt;tt&gt;sv&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsItemAnimation.html#verticalShearAt(double)&quot;&gt;&lt;tt&gt;verticalShearAt&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsItemAnimation.html#horizontalShearAt(double)&quot;&gt;&lt;tt&gt;horizontalShearAt&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setStep(double x)" doc="/**
&lt;p&gt;Sets the current &lt;tt&gt;x&lt;/tt&gt; value for the animation, causing the transformations scheduled at this step to be performed.&lt;/p&gt;
 */"/>
    <method name="public final void setTimeLine(com.trolltech.qt.core.QTimeLine timeLine)" doc="/**
&lt;p&gt;Sets the timeline object used to control the rate of animation to the &lt;tt&gt;timeLine&lt;/tt&gt; specified.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsItemAnimation.html#timeLine()&quot;&gt;&lt;tt&gt;timeLine&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setTranslationAt(double step, double dx, double dy)" doc="/**
&lt;p&gt;Sets the translation of the item at the given &lt;tt&gt;step&lt;/tt&gt; value using the horizontal and vertical coordinates specified by &lt;tt&gt;dx&lt;/tt&gt; and &lt;tt&gt;dy&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsItemAnimation.html#xTranslationAt(double)&quot;&gt;&lt;tt&gt;xTranslationAt&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsItemAnimation.html#yTranslationAt(double)&quot;&gt;&lt;tt&gt;yTranslationAt&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.QPair&lt;java.lang.Double, com.trolltech.qt.core.QPointF&gt;&gt; shearList()" doc="/**
&lt;p&gt;Returns all explicitly inserted shears.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsItemAnimation.html#verticalShearAt(double)&quot;&gt;&lt;tt&gt;verticalShearAt&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsItemAnimation.html#horizontalShearAt(double)&quot;&gt;&lt;tt&gt;horizontalShearAt&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsItemAnimation.html#setShearAt(double, double, double)&quot;&gt;&lt;tt&gt;setShearAt&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QTimeLine timeLine()" doc="/**
&lt;p&gt;Returns the timeline object used to control the rate at which the animation occurs.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsItemAnimation.html#setTimeLine(com.trolltech.qt.core.QTimeLine)&quot;&gt;&lt;tt&gt;setTimeLine&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.QPair&lt;java.lang.Double, com.trolltech.qt.core.QPointF&gt;&gt; translationList()" doc="/**
&lt;p&gt;Returns all explicitly inserted translations.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsItemAnimation.html#xTranslationAt(double)&quot;&gt;&lt;tt&gt;xTranslationAt&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsItemAnimation.html#yTranslationAt(double)&quot;&gt;&lt;tt&gt;yTranslationAt&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsItemAnimation.html#setTranslationAt(double, double, double)&quot;&gt;&lt;tt&gt;setTranslationAt&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double verticalScaleAt(double step)" doc="/**
&lt;p&gt;Returns the vertical scale for the item at the specified &lt;tt&gt;step&lt;/tt&gt; value.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsItemAnimation.html#setScaleAt(double, double, double)&quot;&gt;&lt;tt&gt;setScaleAt&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double verticalShearAt(double step)" doc="/**
&lt;p&gt;Returns the vertical shear for the item at the specified &lt;tt&gt;step&lt;/tt&gt; value.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsItemAnimation.html#setShearAt(double, double, double)&quot;&gt;&lt;tt&gt;setShearAt&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double xTranslationAt(double step)" doc="/**
&lt;p&gt;Returns the horizontal translation of the item at the specified &lt;tt&gt;step&lt;/tt&gt; value.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsItemAnimation.html#setTranslationAt(double, double, double)&quot;&gt;&lt;tt&gt;setTranslationAt&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double yTranslationAt(double step)" doc="/**
&lt;p&gt;Returns the vertical translation of the item at the specified &lt;tt&gt;step&lt;/tt&gt; value.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsItemAnimation.html#setTranslationAt(double, double, double)&quot;&gt;&lt;tt&gt;setTranslationAt&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void afterAnimationStep(double step)" doc="/**
&lt;p&gt;This method is meant to be overridden in subclasses that need to execute additional code after a new step has taken place. The animation &lt;tt&gt;step&lt;/tt&gt; is provided for use in cases where the action depends on its value.&lt;/p&gt;
 */"/>
    <method name="protected void beforeAnimationStep(double step)" doc="/**
&lt;p&gt;This method is meant to be overridden by subclassed that needs to execute additional code before a new step takes place. The animation &lt;tt&gt;step&lt;/tt&gt; is provided for use in cases where the action depends on its value.&lt;/p&gt;
 */"/>
</class>
