<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qlerpclipblend.cpp --> <title>QLerpClipBlend Class | Qt 3D 5.9</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 >Qt 5.9</td><td ><a href="qt3d-index.html">Qt 3D</a></td><td ><a href="qt3d-cpp.html">C++ Classes</a></td><td >QLerpClipBlend</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right">Qt 5.9.4 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="#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">QLerpClipBlend Class</h1> <span class="small-subtitle">(<a href="qt3danimation-qlerpclipblend.html">Qt3DAnimation::QLerpClipBlend</a>)<br/></span> <!-- $$$QLerpClipBlend-brief --> <p>Performs a linear interpolation of two animation clips based on a normalized factor <a href="#details">More...</a></p> <!-- @@@QLerpClipBlend --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <QLerpClipBlend></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-lerpblend.html">LerpBlend</a></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qt3danimation-qabstractclipblendnode.html">Qt3DAnimation::QAbstractClipBlendNode</a></td></tr></table></div><ul> <li><a href="qt3danimation-qlerpclipblend-members.html">List of all members, including inherited members</a></li> </ul> <a name="properties"></a> <h2 id="properties">Properties</h2> <ul> <li class="fn"><b><a href="qt3danimation-qlerpclipblend.html#blendFactor-prop">blendFactor</a></b> : float</li> <li class="fn"><b><a href="qt3danimation-qlerpclipblend.html#endClip-prop">endClip</a></b> : Qt3DAnimation::QAbstractClipBlendNode *</li> <li class="fn"><b><a href="qt3danimation-qlerpclipblend.html#startClip-prop">startClip</a></b> : Qt3DAnimation::QAbstractClipBlendNode *</li> </ul> <ul> <li class="fn">3 properties inherited from <a href="qt3dcore-qnode.html#properties">Qt3DCore::QNode</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"> </td><td class="memItemRight bottomAlign"><b><a href="qt3danimation-qlerpclipblend.html#QLerpClipBlend">QLerpClipBlend</a></b>(Qt3DCore::QNode *<i>parent</i> = nullptr)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qt3danimation-qlerpclipblend.html#dtor.QLerpClipBlend">~QLerpClipBlend</a></b>()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> float </td><td class="memItemRight bottomAlign"><b><a href="qt3danimation-qlerpclipblend.html#blendFactor-prop">blendFactor</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> Qt3DAnimation::QAbstractClipBlendNode *</td><td class="memItemRight bottomAlign"><b><a href="qt3danimation-qlerpclipblend.html#endClip-prop">endClip</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> Qt3DAnimation::QAbstractClipBlendNode *</td><td class="memItemRight bottomAlign"><b><a href="qt3danimation-qlerpclipblend.html#startClip-prop">startClip</a></b>() const</td></tr> </table></div> <ul> <li class="fn">11 public functions inherited from <a href="qt3dcore-qnode.html#public-functions">Qt3DCore::QNode</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-qlerpclipblend.html#blendFactor-prop">setBlendFactor</a></b>(float <i>blendFactor</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3danimation-qlerpclipblend.html#endClip-prop">setEndClip</a></b>(Qt3DAnimation::QAbstractClipBlendNode *<i>endClip</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3danimation-qlerpclipblend.html#startClip-prop">setStartClip</a></b>(Qt3DAnimation::QAbstractClipBlendNode *<i>startClip</i>)</td></tr> </table></div> <ul> <li class="fn">3 public slots inherited from <a href="qt3dcore-qnode.html#public-slots">Qt3DCore::QNode</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-qlerpclipblend.html#blendFactor-prop">blendFactorChanged</a></b>(float <i>blendFactor</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3danimation-qlerpclipblend.html#endClip-prop">endClipChanged</a></b>(Qt3DAnimation::QAbstractClipBlendNode *<i>endClip</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3danimation-qlerpclipblend.html#startClip-prop">startClipChanged</a></b>(Qt3DAnimation::QAbstractClipBlendNode *<i>startClip</i>)</td></tr> </table></div> <ul> <li class="fn">4 signals inherited from <a href="qt3dcore-qnode.html#signals">Qt3DCore::QNode</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-qlerpclipblend.html#QLerpClipBlend-1">QLerpClipBlend</a></b>(QLerpClipBlendPrivate &<i>dd</i>, Qt3DCore::QNode *<i>parent</i> = nullptr)</td></tr> </table></div> <ul> <li class="fn">2 protected functions inherited from <a href="qt3dcore-qnode.html#protected-functions">Qt3DCore::QNode</a></li> </ul> <a name="details"></a> <!-- $$$QLerpClipBlend-description --> <div class="descr"> <h2 id="details">Detailed Description</h2> <p>Performs a linear interpolation of two animation clips based on a normalized factor</p> <p><a href="qt3danimation-qlerpclipblend.html">QLerpClipBlend</a> can be useful to create advanced animation effects based on individual animation clips. For instance, given a player character,, lerp blending could be used to combine a walking animation clip with an injured animation clip based on a blend factor that increases the more the player gets injured. This would then allow with blend factor == 0 to have a non injured walking player, with blend factor == 1 a fully injured player, with blend factor == 0.5 a partially walking and injured player.</p> </div> <p><b>See also </b><a href="qt3danimation-qblendedclipanimator.html">QBlendedClipAnimator</a>.</p> <!-- @@@QLerpClipBlend --> <div class="prop"> <h2>Property Documentation</h2> <!-- $$$blendFactor-prop$$$blendFactor$$$setBlendFactorfloat$$$blendFactorChangedfloat --> <h3 class="fn" id="blendFactor-prop"><a name="blendFactor-prop"></a><span class="name">blendFactor</span> : <span class="type">float</span></h3> <p>Specifies the blending factor between 0 and 1 to control the blending of two animation clips.</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>blendFactor</b></span>() const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBlendFactor</b></span>(float <i>blendFactor</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>blendFactorChanged</b></span>(float <i>blendFactor</i>)</td></tr> </table></div> <!-- @@@blendFactor --> <!-- $$$endClip-prop$$$endClip$$$setEndClipQt3DAnimation::QAbstractClipBlendNode*$$$endClipChangedQt3DAnimation::QAbstractClipBlendNode* --> <h3 class="fn" id="endClip-prop"><a name="endClip-prop"></a><span class="name">endClip</span> : <span class="type">Qt3DAnimation::QAbstractClipBlendNode</span> *</h3> <p>Holds the sub-tree that should be used as the start clip for this lerp blend node. That is, the clip returned by this blend node when the <a href="qt3danimation-qlerpclipblend.html#blendFactor-prop">blendFactor</a> is set to a value of 1.</p> <p><b>Access functions:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> Qt3DAnimation::QAbstractClipBlendNode *</td><td class="memItemRight bottomAlign"><span class="name"><b>endClip</b></span>() const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setEndClip</b></span>(Qt3DAnimation::QAbstractClipBlendNode *<i>endClip</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>endClipChanged</b></span>(Qt3DAnimation::QAbstractClipBlendNode *<i>endClip</i>)</td></tr> </table></div> <!-- @@@endClip --> <!-- $$$startClip-prop$$$startClip$$$setStartClipQt3DAnimation::QAbstractClipBlendNode*$$$startClipChangedQt3DAnimation::QAbstractClipBlendNode* --> <h3 class="fn" id="startClip-prop"><a name="startClip-prop"></a><span class="name">startClip</span> : <span class="type">Qt3DAnimation::QAbstractClipBlendNode</span> *</h3> <p>Holds the sub-tree that should be used as the start clip for this lerp blend node. That is, the clip returned by this blend node when the <a href="qt3danimation-qlerpclipblend.html#blendFactor-prop">blendFactor</a> is set to a value of 0.</p> <p><b>Access functions:</b></p> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> Qt3DAnimation::QAbstractClipBlendNode *</td><td class="memItemRight bottomAlign"><span class="name"><b>startClip</b></span>() const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setStartClip</b></span>(Qt3DAnimation::QAbstractClipBlendNode *<i>startClip</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>startClipChanged</b></span>(Qt3DAnimation::QAbstractClipBlendNode *<i>startClip</i>)</td></tr> </table></div> <!-- @@@startClip --> </div> <div class="func"> <h2>Member Function Documentation</h2> <!-- $$$QLerpClipBlend[overload1]$$$QLerpClipBlendQt3DCore::QNode* --> <h3 class="fn" id="QLerpClipBlend"><a name="QLerpClipBlend"></a>QLerpClipBlend::<span class="name">QLerpClipBlend</span>(<span class="type">Qt3DCore::QNode</span> *<i>parent</i> = nullptr)</h3> <p>Default constructs an instance of QLerpClipBlend.</p><!-- @@@QLerpClipBlend --> <!-- $$$QLerpClipBlend$$$QLerpClipBlendQLerpClipBlendPrivate&Qt3DCore::QNode* --> <h3 class="fn" id="QLerpClipBlend-1"><a name="QLerpClipBlend-1"></a><code>[protected] </code>QLerpClipBlend::<span class="name">QLerpClipBlend</span>(<span class="type">QLerpClipBlendPrivate</span> &<i>dd</i>, <span class="type">Qt3DCore::QNode</span> *<i>parent</i> = nullptr)</h3> <p>Copy constructor.</p><!-- @@@QLerpClipBlend --> <!-- $$$~QLerpClipBlend[overload1]$$$~QLerpClipBlend --> <h3 class="fn" id="dtor.QLerpClipBlend"><a name="dtor.QLerpClipBlend"></a>QLerpClipBlend::<span class="name">~QLerpClipBlend</span>()</h3> <p>Destroys the instance of QLerpClipBlend.</p><!-- @@@~QLerpClipBlend --> </div> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2017 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>