<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>OpenSceneGraph: osgAnimation::TemplateTarget< T > Class Template Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.1 --> <div class="navigation" id="top"> <div class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> </ul> </div> <div class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"> <ul> <li><a class="el" href="a01629.html">osgAnimation</a> </li> <li><a class="el" href="a00877.html">osgAnimation::TemplateTarget< T ></a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pro-attribs">Protected Attributes</a> </div> <div class="headertitle"> <h1>osgAnimation::TemplateTarget< T > Class Template Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="osgAnimation::TemplateTarget" --><!-- doxytag: inherits="osgAnimation::Target" --><div class="dynheader"> Inheritance diagram for osgAnimation::TemplateTarget< T >:</div> <div class="dyncontent"> <div class="center"><img src="a02534.png" border="0" usemap="#osgAnimation_1_1TemplateTarget_3_01T_01_4_inherit__map" alt="Inheritance graph"/></div> <map name="osgAnimation_1_1TemplateTarget_3_01T_01_4_inherit__map" id="osgAnimation_1_1TemplateTarget_3_01T_01_4_inherit__map"> <area shape="rect" id="node2" href="a00857.html" title="osgAnimation::Target" alt="" coords="48,83,195,112"/><area shape="rect" id="node4" href="a00627.html" title="Base class from providing referencing counted objects." alt="" coords="63,5,180,35"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="a02535.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00877.html#a6db0ca935633a094a093201ad8064286">TemplateTarget</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00877.html#a849e5d6de9a51279f19af8445242290f">TemplateTarget</a> (const T &v)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00877.html#adeed452235112aa4ebbefaf326ec5817">TemplateTarget</a> (const <a class="el" href="a00877.html">TemplateTarget</a> &v)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00877.html#a229fc14bb74f2aef7394dcc6448b2607">lerp</a> (float t, const T &a, const T &b)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00877.html#a9f45c32efe4f571b52384468d4846fe8">update</a> (float weight, const T &val, int priority)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The priority is used to detect a change of priority It's important to update animation target in priority order. <a href="#a9f45c32efe4f571b52384468d4846fe8"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">const T & </td><td class="memItemRight" valign="bottom"><a class="el" href="a00877.html#a0d78857351969393c64c63184b8fffe5">getValue</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00877.html#a7cfd1a57dbaf92c7d4b3045e9ded6f73">setValue</a> (const T &value)</td></tr> <tr><td class="memTemplParams" colspan="2">template<> </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00877.html#ac6e947dd62a050b7c9ac40a1f7fd4314">lerp</a> (float t, const <a class="el" href="a00608.html">osg::Quat</a> &a, const <a class="el" href="a00608.html">osg::Quat</a> &b)</td></tr> <tr><td colspan="2"><h2><a name="pro-attribs"></a> Protected Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">T </td><td class="memItemRight" valign="bottom"><a class="el" href="a00877.html#abe4668e5b51f2a7b4dbdab2fb26a910d">_target</a></td></tr> </table> <h3>template<class T><br/> class osgAnimation::TemplateTarget< T ></h3> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a6db0ca935633a094a093201ad8064286"></a><!-- doxytag: member="osgAnimation::TemplateTarget::TemplateTarget" ref="a6db0ca935633a094a093201ad8064286" args="()" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T > </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="a00877.html">osgAnimation::TemplateTarget</a>< T >::<a class="el" href="a00877.html">TemplateTarget</a> </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a849e5d6de9a51279f19af8445242290f"></a><!-- doxytag: member="osgAnimation::TemplateTarget::TemplateTarget" ref="a849e5d6de9a51279f19af8445242290f" args="(const T &v)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T > </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="a00877.html">osgAnimation::TemplateTarget</a>< T >::<a class="el" href="a00877.html">TemplateTarget</a> </td> <td>(</td> <td class="paramtype">const T & </td> <td class="paramname"> <em>v</em></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>References <a class="el" href="a00877.html#a7cfd1a57dbaf92c7d4b3045e9ded6f73">osgAnimation::TemplateTarget< T >::setValue()</a>.</p> </div> </div> <a class="anchor" id="adeed452235112aa4ebbefaf326ec5817"></a><!-- doxytag: member="osgAnimation::TemplateTarget::TemplateTarget" ref="adeed452235112aa4ebbefaf326ec5817" args="(const TemplateTarget &v)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T > </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="a00877.html">osgAnimation::TemplateTarget</a>< T >::<a class="el" href="a00877.html">TemplateTarget</a> </td> <td>(</td> <td class="paramtype">const <a class="el" href="a00877.html">TemplateTarget</a>< T > & </td> <td class="paramname"> <em>v</em></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>References <a class="el" href="a00877.html#a0d78857351969393c64c63184b8fffe5">osgAnimation::TemplateTarget< T >::getValue()</a>, and <a class="el" href="a00877.html#a7cfd1a57dbaf92c7d4b3045e9ded6f73">osgAnimation::TemplateTarget< T >::setValue()</a>.</p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a0d78857351969393c64c63184b8fffe5"></a><!-- doxytag: member="osgAnimation::TemplateTarget::getValue" ref="a0d78857351969393c64c63184b8fffe5" args="() const " --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T > </div> <table class="memname"> <tr> <td class="memname">const T& <a class="el" href="a00877.html">osgAnimation::TemplateTarget</a>< T >::getValue </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>References <a class="el" href="a00877.html#abe4668e5b51f2a7b4dbdab2fb26a910d">osgAnimation::TemplateTarget< T >::_target</a>.</p> <p>Referenced by <a class="el" href="a00877.html#adeed452235112aa4ebbefaf326ec5817">osgAnimation::TemplateTarget< T >::TemplateTarget()</a>.</p> </div> </div> <a class="anchor" id="ac6e947dd62a050b7c9ac40a1f7fd4314"></a><!-- doxytag: member="osgAnimation::TemplateTarget::lerp" ref="ac6e947dd62a050b7c9ac40a1f7fd4314" args="(float t, const osg::Quat &a, const osg::Quat &b)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<> </div> <table class="memname"> <tr> <td class="memname">void <a class="el" href="a00877.html">osgAnimation::TemplateTarget</a>< <a class="el" href="a00608.html">osg::Quat</a> >::lerp </td> <td>(</td> <td class="paramtype">float </td> <td class="paramname"> <em>t</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="a00608.html">osg::Quat</a> & </td> <td class="paramname"> <em>a</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="a00608.html">osg::Quat</a> & </td> <td class="paramname"> <em>b</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>References <a class="el" href="a00877.html#abe4668e5b51f2a7b4dbdab2fb26a910d">osgAnimation::TemplateTarget< T >::_target</a>, and <a class="el" href="a00608.html#adb5478f249f71a1f0965854cf226806c">osg::Quat::asVec4()</a>.</p> </div> </div> <a class="anchor" id="a229fc14bb74f2aef7394dcc6448b2607"></a><!-- doxytag: member="osgAnimation::TemplateTarget::lerp" ref="a229fc14bb74f2aef7394dcc6448b2607" args="(float t, const T &a, const T &b)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T > </div> <table class="memname"> <tr> <td class="memname">void <a class="el" href="a00877.html">osgAnimation::TemplateTarget</a>< T >::lerp </td> <td>(</td> <td class="paramtype">float </td> <td class="paramname"> <em>t</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const T & </td> <td class="paramname"> <em>a</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const T & </td> <td class="paramname"> <em>b</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>References <a class="el" href="a00877.html#abe4668e5b51f2a7b4dbdab2fb26a910d">osgAnimation::TemplateTarget< T >::_target</a>.</p> <p>Referenced by <a class="el" href="a00877.html#a9f45c32efe4f571b52384468d4846fe8">osgAnimation::TemplateTarget< T >::update()</a>.</p> </div> </div> <a class="anchor" id="a7cfd1a57dbaf92c7d4b3045e9ded6f73"></a><!-- doxytag: member="osgAnimation::TemplateTarget::setValue" ref="a7cfd1a57dbaf92c7d4b3045e9ded6f73" args="(const T &value)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T > </div> <table class="memname"> <tr> <td class="memname">void <a class="el" href="a00877.html">osgAnimation::TemplateTarget</a>< T >::setValue </td> <td>(</td> <td class="paramtype">const T & </td> <td class="paramname"> <em>value</em></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>References <a class="el" href="a00877.html#abe4668e5b51f2a7b4dbdab2fb26a910d">osgAnimation::TemplateTarget< T >::_target</a>.</p> <p>Referenced by <a class="el" href="a00877.html#a849e5d6de9a51279f19af8445242290f">osgAnimation::TemplateTarget< T >::TemplateTarget()</a>.</p> </div> </div> <a class="anchor" id="a9f45c32efe4f571b52384468d4846fe8"></a><!-- doxytag: member="osgAnimation::TemplateTarget::update" ref="a9f45c32efe4f571b52384468d4846fe8" args="(float weight, const T &val, int priority)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T > </div> <table class="memname"> <tr> <td class="memname">void <a class="el" href="a00877.html">osgAnimation::TemplateTarget</a>< T >::update </td> <td>(</td> <td class="paramtype">float </td> <td class="paramname"> <em>weight</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const T & </td> <td class="paramname"> <em>val</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>priority</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>The priority is used to detect a change of priority It's important to update animation target in priority order. </p> <p>eg: all animation with priority 1 all animation with priority 0 all animation with priority -1 ... </p> <p>References <a class="el" href="a00857.html#ac0e538f42a530f0c70ee0690c70cb61f">osgAnimation::Target::_lastPriority</a>, <a class="el" href="a00857.html#a3e1bf9e51e3f1a2744c5b3661841e6f9">osgAnimation::Target::_priorityWeight</a>, <a class="el" href="a00877.html#abe4668e5b51f2a7b4dbdab2fb26a910d">osgAnimation::TemplateTarget< T >::_target</a>, <a class="el" href="a00857.html#a3d78c01fa65613f4a4e172e66c203682">osgAnimation::Target::_weight</a>, and <a class="el" href="a00877.html#a229fc14bb74f2aef7394dcc6448b2607">osgAnimation::TemplateTarget< T >::lerp()</a>.</p> </div> </div> <hr/><h2>Member Data Documentation</h2> <a class="anchor" id="abe4668e5b51f2a7b4dbdab2fb26a910d"></a><!-- doxytag: member="osgAnimation::TemplateTarget::_target" ref="abe4668e5b51f2a7b4dbdab2fb26a910d" args="" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T > </div> <table class="memname"> <tr> <td class="memname">T <a class="el" href="a00877.html">osgAnimation::TemplateTarget</a>< T >::<a class="el" href="a00877.html#abe4668e5b51f2a7b4dbdab2fb26a910d">_target</a><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Referenced by <a class="el" href="a00877.html#a0d78857351969393c64c63184b8fffe5">osgAnimation::TemplateTarget< T >::getValue()</a>, <a class="el" href="a00877.html#a229fc14bb74f2aef7394dcc6448b2607">osgAnimation::TemplateTarget< T >::lerp()</a>, <a class="el" href="a00877.html#a7cfd1a57dbaf92c7d4b3045e9ded6f73">osgAnimation::TemplateTarget< T >::setValue()</a>, and <a class="el" href="a00877.html#a9f45c32efe4f571b52384468d4846fe8">osgAnimation::TemplateTarget< T >::update()</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>osgAnimation/<a class="el" href="a01348.html">Target</a></li> </ul> </div> <hr> <table border="0"><tr><td> <img src="osg32-32.png" alt="osg logo" /> </td><td> <address><small>Generated at Thu Aug 19 2010 16:22:44 for the <a href="http://www.openscenegraph.org/">OpenSceneGraph</a> by <a href="http://www.doxygen.org">doxygen</a> 1.7.1.</small></address> <!-- Dimitri van Heesch's e-mail address removed, lest he get messages on the OpenSceneGraph --> </td></tr></table> </body> </html>