Sophie

Sophie

distrib > Mandriva > 10.0-com > i586 > by-pkgid > 06719cf03808e17ae6f0852ca1052dc2 > files > 2895

libogre1-devel-0.13.0-1mdk.i586.rpm

<html>
<head>
<title>Ogre::RotationalSpline class Reference - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
<link type="text/css" rel="stylesheet" href="style.css">
</head>

<body>
<!-- Generated by Doxygen 1.2.16 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; </center>
<hr><h1>Ogre::RotationalSpline  Class Reference</h1>This class interpolates orientations (rotations) along a spline using derivatives of quaternions. 
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="OgreRotationalSpline_8h-source.html">OgreRotationalSpline.h</a>&gt;</code>
<p>
<a href="classOgre_1_1RotationalSpline-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinea0">RotationalSpline</a> ()</td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinea1">~RotationalSpline</a> ()</td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinea2">addPoint</a> (const <a class="el" href="classOgre_1_1Quaternion.html">Quaternion</a> &amp;p)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Adds a control point to the end of the spline.</em> <a href="#Ogre_1_1RotationalSplinea2"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>const <a class="el" href="classOgre_1_1Quaternion.html">Quaternion</a> &amp;&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinea3">getPoint</a> (unsigned short index) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets the detail of one of the control points of the spline.</em> <a href="#Ogre_1_1RotationalSplinea3"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>unsigned short&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinea4">getNumPoints</a> (void) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets the number of control points in the spline.</em> <a href="#Ogre_1_1RotationalSplinea4"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinea5">clear</a> (void)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Clears all the points in the spline.</em> <a href="#Ogre_1_1RotationalSplinea5"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinea6">updatePoint</a> (unsigned short index, const <a class="el" href="classOgre_1_1Quaternion.html">Quaternion</a> &amp;value)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Updates a single point in the spline.</em> <a href="#Ogre_1_1RotationalSplinea6"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classOgre_1_1Quaternion.html">Quaternion</a>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinea7">interpolate</a> (<a class="el" href="namespaceOgre.html#a349">Real</a> t, bool useShortestPath=true)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Returns an interpolated point based on a parametric value over the whole series.</em> <a href="#Ogre_1_1RotationalSplinea7"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classOgre_1_1Quaternion.html">Quaternion</a>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinea8">interpolate</a> (unsigned int fromIndex, <a class="el" href="namespaceOgre.html#a349">Real</a> t, bool useShortestPath=true)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Interpolates a single segment of the spline given a parametric value.</em> <a href="#Ogre_1_1RotationalSplinea8"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinea9">setAutoCalculate</a> (bool autoCalc)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Tells the spline whether it should automatically calculate tangents on demand as points are added.</em> <a href="#Ogre_1_1RotationalSplinea9"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinea10">recalcTangents</a> (void)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Recalculates the tangents associated with this spline.</em> <a href="#Ogre_1_1RotationalSplinea10"></a><em></em></font><br><br></td></tr>
<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinen0">mAutoCalc</a></td></tr>
<tr><td nowrap align=right valign=top>std::vector&lt; <a class="el" href="classOgre_1_1Quaternion.html">Quaternion</a> &gt;&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinen1">mPoints</a></td></tr>
<tr><td nowrap align=right valign=top>std::vector&lt; <a class="el" href="classOgre_1_1Quaternion.html">Quaternion</a> &gt;&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1RotationalSpline.html#Ogre_1_1RotationalSplinen2">mTangents</a></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
This class interpolates orientations (rotations) along a spline using derivatives of quaternions.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 Like the <a class="el" href="classOgre_1_1SimpleSpline.html">SimpleSpline</a> class, this class is about interpolating values  smoothly over a spline. Whilst <a class="el" href="classOgre_1_1SimpleSpline.html">SimpleSpline</a> deals with positions (the normal sense we think about splines), this class interpolates orientations. The theory is identical, except we're now in 4-dimensional space instead of 3. 
<p>
 In positional splines, we use the points and tangents on those points to generate control points for the spline. In this case, we use quaternions and derivatives of the quaternions (i.e. the rate and direction of change at each point). This is the same as <a class="el" href="classOgre_1_1SimpleSpline.html">SimpleSpline</a> since a tangent is a derivative of a position. We effectively  generate an extra quaternion in between each actual quaternion which when take with  the original quaternion forms the 'tangent' of that quaternion. </dl>
