Sophie

Sophie

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

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

<html>
<head>
<title>Ogre::SimpleSpline 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::SimpleSpline  Class Reference</h1>A very simple spline class which implements the Catmull-Rom class of splines. 
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="OgreSimpleSpline_8h-source.html">OgreSimpleSpline.h</a>&gt;</code>
<p>
Collaboration diagram for Ogre::SimpleSpline:<p><center><img src="classOgre_1_1SimpleSpline__coll__graph.png" border="0" usemap="#Ogre_1_1SimpleSpline__coll__map" alt="Collaboration graph"></center>
<map name="Ogre_1_1SimpleSpline__coll__map">
<area href="classOgre_1_1Matrix4.html" shape="rect" coords="24,36,115,17" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classOgre_1_1SimpleSpline-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_1SimpleSpline.html#Ogre_1_1SimpleSplinea0">SimpleSpline</a> ()</td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1SimpleSpline.html#Ogre_1_1SimpleSplinea1">~SimpleSpline</a> ()</td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1SimpleSpline.html#Ogre_1_1SimpleSplinea2">addPoint</a> (const <a class="el" href="classOgre_1_1Vector3.html">Vector3</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_1SimpleSplinea2"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>const <a class="el" href="classOgre_1_1Vector3.html">Vector3</a> &amp;&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1SimpleSpline.html#Ogre_1_1SimpleSplinea3">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_1SimpleSplinea3"></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_1SimpleSpline.html#Ogre_1_1SimpleSplinea4">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_1SimpleSplinea4"></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_1SimpleSpline.html#Ogre_1_1SimpleSplinea5">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_1SimpleSplinea5"></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_1SimpleSpline.html#Ogre_1_1SimpleSplinea6">updatePoint</a> (unsigned short index, const <a class="el" href="classOgre_1_1Vector3.html">Vector3</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_1SimpleSplinea6"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classOgre_1_1Vector3.html">Vector3</a>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1SimpleSpline.html#Ogre_1_1SimpleSplinea7">interpolate</a> (<a class="el" href="namespaceOgre.html#a349">Real</a> t)</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_1SimpleSplinea7"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classOgre_1_1Vector3.html">Vector3</a>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1SimpleSpline.html#Ogre_1_1SimpleSplinea8">interpolate</a> (unsigned int fromIndex, <a class="el" href="namespaceOgre.html#a349">Real</a> t)</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_1SimpleSplinea8"></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_1SimpleSpline.html#Ogre_1_1SimpleSplinea9">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_1SimpleSplinea9"></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_1SimpleSpline.html#Ogre_1_1SimpleSplinea10">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_1SimpleSplinea10"></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_1SimpleSpline.html#Ogre_1_1SimpleSplinen0">mAutoCalc</a></td></tr>
<tr><td nowrap align=right valign=top>std::vector&lt; <a class="el" href="classOgre_1_1Vector3.html">Vector3</a> &gt;&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1SimpleSpline.html#Ogre_1_1SimpleSplinen1">mPoints</a></td></tr>
<tr><td nowrap align=right valign=top>std::vector&lt; <a class="el" href="classOgre_1_1Vector3.html">Vector3</a> &gt;&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1SimpleSpline.html#Ogre_1_1SimpleSplinen2">mTangents</a></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classOgre_1_1Matrix4.html">Matrix4</a>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1SimpleSpline.html#Ogre_1_1SimpleSplinen3">mCoeffs</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Matrix of coefficients.</em> <a href="#Ogre_1_1SimpleSplinen3"></a><em></em></font><br><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A very simple spline class which implements the Catmull-Rom class of splines.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 Splines are bendy lines. You define a series of points, and the spline forms a smoother line between the points to eliminate the sharp angles. 
<p>
 Catmull-Rom splines are a specialisation of the general Hermite spline. With a Hermite spline, you define the start and end point of the line, and 2 tangents, one at the start of the line and one at the end. The Catmull-Rom spline simplifies this by just asking you to define a series of points, and the tangents are  created for you. </dl>
<p>

