<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qabstractanimation.cpp --> <title>QAbstractAnimation Class | Qt 3D 5.11</title> <link rel="stylesheet" type="text/css" href="style/offline-simple.css" /> <script type="text/javascript"> document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css"); // loading style sheet breaks anchors that were jumped to before // so force jumping to anchor again setTimeout(function() { var anchor = location.hash; // need to jump to different anchor first (e.g. none) location.hash = "#"; setTimeout(function() { location.hash = anchor; }, 0); }, 0); </script> </head> <body> <div class="header" id="qtdocheader"> <div class="main"> <div class="main-rounded"> <div class="navigationbar"> <table><tr> <td ><a href="../qtdoc/index.html">Qt 5.11</a></td><td ><a href="qt3d-index.html">Qt 3D</a></td><td ><a href="qt3d-cpp.html">C++ Classes</a></td><td >QAbstractAnimation</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right">Qt 5.11.2 Reference Documentation</td> </tr></table> </div> </div> <div class="content"> <div class="line"> <div class="content mainContent"> <div class="sidebar"> <div class="toc"> <h3><a name="toc">Contents</a></h3> <ul> <li class="level1"><a href="#public-types">Public Types</a></li> <li class="level1"><a href="#properties">Properties</a></li> <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="#signals">Signals</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> <div class="sidebar-content" id="sidebar-content"></div></div> <h1 class="title">QAbstractAnimation Class</h1> <span class="small-subtitle">(<a href="qt3danimation-qabstractanimation.html">Qt3DAnimation::QAbstractAnimation</a>)<br/></span> <!-- $$$QAbstractAnimation-brief --> <p>An abstract base class for Qt3D animations. <a href="#details">More...</a></p> <!-- @@@QAbstractAnimation --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <QAbstractAnimation></span> </td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += 3danimation</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> Qt 5.9</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Instantiated By:</td><td class="memItemRight bottomAlign"> <a href="qml-qt3d-animation-abstractanimation.html">AbstractAnimation</a></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="../qtcore/qobject.html">QObject</a></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherited By:</td><td class="memItemRight bottomAlign"> <p><a href="qt3danimation-qkeyframeanimation.html">Qt3DAnimation::QKeyframeAnimation</a>, <a href="qt3danimation-qmorphinganimation.html">Qt3DAnimation::QMorphingAnimation</a>, and <a href="qt3danimation-qvertexblendanimation.html">Qt3DAnimation::QVertexBlendAnimation</a></p> </td></tr></table></div><ul> <li><a href="qt3danimation-qabstractanimation-members.html">List of all members, including inherited members</a></li> </ul> <a name="public-types"></a> <h2 id="public-types">Public Types</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qt3danimation-qabstractanimation.html#AnimationType-enum">AnimationType</a></b> { KeyframeAnimation, MorphingAnimation, VertexBlendAnimation }</td></tr> </table></div> <a name="properties"></a> <h2 id="properties">Properties</h2> <ul> <li class="fn"><b><a href="qt3danimation-qabstractanimation.html#animationName-prop">animationName</a></b> : QString</li> <li class="fn"><b><a href="qt3danimation-qabstractanimation.html#animationType-prop">animationType</a></b> : const AnimationType</li> <li class="fn"><b><a href="qt3danimation-qabstractanimation.html#duration-prop">duration</a></b> : const float</li> <li class="fn"><b><a href="qt3danimation-qabstractanimation.html#position-prop">position</a></b> : float</li> </ul> <ul> <li class="fn">1 property inherited from <a href="../qtcore/qobject.html#properties">QObject</a></li> </ul> <a name="public-functions"></a> <h2 id="public-functions">Public Functions</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qt3danimation-qabstractanimation.html#animationName-prop">animationName</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QAbstractAnimation::AnimationType </td><td class="memItemRight bottomAlign"><b><a href="qt3danimation-qabstractanimation.html#animationType-prop">animationType</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> float </td><td class="memItemRight bottomAlign"><b><a href="qt3danimation-qabstractanimation.html#duration-prop">duration</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> float </td><td class="memItemRight bottomAlign"><b><a href="qt3danimation-qabstractanimation.html#position-prop">position</a></b>() const</td></tr> </table></div> <ul> <li class="fn">34 public functions inherited from <a href="../qtcore/qobject.html#public-functions">QObject</a></li> </ul> <a name="public-slots"></a> <h2 id="public-slots">Public Slots</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3danimation-qabstractanimation.html#animationName-prop">setAnimationName</a></b>(const QString &<i>name</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3danimation-qabstractanimation.html#position-prop">setPosition</a></b>(float <i>position</i>)</td></tr> </table></div> <ul> <li class="fn">1 public slot inherited from <a href="../qtcore/qobject.html#public-slots">QObject</a></li> </ul> <a name="signals"></a> <h2 id="signals">Signals</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3danimation-qabstractanimation.html#animationName-prop">animationNameChanged</a></b>(const QString &<i>name</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3danimation-qabstractanimation.html#duration-prop">durationChanged</a></b>(float <i>duration</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3danimation-qabstractanimation.html#position-prop">positionChanged</a></b>(float <i>position</i>)</td></tr> </table></div> <ul> <li class="fn">2 signals inherited from <a href="../qtcore/qobject.html#signals">QObject</a></li> </ul> <a name="protected-functions"></a> <h2 id="protected-functions">Protected Functions</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qt3danimation-qabstractanimation.html#QAbstractAnimation">QAbstractAnimation</a></b>(Qt3DAnimation::QAbstractAnimationPrivate &<i>dd</i>, QObject *<i>parent</i> = nullptr)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3danimation-qabstractanimation.html#setDuration">setDuration</a></b>(float <i>duration</i>)</td></tr> </table></div> <ul> <li class="fn">9 protected functions inherited from <a href="../qtcore/qobject.html#protected-functions">QObject</a></li> </ul> <h3>Additional Inherited Members</h3> <ul> <li class="fn">1 public variable inherited from <a href="../qtcore/qobject.html#public-variables">QObject</a></li> <li class="fn">10 static public members inherited from <a href="../qtcore/qobject.html#static-public-members">QObject</a></li> <li class="fn">2 protected variables inherited from <a href="../qtcore/qobject.html#protected-variables">QObject</a></li> </ul> <a name="details"></a> <!-- $$$QAbstractAnimation-description --> <div class="descr"> <h2 id="details">Detailed Description</h2> <p>An abstract base class for Qt3D animations.</p> <p><a href="qt3danimation-qabstractanimation.html">Qt3DAnimation::QAbstractAnimation</a> is an abstract base class for all animations. <a href="qt3danimation-qabstractanimation.html">Qt3DAnimation::QAbstractAnimation</a> can not be directly instantiated, but rather through its subclasses. <a href="qt3danimation-qabstractanimation.html">QAbstractAnimation</a> specifies common properties for all Qt3D animations, such as animation name and type, current position and animation duration, while leaving the actual animating for the subclasses.</p> </div> <!-- @@@QAbstractAnimation --> <div class="types"> <h2>Member Type Documentation</h2> <!-- $$$AnimationType$$$KeyframeAnimation$$$MorphingAnimation$$$VertexBlendAnimation --> <h3 class="fn" id="AnimationType-enum"><a name="AnimationType-enum"></a>enum QAbstractAnimation::<span class="name">AnimationType</span></h3> <p>This enumeration specifies the type of the animation</p> <div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr> <tr><td class="topAlign"><code>Qt3DAnimation::QAbstractAnimation::KeyframeAnimation</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">Simple keyframe animation implementation for <a href="../qtgui/qtransform.html">QTransform</a></td></tr> <tr><td class="topAlign"><code>Qt3DAnimation::QAbstractAnimation::MorphingAnimation</code></td><td class="topAlign tblval"><code>2</code></td><td class="topAlign">Blend-shape morphing animation</td></tr> <tr><td class="topAlign"><code>Qt3DAnimation::QAbstractAnimation::VertexBlendAnimation</code></td><td class="topAlign tblval"><code>3</code></td><td class="topAlign">Vertex-blend animation</td></tr> </table></div> <!-- @@@AnimationType --> </div> <div class="prop"> <h2>Property Documentation</h2> <!-- $$$animationName-prop$$$animationName$$$setAnimationNameconstQString&$$$animationNameChangedconstQString& --> <h3 class="fn" id="animationName-prop"><a name="animationName-prop"></a><span class="name">animationName</span> : <span class="type"><a href="../qtcore/qstring.html">QString</a></span></h3> <p>Holds the name of the animation.</p> <p><b>Access functions:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>animationName</b></span>() const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAnimationName</b></span>(const QString &<i>name</i>)</td></tr> </table></div> <p><b>Notifier signal:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>animationNameChanged</b></span>(const QString &<i>name</i>)</td></tr> </table></div> <!-- @@@animationName --> <!-- $$$animationType-prop$$$animationType --> <h3 class="fn" id="animationType-prop"><a name="animationType-prop"></a><span class="name">animationType</span> : const <span class="type"><a href="qt3danimation-qabstractanimation.html#AnimationType-enum">AnimationType</a></span></h3> <p>Holds the type of the animation.</p> <p><b>Access functions:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> QAbstractAnimation::AnimationType </td><td class="memItemRight bottomAlign"><span class="name"><b>animationType</b></span>() const</td></tr> </table></div> <!-- @@@animationType --> <!-- $$$duration-prop$$$duration$$$durationChangedfloat --> <h3 class="fn" id="duration-prop"><a name="duration-prop"></a><span class="name">duration</span> : const <span class="type">float</span></h3> <p>Holds the duration of the animation.</p> <p><b>Access functions:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>duration</b></span>() const</td></tr> </table></div> <p><b>Notifier signal:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>durationChanged</b></span>(float <i>duration</i>)</td></tr> </table></div> <!-- @@@duration --> <!-- $$$position-prop$$$position$$$setPositionfloat$$$positionChangedfloat --> <h3 class="fn" id="position-prop"><a name="position-prop"></a><span class="name">position</span> : <span class="type">float</span></h3> <p>Holds the current position of the animation.</p> <p><b>Access functions:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> float </td><td class="memItemRight bottomAlign"><span class="name"><b>position</b></span>() const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setPosition</b></span>(float <i>position</i>)</td></tr> </table></div> <p><b>Notifier signal:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>positionChanged</b></span>(float <i>position</i>)</td></tr> </table></div> <!-- @@@position --> </div> <div class="func"> <h2>Member Function Documentation</h2> <!-- $$$QAbstractAnimation[overload1]$$$QAbstractAnimationQt3DAnimation::QAbstractAnimationPrivate&QObject* --> <h3 class="fn" id="QAbstractAnimation"><a name="QAbstractAnimation"></a><code>[protected] </code>QAbstractAnimation::<span class="name">QAbstractAnimation</span>(<span class="type">Qt3DAnimation::QAbstractAnimationPrivate</span> &<i>dd</i>, <span class="type"><a href="../qtcore/qobject.html#QObject">QObject</a></span> *<i>parent</i> = nullptr)</h3> <p>Default constructs an instance of QAbstractAnimation.</p><!-- @@@QAbstractAnimation --> <!-- $$$setDuration[overload1]$$$setDurationfloat --> <h3 class="fn" id="setDuration"><a name="setDuration"></a><code>[protected] </code><span class="type">void</span> QAbstractAnimation::<span class="name">setDuration</span>(<span class="type">float</span> <i>duration</i>)</h3> <p>Sets the <i>duration</i> of the animation.</p> <p><b>See also </b><a href="qt3danimation-qabstractanimation.html#duration-prop">duration</a>().</p> <!-- @@@setDuration --> </div> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.<br/> 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.<br/> Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. </p> </div> </body> </html>