<p>

<p>
Definition at line <a class="el" href="OgreRotationalSpline_8h-source.html#l00048">48</a> of file <a class="el" href="OgreRotationalSpline_8h-source.html">OgreRotationalSpline.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="Ogre_1_1RotationalSplinea0" doxytag="Ogre::RotationalSpline::RotationalSpline"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> Ogre::RotationalSpline::RotationalSpline </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="OgreRotationSpline_8cpp-source.html#l00033">33</a> of file <a class="el" href="OgreRotationSpline_8cpp-source.html">OgreRotationSpline.cpp</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1RotationalSplinea1" doxytag="Ogre::RotationalSpline::~RotationalSpline"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> Ogre::RotationalSpline::~RotationalSpline </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="OgreRotationSpline_8cpp-source.html#l00037">37</a> of file <a class="el" href="OgreRotationSpline_8cpp-source.html">OgreRotationSpline.cpp</a>.    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="Ogre_1_1RotationalSplinea2" doxytag="Ogre::RotationalSpline::addPoint"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::RotationalSpline::addPoint </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1Quaternion.html">Quaternion</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>p</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Adds a control point to the end of the spline.
<p>

<p>
Definition at line <a class="el" href="OgreRotationSpline_8cpp-source.html#l00041">41</a> of file <a class="el" href="OgreRotationSpline_8cpp-source.html">OgreRotationSpline.cpp</a>.
<p>
References <a class="el" href="OgreRotationalSpline_8h-source.html#l00115">mPoints</a>, and <a class="el" href="OgreRotationSpline_8cpp-source.html#l00098">recalcTangents</a>().
<p>
Referenced by <a class="el" href="OgreAnimationTrack_8cpp-source.html#l00329">Ogre::AnimationTrack::buildInterpolationSplines</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1RotationalSplinea5" doxytag="Ogre::RotationalSpline::clear"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::RotationalSpline::clear </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Clears all the points in the spline.
<p>

<p>
Definition at line <a class="el" href="OgreRotationSpline_8cpp-source.html#l00192">192</a> of file <a class="el" href="OgreRotationSpline_8cpp-source.html">OgreRotationSpline.cpp</a>.
<p>
References <a class="el" href="OgreRotationalSpline_8h-source.html#l00115">mPoints</a>, and <a class="el" href="OgreRotationalSpline_8h-source.html#l00116">mTangents</a>.
<p>
Referenced by <a class="el" href="OgreAnimationTrack_8cpp-source.html#l00329">Ogre::AnimationTrack::buildInterpolationSplines</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1RotationalSplinea4" doxytag="Ogre::RotationalSpline::getNumPoints"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> unsigned short Ogre::RotationalSpline::getNumPoints </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the number of control points in the spline.
<p>

<p>
Definition at line <a class="el" href="OgreRotationSpline_8cpp-source.html#l00187">187</a> of file <a class="el" href="OgreRotationSpline_8cpp-source.html">OgreRotationSpline.cpp</a>.
<p>
References <a class="el" href="OgreRotationalSpline_8h-source.html#l00115">mPoints</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1RotationalSplinea3" doxytag="Ogre::RotationalSpline::getPoint"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const <a class="el" href="classOgre_1_1Quaternion.html">Quaternion</a> &amp; Ogre::RotationalSpline::getPoint </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">unsigned short&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>index</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the detail of one of the control points of the spline.
<p>

