1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qgraphicsitemanimation.cpp -->
<title>Qt 4.8: QGraphicsItemAnimation Class Reference</title>
<link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
<div class="content">
<a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
</div>
<div class="breadcrumb toolblock">
<ul>
<li class="first"><a href="index.html">Home</a></li>
<!-- Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtgui.html">QtGui</a></li>
<li>QGraphicsItemAnimation</li>
</ul>
</div>
</div>
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#public-slots">Public Slots</a></li>
<li class="level1"><a href="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QGraphicsItemAnimation Class Reference</h1>
<!-- $$$QGraphicsItemAnimation-brief -->
<p>The QGraphicsItemAnimation class provides simple animation support for <a href="qgraphicsitem.html">QGraphicsItem</a>. <a href="#details">More...</a></p>
<!-- @@@QGraphicsItemAnimation -->
<pre class="cpp"> <span class="preprocessor">#include <QGraphicsItemAnimation></span></pre><p><b>This class is deprecated.</b></p>
<p><b>Inherits: </b><a href="qobject.html">QObject</a>.</p>
<p>This class was introduced in Qt 4.2.</p>
<ul>
<li><a href="qgraphicsitemanimation-members.html">List of all members, including inherited members</a></li>
<li><a href="qgraphicsitemanimation-obsolete.html">Obsolete members</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsitemanimation.html#QGraphicsItemAnimation">QGraphicsItemAnimation</a></b> ( QObject * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsitemanimation.html#dtor.QGraphicsItemAnimation">~QGraphicsItemAnimation</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsitemanimation.html#clear">clear</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsitemanimation.html#horizontalScaleAt">horizontalScaleAt</a></b> ( qreal <i>step</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsitemanimation.html#horizontalShearAt">horizontalShearAt</a></b> ( qreal <i>step</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGraphicsItem * </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsitemanimation.html#item">item</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QMatrix </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsitemanimation.html#matrixAt">matrixAt</a></b> ( qreal <i>step</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPointF </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsitemanimation.html#posAt">posAt</a></b> ( qreal <i>step</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList<QPair<qreal, QPointF> > </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsitemanimation.html#posList">posList</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsitemanimation.html#rotationAt">rotationAt</a></b> ( qreal <i>step</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList<QPair<qreal, qreal> > </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsitemanimation.html#rotationList">rotationList</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList<QPair<qreal, QPointF> > </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsitemanimation.html#scaleList">scaleList</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsitemanimation.html#setItem">setItem</a></b> ( QGraphicsItem * <i>item</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsitemanimation.html#setPosAt">setPosAt</a></b> ( qreal <i>step</i>, const QPointF & <i>point</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsitemanimation.html#setRotationAt">setRotationAt</a></b> ( qreal <i>step</i>, qreal <i>angle</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsitemanimation.html#setScaleAt">setScaleAt</a></b> ( qreal <i>step</i>, qreal <i>sx</i>, qreal <i>sy</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsitemanimation.html#setShearAt">setShearAt</a></b> ( qreal <i>step</i>, qreal <i>sh</i>, qreal <i>sv</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsitemanimation.html#setTimeLine">setTimeLine</a></b> ( QTimeLine * <i>timeLine</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsitemanimation.html#setTranslationAt">setTranslationAt</a></b> ( qreal <i>step</i>, qreal <i>dx</i>, qreal <i>dy</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList<QPair<qreal, QPointF> > </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsitemanimation.html#shearList">shearList</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QTimeLine * </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsitemanimation.html#timeLine">timeLine</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList<QPair<qreal, QPointF> > </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsitemanimation.html#translationList">translationList</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsitemanimation.html#verticalScaleAt">verticalScaleAt</a></b> ( qreal <i>step</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsitemanimation.html#verticalShearAt">verticalShearAt</a></b> ( qreal <i>step</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsitemanimation.html#xTranslationAt">xTranslationAt</a></b> ( qreal <i>step</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsitemanimation.html#yTranslationAt">yTranslationAt</a></b> ( qreal <i>step</i> ) const</td></tr>
</table>
<ul>
<li class="fn">29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
</ul>
<a name="public-slots"></a>
<h2>Public Slots</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsitemanimation.html#setStep">setStep</a></b> ( qreal <i>step</i> )</td></tr>
</table>
<ul>
<li class="fn">1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
</ul>
<a name="protected-functions"></a>
<h2>Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsitemanimation.html#afterAnimationStep">afterAnimationStep</a></b> ( qreal <i>step</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsitemanimation.html#beforeAnimationStep">beforeAnimationStep</a></b> ( qreal <i>step</i> )</td></tr>
</table>
<ul>
<li class="fn">8 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">1 property inherited from <a href="qobject.html#properties">QObject</a></li>
<li class="fn">1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
<li class="fn">7 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
</ul>
<a name="details"></a>
<!-- $$$QGraphicsItemAnimation-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QGraphicsItemAnimation class provides simple animation support for <a href="qgraphicsitem.html">QGraphicsItem</a>.</p>
<p>The QGraphicsItemAnimation class animates a <a href="qgraphicsitem.html">QGraphicsItem</a>. You can schedule changes to the item's transformation matrix at specified steps. The QGraphicsItemAnimation 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 <tt>setStep()</tt> function.</p>
<p>QGraphicsItemAnimation 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.</p>
<p>It is usual to use the class with a <a href="qtimeline.html">QTimeLine</a>. The timeline's <a href="qtimeline.html#valueChanged">valueChanged()</a> signal is then connected to the <tt>setStep()</tt> slot. For example, you can set up an item for rotation by calling <tt>setRotationAt()</tt> for different step values. The animations timeline is set with the <a href="qgraphicsitemanimation.html#setTimeLine">setTimeLine</a>() function.</p>
<p>An example animation with a timeline follows:</p>
<pre class="cpp"> <span class="type"><a href="qgraphicsitem.html">QGraphicsItem</a></span> <span class="operator">*</span>ball <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qgraphicsellipseitem.html">QGraphicsEllipseItem</a></span>(<span class="number">0</span><span class="operator">,</span> <span class="number">0</span><span class="operator">,</span> <span class="number">20</span><span class="operator">,</span> <span class="number">20</span>);
<span class="type"><a href="qtimeline.html">QTimeLine</a></span> <span class="operator">*</span>timer <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qtimeline.html">QTimeLine</a></span>(<span class="number">5000</span>);
timer<span class="operator">-</span><span class="operator">></span>setFrameRange(<span class="number">0</span><span class="operator">,</span> <span class="number">100</span>);
<span class="type">QGraphicsItemAnimation</span> <span class="operator">*</span>animation <span class="operator">=</span> <span class="keyword">new</span> <span class="type">QGraphicsItemAnimation</span>;
animation<span class="operator">-</span><span class="operator">></span>setItem(ball);
animation<span class="operator">-</span><span class="operator">></span>setTimeLine(timer);
<span class="keyword">for</span> (<span class="type">int</span> i <span class="operator">=</span> <span class="number">0</span>; i <span class="operator"><</span> <span class="number">200</span>; <span class="operator">+</span><span class="operator">+</span>i)
animation<span class="operator">-</span><span class="operator">></span>setPosAt(i <span class="operator">/</span> <span class="number">200.0</span><span class="operator">,</span> <span class="type"><a href="qpointf.html">QPointF</a></span>(i<span class="operator">,</span> i));
<span class="type"><a href="qgraphicsscene.html">QGraphicsScene</a></span> <span class="operator">*</span>scene <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qgraphicsscene.html">QGraphicsScene</a></span>();
scene<span class="operator">-</span><span class="operator">></span>setSceneRect(<span class="number">0</span><span class="operator">,</span> <span class="number">0</span><span class="operator">,</span> <span class="number">250</span><span class="operator">,</span> <span class="number">250</span>);
scene<span class="operator">-</span><span class="operator">></span>addItem(ball);
<span class="type"><a href="qgraphicsview.html">QGraphicsView</a></span> <span class="operator">*</span>view <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qgraphicsview.html">QGraphicsView</a></span>(scene);
view<span class="operator">-</span><span class="operator">></span>show();
timer<span class="operator">-</span><span class="operator">></span>start();</pre>
<p>Note that steps lie between 0.0 and 1.0. It may be necessary to use <a href="qtimeline.html#updateInterval-prop">setUpdateInterval()</a>. 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., rotations) at the same step is not recommended.</p>
</div>
<p><b>See also </b><a href="qtimeline.html">QTimeLine</a> and <a href="graphicsview.html">Graphics View Framework</a>.</p>
<!-- @@@QGraphicsItemAnimation -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QGraphicsItemAnimation[overload1]$$$QGraphicsItemAnimationQObject* -->
<h3 class="fn"><a name="QGraphicsItemAnimation"></a>QGraphicsItemAnimation::<span class="name">QGraphicsItemAnimation</span> ( <span class="type"><a href="qobject.html">QObject</a></span> * <i>parent</i> = 0 )</h3>
<p>Constructs an animation object with the given <i>parent</i>.</p>
<!-- @@@QGraphicsItemAnimation -->
<!-- $$$~QGraphicsItemAnimation[overload1]$$$~QGraphicsItemAnimation -->
<h3 class="fn"><a name="dtor.QGraphicsItemAnimation"></a>QGraphicsItemAnimation::<span class="name">~QGraphicsItemAnimation</span> ()<tt> [virtual]</tt></h3>
<p>Destroys the animation object.</p>
<!-- @@@~QGraphicsItemAnimation -->
<!-- $$$afterAnimationStep[overload1]$$$afterAnimationStepqreal -->
<h3 class="fn"><a name="afterAnimationStep"></a><span class="type">void</span> QGraphicsItemAnimation::<span class="name">afterAnimationStep</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>step</i> )<tt> [virtual protected]</tt></h3>
<p>This method is meant to be overridden in subclasses that need to execute additional code after a new step has taken place. The animation <i>step</i> is provided for use in cases where the action depends on its value.</p>
<!-- @@@afterAnimationStep -->
<!-- $$$beforeAnimationStep[overload1]$$$beforeAnimationStepqreal -->
<h3 class="fn"><a name="beforeAnimationStep"></a><span class="type">void</span> QGraphicsItemAnimation::<span class="name">beforeAnimationStep</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>step</i> )<tt> [virtual protected]</tt></h3>
<p>This method is meant to be overridden by subclassed that needs to execute additional code before a new step takes place. The animation <i>step</i> is provided for use in cases where the action depends on its value.</p>
<!-- @@@beforeAnimationStep -->
<!-- $$$clear[overload1]$$$clear -->
<h3 class="fn"><a name="clear"></a><span class="type">void</span> QGraphicsItemAnimation::<span class="name">clear</span> ()</h3>
<p>Clears the scheduled transformations used for the animation, but retains the item and timeline.</p>
<!-- @@@clear -->
<!-- $$$horizontalScaleAt[overload1]$$$horizontalScaleAtqreal -->
<h3 class="fn"><a name="horizontalScaleAt"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QGraphicsItemAnimation::<span class="name">horizontalScaleAt</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>step</i> ) const</h3>
<p>Returns the horizontal scale for the item at the specified <i>step</i> value.</p>
<p><b>See also </b><a href="qgraphicsitemanimation.html#setScaleAt">setScaleAt</a>().</p>
<!-- @@@horizontalScaleAt -->
<!-- $$$horizontalShearAt[overload1]$$$horizontalShearAtqreal -->
<h3 class="fn"><a name="horizontalShearAt"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QGraphicsItemAnimation::<span class="name">horizontalShearAt</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>step</i> ) const</h3>
<p>Returns the horizontal shear for the item at the specified <i>step</i> value.</p>
<p><b>See also </b><a href="qgraphicsitemanimation.html#setShearAt">setShearAt</a>().</p>
<!-- @@@horizontalShearAt -->
<!-- $$$item[overload1]$$$item -->
<h3 class="fn"><a name="item"></a><span class="type"><a href="qgraphicsitem.html">QGraphicsItem</a></span> * QGraphicsItemAnimation::<span class="name">item</span> () const</h3>
<p>Returns the item on which the animation object operates.</p>
<p><b>See also </b><a href="qgraphicsitemanimation.html#setItem">setItem</a>().</p>
<!-- @@@item -->
<!-- $$$matrixAt[overload1]$$$matrixAtqreal -->
<h3 class="fn"><a name="matrixAt"></a><span class="type"><a href="qmatrix.html">QMatrix</a></span> QGraphicsItemAnimation::<span class="name">matrixAt</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>step</i> ) const</h3>
<p>Returns the matrix used to transform the item at the specified <i>step</i> value.</p>
<!-- @@@matrixAt -->
<!-- $$$posAt[overload1]$$$posAtqreal -->
<h3 class="fn"><a name="posAt"></a><span class="type"><a href="qpointf.html">QPointF</a></span> QGraphicsItemAnimation::<span class="name">posAt</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>step</i> ) const</h3>
<p>Returns the position of the item at the given <i>step</i> value.</p>
<p><b>See also </b><a href="qgraphicsitemanimation.html#setPosAt">setPosAt</a>().</p>
<!-- @@@posAt -->
<!-- $$$posList[overload1]$$$posList -->
<h3 class="fn"><a name="posList"></a><span class="type"><a href="qlist.html">QList</a></span><<span class="type"><a href="qpair.html">QPair</a></span><<span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span>, <span class="type"><a href="qpointf.html">QPointF</a></span>> > QGraphicsItemAnimation::<span class="name">posList</span> () const</h3>
<p>Returns all explicitly inserted positions.</p>
<p><b>See also </b><a href="qgraphicsitemanimation.html#posAt">posAt</a>() and <a href="qgraphicsitemanimation.html#setPosAt">setPosAt</a>().</p>
<!-- @@@posList -->
<!-- $$$rotationAt[overload1]$$$rotationAtqreal -->
<h3 class="fn"><a name="rotationAt"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QGraphicsItemAnimation::<span class="name">rotationAt</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>step</i> ) const</h3>
<p>Returns the angle at which the item is rotated at the specified <i>step</i> value.</p>
<p><b>See also </b><a href="qgraphicsitemanimation.html#setRotationAt">setRotationAt</a>().</p>
<!-- @@@rotationAt -->
<!-- $$$rotationList[overload1]$$$rotationList -->
<h3 class="fn"><a name="rotationList"></a><span class="type"><a href="qlist.html">QList</a></span><<span class="type"><a href="qpair.html">QPair</a></span><<span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span>> > QGraphicsItemAnimation::<span class="name">rotationList</span> () const</h3>
<p>Returns all explicitly inserted rotations.</p>
<p><b>See also </b><a href="qgraphicsitemanimation.html#rotationAt">rotationAt</a>() and <a href="qgraphicsitemanimation.html#setRotationAt">setRotationAt</a>().</p>
<!-- @@@rotationList -->
<!-- $$$scaleList[overload1]$$$scaleList -->
<h3 class="fn"><a name="scaleList"></a><span class="type"><a href="qlist.html">QList</a></span><<span class="type"><a href="qpair.html">QPair</a></span><<span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span>, <span class="type"><a href="qpointf.html">QPointF</a></span>> > QGraphicsItemAnimation::<span class="name">scaleList</span> () const</h3>
<p>Returns all explicitly inserted scales.</p>
<p><b>See also </b><a href="qgraphicsitemanimation.html#verticalScaleAt">verticalScaleAt</a>(), <a href="qgraphicsitemanimation.html#horizontalScaleAt">horizontalScaleAt</a>(), and <a href="qgraphicsitemanimation.html#setScaleAt">setScaleAt</a>().</p>
<!-- @@@scaleList -->
<!-- $$$setItem[overload1]$$$setItemQGraphicsItem* -->
<h3 class="fn"><a name="setItem"></a><span class="type">void</span> QGraphicsItemAnimation::<span class="name">setItem</span> ( <span class="type"><a href="qgraphicsitem.html">QGraphicsItem</a></span> * <i>item</i> )</h3>
<p>Sets the specified <i>item</i> to be used in the animation.</p>
<p><b>See also </b><a href="qgraphicsitemanimation.html#item">item</a>().</p>
<!-- @@@setItem -->
<!-- $$$setPosAt[overload1]$$$setPosAtqrealconstQPointF& -->
<h3 class="fn"><a name="setPosAt"></a><span class="type">void</span> QGraphicsItemAnimation::<span class="name">setPosAt</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>step</i>, const <span class="type"><a href="qpointf.html">QPointF</a></span> & <i>point</i> )</h3>
<p>Sets the position of the item at the given <i>step</i> value to the <i>point</i> specified.</p>
<p><b>See also </b><a href="qgraphicsitemanimation.html#posAt">posAt</a>().</p>
<!-- @@@setPosAt -->
<!-- $$$setRotationAt[overload1]$$$setRotationAtqrealqreal -->
<h3 class="fn"><a name="setRotationAt"></a><span class="type">void</span> QGraphicsItemAnimation::<span class="name">setRotationAt</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>step</i>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>angle</i> )</h3>
<p>Sets the rotation of the item at the given <i>step</i> value to the <i>angle</i> specified.</p>
<p><b>See also </b><a href="qgraphicsitemanimation.html#rotationAt">rotationAt</a>().</p>
<!-- @@@setRotationAt -->
<!-- $$$setScaleAt[overload1]$$$setScaleAtqrealqrealqreal -->
<h3 class="fn"><a name="setScaleAt"></a><span class="type">void</span> QGraphicsItemAnimation::<span class="name">setScaleAt</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>step</i>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>sx</i>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>sy</i> )</h3>
<p>Sets the scale of the item at the given <i>step</i> value using the horizontal and vertical scale factors specified by <i>sx</i> and <i>sy</i>.</p>
<p><b>See also </b><a href="qgraphicsitemanimation.html#verticalScaleAt">verticalScaleAt</a>() and <a href="qgraphicsitemanimation.html#horizontalScaleAt">horizontalScaleAt</a>().</p>
<!-- @@@setScaleAt -->
<!-- $$$setShearAt[overload1]$$$setShearAtqrealqrealqreal -->
<h3 class="fn"><a name="setShearAt"></a><span class="type">void</span> QGraphicsItemAnimation::<span class="name">setShearAt</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>step</i>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>sh</i>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>sv</i> )</h3>
<p>Sets the shear of the item at the given <i>step</i> value using the horizontal and vertical shear factors specified by <i>sh</i> and <i>sv</i>.</p>
<p><b>See also </b><a href="qgraphicsitemanimation.html#verticalShearAt">verticalShearAt</a>() and <a href="qgraphicsitemanimation.html#horizontalShearAt">horizontalShearAt</a>().</p>
<!-- @@@setShearAt -->
<!-- $$$setStep[overload1]$$$setStepqreal -->
<h3 class="fn"><a name="setStep"></a><span class="type">void</span> QGraphicsItemAnimation::<span class="name">setStep</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>step</i> )<tt> [slot]</tt></h3>
<p>Sets the current <i>step</i> value for the animation, causing the transformations scheduled at this step to be performed.</p>
<!-- @@@setStep -->
<!-- $$$setTimeLine[overload1]$$$setTimeLineQTimeLine* -->
<h3 class="fn"><a name="setTimeLine"></a><span class="type">void</span> QGraphicsItemAnimation::<span class="name">setTimeLine</span> ( <span class="type"><a href="qtimeline.html">QTimeLine</a></span> * <i>timeLine</i> )</h3>
<p>Sets the timeline object used to control the rate of animation to the <i>timeLine</i> specified.</p>
<p><b>See also </b><a href="qgraphicsitemanimation.html#timeLine">timeLine</a>().</p>
<!-- @@@setTimeLine -->
<!-- $$$setTranslationAt[overload1]$$$setTranslationAtqrealqrealqreal -->
<h3 class="fn"><a name="setTranslationAt"></a><span class="type">void</span> QGraphicsItemAnimation::<span class="name">setTranslationAt</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>step</i>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>dx</i>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>dy</i> )</h3>
<p>Sets the translation of the item at the given <i>step</i> value using the horizontal and vertical coordinates specified by <i>dx</i> and <i>dy</i>.</p>
<p><b>See also </b><a href="qgraphicsitemanimation.html#xTranslationAt">xTranslationAt</a>() and <a href="qgraphicsitemanimation.html#yTranslationAt">yTranslationAt</a>().</p>
<!-- @@@setTranslationAt -->
<!-- $$$shearList[overload1]$$$shearList -->
<h3 class="fn"><a name="shearList"></a><span class="type"><a href="qlist.html">QList</a></span><<span class="type"><a href="qpair.html">QPair</a></span><<span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span>, <span class="type"><a href="qpointf.html">QPointF</a></span>> > QGraphicsItemAnimation::<span class="name">shearList</span> () const</h3>
<p>Returns all explicitly inserted shears.</p>
<p><b>See also </b><a href="qgraphicsitemanimation.html#verticalShearAt">verticalShearAt</a>(), <a href="qgraphicsitemanimation.html#horizontalShearAt">horizontalShearAt</a>(), and <a href="qgraphicsitemanimation.html#setShearAt">setShearAt</a>().</p>
<!-- @@@shearList -->
<!-- $$$timeLine[overload1]$$$timeLine -->
<h3 class="fn"><a name="timeLine"></a><span class="type"><a href="qtimeline.html">QTimeLine</a></span> * QGraphicsItemAnimation::<span class="name">timeLine</span> () const</h3>
<p>Returns the timeline object used to control the rate at which the animation occurs.</p>
<p><b>See also </b><a href="qgraphicsitemanimation.html#setTimeLine">setTimeLine</a>().</p>
<!-- @@@timeLine -->
<!-- $$$translationList[overload1]$$$translationList -->
<h3 class="fn"><a name="translationList"></a><span class="type"><a href="qlist.html">QList</a></span><<span class="type"><a href="qpair.html">QPair</a></span><<span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span>, <span class="type"><a href="qpointf.html">QPointF</a></span>> > QGraphicsItemAnimation::<span class="name">translationList</span> () const</h3>
<p>Returns all explicitly inserted translations.</p>
<p><b>See also </b><a href="qgraphicsitemanimation.html#xTranslationAt">xTranslationAt</a>(), <a href="qgraphicsitemanimation.html#yTranslationAt">yTranslationAt</a>(), and <a href="qgraphicsitemanimation.html#setTranslationAt">setTranslationAt</a>().</p>
<!-- @@@translationList -->
<!-- $$$verticalScaleAt[overload1]$$$verticalScaleAtqreal -->
<h3 class="fn"><a name="verticalScaleAt"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QGraphicsItemAnimation::<span class="name">verticalScaleAt</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>step</i> ) const</h3>
<p>Returns the vertical scale for the item at the specified <i>step</i> value.</p>
<p><b>See also </b><a href="qgraphicsitemanimation.html#setScaleAt">setScaleAt</a>().</p>
<!-- @@@verticalScaleAt -->
<!-- $$$verticalShearAt[overload1]$$$verticalShearAtqreal -->
<h3 class="fn"><a name="verticalShearAt"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QGraphicsItemAnimation::<span class="name">verticalShearAt</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>step</i> ) const</h3>
<p>Returns the vertical shear for the item at the specified <i>step</i> value.</p>
<p><b>See also </b><a href="qgraphicsitemanimation.html#setShearAt">setShearAt</a>().</p>
<!-- @@@verticalShearAt -->
<!-- $$$xTranslationAt[overload1]$$$xTranslationAtqreal -->
<h3 class="fn"><a name="xTranslationAt"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QGraphicsItemAnimation::<span class="name">xTranslationAt</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>step</i> ) const</h3>
<p>Returns the horizontal translation of the item at the specified <i>step</i> value.</p>
<p><b>See also </b><a href="qgraphicsitemanimation.html#setTranslationAt">setTranslationAt</a>().</p>
<!-- @@@xTranslationAt -->
<!-- $$$yTranslationAt[overload1]$$$yTranslationAtqreal -->
<h3 class="fn"><a name="yTranslationAt"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QGraphicsItemAnimation::<span class="name">yTranslationAt</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>step</i> ) const</h3>
<p>Returns the vertical translation of the item at the specified <i>step</i> value.</p>
<p><b>See also </b><a href="qgraphicsitemanimation.html#setTranslationAt">setTranslationAt</a>().</p>
<!-- @@@yTranslationAt -->
</div>
<div class="ft">
<span></span>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2012 Nokia Corporation and/or its
subsidiaries. Documentation contributions included herein are the copyrights of
their respective owners.</p>
<br />
<p>
The documentation provided herein is licensed under the terms of the
<a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
License version 1.3</a> as published by the Free Software Foundation.</p>
<p>
Documentation sources may be obtained from <a href="http://www.qt-project.org">
www.qt-project.org</a>.</p>
<br />
<p>
Nokia, Qt and their respective logos are trademarks of Nokia Corporation
in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. <a title="Privacy Policy"
href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
</div>
</body>
</html>
|