Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 60f1dc962abad0f3b492991a4fbef9be > files > 5320

vtk-doc-5.4.2-5mdv2010.0.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>VTK: dox/Rendering/vtkQuaternionInterpolator.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="classes.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
<h1>dox/Rendering/vtkQuaternionInterpolator.h</h1><a href="a03528.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*=========================================================================</span>
<a name="l00002"></a>00002 <span class="comment"></span>
<a name="l00003"></a>00003 <span class="comment">  Program:   Visualization Toolkit</span>
<a name="l00004"></a>00004 <span class="comment">  Module:    $RCSfile: vtkQuaternionInterpolator.h,v $</span>
<a name="l00005"></a>00005 <span class="comment"></span>
<a name="l00006"></a>00006 <span class="comment">  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen </span>
<a name="l00007"></a>00007 <span class="comment">  All rights reserved.</span>
<a name="l00008"></a>00008 <span class="comment">  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.</span>
<a name="l00009"></a>00009 <span class="comment"></span>
<a name="l00010"></a>00010 <span class="comment">     This software is distributed WITHOUT ANY WARRANTY; without even </span>
<a name="l00011"></a>00011 <span class="comment">     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR </span>
<a name="l00012"></a>00012 <span class="comment">     PURPOSE.  See the above copyright notice for more information.</span>
<a name="l00013"></a>00013 <span class="comment"></span>
<a name="l00014"></a>00014 <span class="comment">=========================================================================*/</span>
<a name="l00051"></a>00051 <span class="preprocessor">#ifndef __vtkQuaternionInterpolator_h</span>
<a name="l00052"></a>00052 <span class="preprocessor"></span><span class="preprocessor">#define __vtkQuaternionInterpolator_h</span>
<a name="l00053"></a>00053 <span class="preprocessor"></span>
<a name="l00054"></a>00054 <span class="preprocessor">#include "<a class="code" href="a02079.html">vtkObject.h</a>"</span>
<a name="l00055"></a>00055 
<a name="l00056"></a>00056 <span class="keyword">struct </span>vtkQuaternion;
<a name="l00057"></a>00057 <span class="keyword">class </span>vtkQuaternionList;
<a name="l00058"></a>00058 
<a name="l00059"></a>00059 
<a name="l00060"></a><a class="code" href="a01450.html">00060</a> <span class="keyword">class </span><a class="code" href="a02170.html#4019f67b2e7d601f2cf984e448308dbb">VTK_RENDERING_EXPORT</a> <a class="code" href="a01450.html" title="interpolate a quaternion">vtkQuaternionInterpolator</a> : <span class="keyword">public</span> <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>
<a name="l00061"></a>00061 {
<a name="l00062"></a>00062 <span class="keyword">public</span>:
<a name="l00063"></a><a class="code" href="a01450.html#e0c3c377f18dce76a954971940c6c6fb">00063</a>   vtkTypeRevisionMacro(<a class="code" href="a01450.html" title="interpolate a quaternion">vtkQuaternionInterpolator</a>, <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>);
<a name="l00064"></a>00064   <span class="keywordtype">void</span> <a class="code" href="a01084.html#bf3dbb4154289b56a12483eee3866263">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00065"></a>00065 
<a name="l00067"></a>00067   <span class="keyword">static</span> <a class="code" href="a01450.html" title="interpolate a quaternion">vtkQuaternionInterpolator</a>* <a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>();
<a name="l00068"></a>00068 
<a name="l00071"></a>00071   <span class="keywordtype">int</span> GetNumberOfQuaternions();
<a name="l00072"></a>00072 
<a name="l00074"></a>00074 
<a name="l00078"></a>00078   <span class="keywordtype">double</span> GetMinimumT();
<a name="l00079"></a>00079   <span class="keywordtype">double</span> GetMaximumT();
<a name="l00081"></a>00081 
<a name="l00084"></a>00084   <span class="keywordtype">void</span> Initialize();
<a name="l00085"></a>00085   
<a name="l00090"></a>00090   <span class="keywordtype">void</span> AddQuaternion(<span class="keywordtype">double</span> t, <span class="keywordtype">double</span> q[4]);
<a name="l00091"></a>00091 
<a name="l00094"></a>00094   <span class="keywordtype">void</span> RemoveQuaternion(<span class="keywordtype">double</span> t);
<a name="l00095"></a>00095 
<a name="l00099"></a>00099   <span class="keywordtype">void</span> InterpolateQuaternion(<span class="keywordtype">double</span> t, <span class="keywordtype">double</span> q[4]);
<a name="l00100"></a>00100 
<a name="l00101"></a>00101 <span class="comment">//BTX</span>
<a name="l00103"></a>00103 <span class="comment"></span>
<a name="l00104"></a><a class="code" href="a01450.html#2e4cf6364773ca2cb5d4a51b2017d7c4b96e8d2e9ff2a9a73afc66264eb3d586">00104</a>   <span class="keyword">enum</span> {INTERPOLATION_TYPE_LINEAR=0,
<a name="l00105"></a><a class="code" href="a01450.html#2e4cf6364773ca2cb5d4a51b2017d7c440abcf354750461bb0e7a8b47fbcc10f">00105</a>         INTERPOLATION_TYPE_SPLINE
<a name="l00106"></a>00106   };
<a name="l00108"></a>00108 <span class="comment">//ETX</span>
<a name="l00109"></a>00109 
<a name="l00111"></a>00111 
<a name="l00116"></a>00116   vtkSetClampMacro(InterpolationType,<span class="keywordtype">int</span>,INTERPOLATION_TYPE_LINEAR,
<a name="l00117"></a>00117                    INTERPOLATION_TYPE_SPLINE);
<a name="l00118"></a>00118   vtkGetMacro(InterpolationType,<span class="keywordtype">int</span>);
<a name="l00119"></a><a class="code" href="a01450.html#3de15324afdf4398a40fe74c1f3049ca">00119</a>   <span class="keywordtype">void</span> SetInterpolationTypeToLinear()
<a name="l00120"></a>00120     {this-&gt;SetInterpolationType(INTERPOLATION_TYPE_LINEAR);}
<a name="l00121"></a><a class="code" href="a01450.html#b51f2671eda54a1c5c1be97fd587f656">00121</a>   <span class="keywordtype">void</span> SetInterpolationTypeToSpline()
<a name="l00122"></a>00122     {this-&gt;SetInterpolationType(INTERPOLATION_TYPE_SPLINE);}
<a name="l00124"></a>00124 
<a name="l00125"></a>00125 <span class="keyword">protected</span>:
<a name="l00126"></a>00126   <a class="code" href="a01450.html" title="interpolate a quaternion">vtkQuaternionInterpolator</a>();
<a name="l00127"></a>00127   <span class="keyword">virtual</span> ~<a class="code" href="a01450.html" title="interpolate a quaternion">vtkQuaternionInterpolator</a>();
<a name="l00128"></a>00128 
<a name="l00129"></a>00129   <span class="comment">// Specify the type of interpolation to use</span>
<a name="l00130"></a><a class="code" href="a01450.html#73acd16ae8b0e6dfd4458730c37253c6">00130</a>   <span class="keywordtype">int</span> InterpolationType;
<a name="l00131"></a>00131 
<a name="l00132"></a>00132   <span class="comment">// Internal variables for interpolation functions</span>
<a name="l00133"></a><a class="code" href="a01450.html#20aa2341e78fa88991cca3a6aea1ddc2">00133</a>   vtkQuaternionList *QuaternionList; <span class="comment">//used for linear quaternion interpolation</span>
<a name="l00134"></a>00134   
<a name="l00135"></a>00135   <span class="comment">// Internal method for spherical, linear interpolation</span>
<a name="l00136"></a>00136   <span class="keywordtype">void</span> Slerp(<span class="keywordtype">double</span> t, <span class="keywordtype">double</span> q0[4], <span class="keywordtype">double</span> q1[4], <span class="keywordtype">double</span> q[4]);
<a name="l00137"></a>00137 
<a name="l00138"></a>00138   <span class="comment">// Internal methods supporting spline interpolation</span>
<a name="l00139"></a>00139   <span class="keyword">static</span> <span class="keywordtype">void</span> InnerPoint(<span class="keywordtype">double</span> q0[4], <span class="keywordtype">double</span> q1[4], <span class="keywordtype">double</span> q2[4], <span class="keywordtype">double</span> q[4]);
<a name="l00140"></a>00140 
<a name="l00141"></a>00141 <span class="keyword">private</span>:
<a name="l00142"></a>00142   <a class="code" href="a01450.html" title="interpolate a quaternion">vtkQuaternionInterpolator</a>(<span class="keyword">const</span> <a class="code" href="a01450.html" title="interpolate a quaternion">vtkQuaternionInterpolator</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00143"></a>00143   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01450.html" title="interpolate a quaternion">vtkQuaternionInterpolator</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00144"></a>00144 
<a name="l00145"></a>00145 };
<a name="l00146"></a>00146 
<a name="l00147"></a>00147 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:49 2009 for VTK by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>