<p>
Definition at line <a class="el" href="OgreRotationSpline_8cpp-source.html#l00180">180</a> of file <a class="el" href="OgreRotationSpline_8cpp-source.html">OgreRotationSpline.cpp</a>.
<p>
References <a class="el" href="OgreRotationalSpline_8h-source.html#l00115">mPoints</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1RotationalSplinea8" doxytag="Ogre::RotationalSpline::interpolate"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Quaternion.html">Quaternion</a> Ogre::RotationalSpline::interpolate </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">unsigned int&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>fromIndex</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="namespaceOgre.html#a349">Real</a>&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>t</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>bool&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>useShortestPath</em> = true</td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Interpolates a single segment of the spline given a parametric value.
<p>
<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>fromIndex</em>&nbsp;</td><td>
The point index to treat as t=0. fromIndex + 1 is deemed to be t=1 </td></tr>
<tr><td valign=top><em>t</em>&nbsp;</td><td>
Parametric value </td></tr>
<tr><td valign=top><em>useShortestPath</em>&nbsp;</td><td>
Defines if rotation should take the shortest possible path </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="OgreRotationSpline_8cpp-source.html#l00062">62</a> of file <a class="el" href="OgreRotationSpline_8cpp-source.html">OgreRotationSpline.cpp</a>.
<p>
References <a class="el" href="OgreRotationalSpline_8h-source.html#l00115">mPoints</a>, <a class="el" href="OgreRotationalSpline_8h-source.html#l00116">mTangents</a>, and <a class="el" href="OgrePrerequisites_8h-source.html#l00086">Ogre::Real</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1RotationalSplinea7" doxytag="Ogre::RotationalSpline::interpolate"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Quaternion.html">Quaternion</a> Ogre::RotationalSpline::interpolate </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="namespaceOgre.html#a349">Real</a>&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>t</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>bool&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>useShortestPath</em> = true</td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns an interpolated point based on a parametric value over the whole series.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 Given a t value between 0 and 1 representing the parametric distance along the whole length of the spline, this method returns an interpolated point. </dl><dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>t</em>&nbsp;</td><td>
Parametric value. </td></tr>
<tr><td valign=top><em>useShortestPath</em>&nbsp;</td><td>
Defines if rotation should take the shortest possible path </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="OgreRotationSpline_8cpp-source.html#l00050">50</a> of file <a class="el" href="OgreRotationSpline_8cpp-source.html">OgreRotationSpline.cpp</a>.
<p>
References <a class="el" href="OgreRotationalSpline_8h-source.html#l00115">mPoints</a>, and <a class="el" href="OgrePrerequisites_8h-source.html#l00086">Ogre::Real</a>.
<p>
Referenced by <a class="el" href="OgreAnimationTrack_8cpp-source.html#l00200">Ogre::AnimationTrack::getInterpolatedKeyFrame</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1RotationalSplinea10" doxytag="Ogre::RotationalSpline::recalcTangents"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::RotationalSpline::recalcTangents </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Recalculates the tangents associated with this spline.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 If you tell the spline not to update on demand by calling setAutoCalculate(false) then you must call this after completing your updates to the spline points. </dl>
<p>
Definition at line <a class="el" href="OgreRotationSpline_8cpp-source.html#l00098">98</a> of file <a class="el" href="OgreRotationSpline_8cpp-source.html">OgreRotationSpline.cpp</a>.
<p>
References <a class="el" href="OgreQuaternion_8cpp-source.html#l00343">Ogre::Quaternion::Exp</a>(), <a class="el" href="OgreQuaternion_8cpp-source.html#l00322">Ogre::Quaternion::Inverse</a>(), <a class="el" href="OgreQuaternion_8cpp-source.html#l00372">Ogre::Quaternion::Log</a>(), <a class="el" href="OgreRotationalSpline_8h-source.html#l00115">mPoints</a>, and <a class="el" href="OgreRotationalSpline_8h-source.html#l00116">mTangents</a>.
<p>
Referenced by <a class="el" href="OgreRotationSpline_8cpp-source.html#l00041">addPoint</a>(), <a class="el" href="OgreAnimationTrack_8cpp-source.html#l00329">Ogre::AnimationTrack::buildInterpolationSplines</a>(), and <a class="el" href="OgreRotationSpline_8cpp-source.html#l00198">updatePoint</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1RotationalSplinea9" doxytag="Ogre::RotationalSpline::setAutoCalculate"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::RotationalSpline::setAutoCalculate </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">bool&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>autoCalc</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Tells the spline whether it should automatically calculate tangents on demand as points are added.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 The spline calculates tangents at each point automatically based on the input points. Normally it does this every time a point changes. However, if you have a lot of points to add in one go, you probably don't want to incur this overhead and would prefer to  defer the calculation until you are finished setting all the points. You can do this by calling this method with a parameter of 'false'. Just remember to manually call  the recalcTangents method when you are done. </dl><dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>autoCalc</em>&nbsp;</td><td>
If true, tangents are calculated for you whenever a point changes. If false,  you must call reclacTangents to recalculate them when it best suits. </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="OgreRotationSpline_8cpp-source.html#l00209">209</a> of file <a class="el" href="OgreRotationSpline_8cpp-source.html">OgreRotationSpline.cpp</a>.
<p>
References <a class="el" href="OgreRotationalSpline_8h-source.html#l00111">mAutoCalc</a>.
<p>
Referenced by <a class="el" href="OgreAnimationTrack_8cpp-source.html#l00329">Ogre::AnimationTrack::buildInterpolationSplines</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1RotationalSplinea6" doxytag="Ogre::RotationalSpline::updatePoint"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::RotationalSpline::updatePoint </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>index</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="classOgre_1_1Quaternion.html">Quaternion</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>value</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Updates a single point in the spline.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 This point must already exist in the spline. </dl>
<p>
Definition at line <a class="el" href="OgreRotationSpline_8cpp-source.html#l00198">198</a> of file <a class="el" href="OgreRotationSpline_8cpp-source.html">OgreRotationSpline.cpp</a>.
<p>
References <a class="el" href="OgreRotationalSpline_8h-source.html#l00115">mPoints</a>, and <a class="el" href="OgreRotationSpline_8cpp-source.html#l00098">recalcTangents</a>().    </td>
  </tr>