<p>
Definition at line <a class="el" href="OgreSimpleSpline_8h-source.html#l00047">47</a> of file <a class="el" href="OgreSimpleSpline_8h-source.html">OgreSimpleSpline.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="Ogre_1_1SimpleSplinea0" doxytag="Ogre::SimpleSpline::SimpleSpline"></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::SimpleSpline::SimpleSpline </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="OgreSimpleSpline_8cpp-source.html#l00035">35</a> of file <a class="el" href="OgreSimpleSpline_8cpp-source.html">OgreSimpleSpline.cpp</a>.
<p>
References <a class="el" href="OgreSimpleSpline_8h-source.html#l00109">mAutoCalc</a>, and <a class="el" href="OgreSimpleSpline_8h-source.html#l00115">mCoeffs</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1SimpleSplinea1" doxytag="Ogre::SimpleSpline::~SimpleSpline"></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::SimpleSpline::~SimpleSpline </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="OgreSimpleSpline_8cpp-source.html#l00059">59</a> of file <a class="el" href="OgreSimpleSpline_8cpp-source.html">OgreSimpleSpline.cpp</a>.    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="Ogre_1_1SimpleSplinea2" doxytag="Ogre::SimpleSpline::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::SimpleSpline::addPoint </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1Vector3.html">Vector3</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="OgreSimpleSpline_8cpp-source.html#l00063">63</a> of file <a class="el" href="OgreSimpleSpline_8cpp-source.html">OgreSimpleSpline.cpp</a>.
<p>
References <a class="el" href="OgreSimpleSpline_8h-source.html#l00111">mPoints</a>, and <a class="el" href="OgreSimpleSpline_8cpp-source.html#l00155">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_1SimpleSplinea5" doxytag="Ogre::SimpleSpline::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::SimpleSpline::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="OgreSimpleSpline_8cpp-source.html#l00238">238</a> of file <a class="el" href="OgreSimpleSpline_8cpp-source.html">OgreSimpleSpline.cpp</a>.
<p>
References <a class="el" href="OgreSimpleSpline_8h-source.html#l00111">mPoints</a>, and <a class="el" href="OgreSimpleSpline_8h-source.html#l00112">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_1SimpleSplinea4" doxytag="Ogre::SimpleSpline::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::SimpleSpline::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="OgreSimpleSpline_8cpp-source.html#l00233">233</a> of file <a class="el" href="OgreSimpleSpline_8cpp-source.html">OgreSimpleSpline.cpp</a>.
<p>
References <a class="el" href="OgreSimpleSpline_8h-source.html#l00111">mPoints</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1SimpleSplinea3" doxytag="Ogre::SimpleSpline::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_1Vector3.html">Vector3</a> &amp; Ogre::SimpleSpline::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="OgreSimpleSpline_8cpp-source.html#l00226">226</a> of file <a class="el" href="OgreSimpleSpline_8cpp-source.html">OgreSimpleSpline.cpp</a>.
<p>
References <a class="el" href="OgreSimpleSpline_8h-source.html#l00111">mPoints</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1SimpleSplinea8" doxytag="Ogre::SimpleSpline::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_1Vector3.html">Vector3</a> Ogre::SimpleSpline::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 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>
</table>
</dl>
<p>
Definition at line <a class="el" href="OgreSimpleSpline_8cpp-source.html#l00089">89</a> of file <a class="el" href="OgreSimpleSpline_8cpp-source.html">OgreSimpleSpline.cpp</a>.
<p>
References <a class="el" href="OgreSimpleSpline_8h-source.html#l00115">mCoeffs</a>, <a class="el" href="OgreSimpleSpline_8h-source.html#l00111">mPoints</a>, <a class="el" href="OgreSimpleSpline_8h-source.html#l00112">mTangents</a>, <a class="el" href="OgrePrerequisites_8h-source.html#l00086">Ogre::Real</a>, <a class="el" href="OgreVector4_8h-source.html#l00042">Ogre::Vector4::x</a>, <a class="el" href="OgreVector3_8h-source.html#l00047">Ogre::Vector3::x</a>, <a class="el" href="OgreVector4_8h-source.html#l00042">Ogre::Vector4::y</a>, <a class="el" href="OgreVector3_8h-source.html#l00047">Ogre::Vector3::y</a>, <a class="el" href="OgreVector4_8h-source.html#l00042">Ogre::Vector4::z</a>, and <a class="el" href="OgreVector3_8h-source.html#l00047">Ogre::Vector3::z</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1SimpleSplinea7" doxytag="Ogre::SimpleSpline::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_1Vector3.html">Vector3</a> Ogre::SimpleSpline::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="mdname1" valign="top" nowrap>&nbsp; <em>t</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>
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>
</table>
</dl>
<p>
Definition at line <a class="el" href="OgreSimpleSpline_8cpp-source.html#l00072">72</a> of file <a class="el" href="OgreSimpleSpline_8cpp-source.html">OgreSimpleSpline.cpp</a>.
<p>
References <a class="el" href="OgreSimpleSpline_8h-source.html#l00111">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_1SimpleSplinea10" doxytag="Ogre::SimpleSpline::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::SimpleSpline::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="OgreSimpleSpline_8cpp-source.html#l00155">155</a> of file <a class="el" href="OgreSimpleSpline_8cpp-source.html">OgreSimpleSpline.cpp</a>.
<p>
References <a class="el" href="OgreSimpleSpline_8h-source.html#l00111">mPoints</a>, and <a class="el" href="OgreSimpleSpline_8h-source.html#l00112">mTangents</a>.
<p>
Referenced by <a class="el" href="OgreSimpleSpline_8cpp-source.html#l00063">addPoint</a>(), <a class="el" href="OgreAnimationTrack_8cpp-source.html#l00329">Ogre::AnimationTrack::buildInterpolationSplines</a>(), and <a class="el" href="OgreSimpleSpline_8cpp-source.html#l00244">updatePoint</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1SimpleSplinea9" doxytag="Ogre::SimpleSpline::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::SimpleSpline::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="OgreSimpleSpline_8cpp-source.html#l00255">255</a> of file <a class="el" href="OgreSimpleSpline_8cpp-source.html">OgreSimpleSpline.cpp</a>.
<p>
References <a class="el" href="OgreSimpleSpline_8h-source.html#l00109">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_1SimpleSplinea6" doxytag="Ogre::SimpleSpline::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::SimpleSpline::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_1Vector3.html">Vector3</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="OgreSimpleSpline_8cpp-source.html#l00244">244</a> of file <a class="el" href="OgreSimpleSpline_8cpp-source.html">OgreSimpleSpline.cpp</a>.
<p>
References <a class="el" href="OgreSimpleSpline_8h-source.html#l00111">mPoints</a>, and <a class="el" href="OgreSimpleSpline_8cpp-source.html#l00155">recalcTangents</a>().    </td>
  </tr>
</table>
<hr><h2>Member Data Documentation</h2>
<a name="Ogre_1_1SimpleSplinen0" doxytag="Ogre::SimpleSpline::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::SimpleSpline::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="OgreSimpleSpline_8h-source.html#l00109">109</a> of file <a class="el" href="OgreSimpleSpline_8h-source.html">OgreSimpleSpline.h</a>.
<p>
Referenced by <a class="el" href="OgreSimpleSpline_8cpp-source.html#l00255">setAutoCalculate</a>(), and <a class="el" href="OgreSimpleSpline_8cpp-source.html#l00035">SimpleSpline</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1SimpleSplinen3" doxytag="Ogre::SimpleSpline::mCoeffs"></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_1Matrix4.html">Matrix4</a> Ogre::SimpleSpline::mCoeffs<code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Matrix of coefficients.
<p>

<p>
Definition at line <a class="el" href="OgreSimpleSpline_8h-source.html#l00115">115</a> of file <a class="el" href="OgreSimpleSpline_8h-source.html">OgreSimpleSpline.h</a>.
<p>
Referenced by <a class="el" href="OgreSimpleSpline_8cpp-source.html#l00089">interpolate</a>(), and <a class="el" href="OgreSimpleSpline_8cpp-source.html#l00035">SimpleSpline</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1SimpleSplinen1" doxytag="Ogre::SimpleSpline::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_1Vector3.html">Vector3</a>&gt; Ogre::SimpleSpline::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="OgreSimpleSpline_8h-source.html#l00111">111</a> of file <a class="el" href="OgreSimpleSpline_8h-source.html">OgreSimpleSpline.h</a>.
<p>
Referenced by <a class="el" href="OgreSimpleSpline_8cpp-source.html#l00063">addPoint</a>(), <a class="el" href="OgreSimpleSpline_8cpp-source.html#l00238">clear</a>(), <a class="el" href="OgreSimpleSpline_8cpp-source.html#l00233">getNumPoints</a>(), <a class="el" href="OgreSimpleSpline_8cpp-source.html#l00226">getPoint</a>(), <a class="el" href="OgreSimpleSpline_8cpp-source.html#l00072">interpolate</a>(), <a class="el" href="OgreSimpleSpline_8cpp-source.html#l00155">recalcTangents</a>(), and <a class="el" href="OgreSimpleSpline_8cpp-source.html#l00244">updatePoint</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1SimpleSplinen2" doxytag="Ogre::SimpleSpline::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_1Vector3.html">Vector3</a>&gt; Ogre::SimpleSpline::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="OgreSimpleSpline_8h-source.html#l00112">112</a> of file <a class="el" href="OgreSimpleSpline_8h-source.html">OgreSimpleSpline.h</a>.
<p>
Referenced by <a class="el" href="OgreSimpleSpline_8cpp-source.html#l00238">clear</a>(), <a class="el" href="OgreSimpleSpline_8cpp-source.html#l00089">interpolate</a>(), and <a class="el" href="OgreSimpleSpline_8cpp-source.html#l00155">recalcTangents</a>().    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="OgreSimpleSpline_8h-source.html">OgreSimpleSpline.h</a><li><a class="el" href="OgreSimpleSpline_8cpp-source.html">OgreSimpleSpline.cpp</a></ul>
<p>
Copyright &copy; 2002-2003 by The OGRE Team<br />
Last modified Wed Jan 21 00:20:28 2004
</p>
</body>
</html>