</table>
<hr><h2>Member Data Documentation</h2>
<a name="Ogre_1_1RotationalSplinen0" doxytag="Ogre::RotationalSpline::mAutoCalc"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool Ogre::RotationalSpline::mAutoCalc<code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="OgreRotationalSpline_8h-source.html#l00111">111</a> of file <a class="el" href="OgreRotationalSpline_8h-source.html">OgreRotationalSpline.h</a>.
<p>
Referenced by <a class="el" href="OgreRotationSpline_8cpp-source.html#l00209">setAutoCalculate</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1RotationalSplinen1" doxytag="Ogre::RotationalSpline::mPoints"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> std::vector&lt;<a class="el" href="classOgre_1_1Quaternion.html">Quaternion</a>&gt; Ogre::RotationalSpline::mPoints<code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="OgreRotationalSpline_8h-source.html#l00115">115</a> of file <a class="el" href="OgreRotationalSpline_8h-source.html">OgreRotationalSpline.h</a>.
<p>
Referenced by <a class="el" href="OgreRotationSpline_8cpp-source.html#l00041">addPoint</a>(), <a class="el" href="OgreRotationSpline_8cpp-source.html#l00192">clear</a>(), <a class="el" href="OgreRotationSpline_8cpp-source.html#l00187">getNumPoints</a>(), <a class="el" href="OgreRotationSpline_8cpp-source.html#l00180">getPoint</a>(), <a class="el" href="OgreRotationSpline_8cpp-source.html#l00050">interpolate</a>(), <a class="el" href="OgreRotationSpline_8cpp-source.html#l00098">recalcTangents</a>(), and <a class="el" href="OgreRotationSpline_8cpp-source.html#l00198">updatePoint</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1RotationalSplinen2" doxytag="Ogre::RotationalSpline::mTangents"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> std::vector&lt;<a class="el" href="classOgre_1_1Quaternion.html">Quaternion</a>&gt; Ogre::RotationalSpline::mTangents<code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="OgreRotationalSpline_8h-source.html#l00116">116</a> of file <a class="el" href="OgreRotationalSpline_8h-source.html">OgreRotationalSpline.h</a>.
<p>
Referenced by <a class="el" href="OgreRotationSpline_8cpp-source.html#l00192">clear</a>(), <a class="el" href="OgreRotationSpline_8cpp-source.html#l00062">interpolate</a>(), and <a class="el" href="OgreRotationSpline_8cpp-source.html#l00098">recalcTangents</a>().    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="OgreRotationalSpline_8h-source.html">OgreRotationalSpline.h</a><li><a class="el" href="OgreRotationSpline_8cpp-source.html">OgreRotationSpline.cpp</a></ul>
<p>
Copyright &copy; 2002-2003 by The OGRE Team<br />
Last modified Wed Jan 21 00:19:52 2004
</p>
</body>
</html>