Sophie

Sophie

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

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/vtkTransformInterpolator.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/vtkTransformInterpolator.h</h1><a href="a03567.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: vtkTransformInterpolator.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="l00052"></a>00052 <span class="preprocessor">#ifndef __vtkTransformInterpolator_h</span>
<a name="l00053"></a>00053 <span class="preprocessor"></span><span class="preprocessor">#define __vtkTransformInterpolator_h</span>
<a name="l00054"></a>00054 <span class="preprocessor"></span>
<a name="l00055"></a>00055 <span class="preprocessor">#include "<a class="code" href="a02079.html">vtkObject.h</a>"</span>
<a name="l00056"></a>00056 
<a name="l00057"></a>00057 
<a name="l00058"></a>00058 <span class="keyword">class </span><a class="code" href="a01723.html" title="describes linear transformations via a 4x4 matrix">vtkTransform</a>;
<a name="l00059"></a>00059 <span class="keyword">class </span><a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a>;
<a name="l00060"></a>00060 <span class="keyword">class </span><a class="code" href="a01318.html" title="represents an 3D object for placement in a rendered scene">vtkProp3D</a>;
<a name="l00061"></a>00061 <span class="keyword">class </span><a class="code" href="a01770.html" title="interpolate a tuple of arbitray size">vtkTupleInterpolator</a>;
<a name="l00062"></a>00062 <span class="keyword">class </span><a class="code" href="a01450.html" title="interpolate a quaternion">vtkQuaternionInterpolator</a>;
<a name="l00063"></a>00063 <span class="keyword">class </span>vtkTransformList;
<a name="l00064"></a>00064 
<a name="l00065"></a>00065 
<a name="l00066"></a><a class="code" href="a01729.html">00066</a> <span class="keyword">class </span><a class="code" href="a02170.html#4019f67b2e7d601f2cf984e448308dbb">VTK_RENDERING_EXPORT</a> <a class="code" href="a01729.html" title="interpolate a series of transformation matrices">vtkTransformInterpolator</a> : <span class="keyword">public</span> <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>
<a name="l00067"></a>00067 {
<a name="l00068"></a>00068 <span class="keyword">public</span>:
<a name="l00069"></a><a class="code" href="a01729.html#897efd3a3f2d13834f4890abcb5a7b0d">00069</a>   vtkTypeRevisionMacro(<a class="code" href="a01729.html" title="interpolate a series of transformation matrices">vtkTransformInterpolator</a>, <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>);
<a name="l00070"></a>00070   <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="l00071"></a>00071 
<a name="l00073"></a>00073   <span class="keyword">static</span> <a class="code" href="a01729.html" title="interpolate a series of transformation matrices">vtkTransformInterpolator</a>* <a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>();
<a name="l00074"></a>00074 
<a name="l00076"></a>00076   <span class="keywordtype">int</span> GetNumberOfTransforms();
<a name="l00077"></a>00077 
<a name="l00079"></a>00079 
<a name="l00082"></a>00082   <span class="keywordtype">double</span> GetMinimumT();
<a name="l00083"></a>00083   <span class="keywordtype">double</span> GetMaximumT();
<a name="l00085"></a>00085 
<a name="l00087"></a>00087   <span class="keywordtype">void</span> Initialize();
<a name="l00088"></a>00088   
<a name="l00090"></a>00090 
<a name="l00096"></a>00096   <span class="keywordtype">void</span> AddTransform(<span class="keywordtype">double</span> t, <a class="code" href="a01723.html" title="describes linear transformations via a 4x4 matrix">vtkTransform</a> *xform);
<a name="l00097"></a>00097   <span class="keywordtype">void</span> AddTransform(<span class="keywordtype">double</span> t, <a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> *matrix);
<a name="l00098"></a>00098   <span class="keywordtype">void</span> AddTransform(<span class="keywordtype">double</span> t, <a class="code" href="a01318.html" title="represents an 3D object for placement in a rendered scene">vtkProp3D</a> *prop3D);
<a name="l00100"></a>00100 
<a name="l00103"></a>00103   <span class="keywordtype">void</span> RemoveTransform(<span class="keywordtype">double</span> t);
<a name="l00104"></a>00104 
<a name="l00108"></a>00108   <span class="keywordtype">void</span> InterpolateTransform(<span class="keywordtype">double</span> t, <a class="code" href="a01723.html" title="describes linear transformations via a 4x4 matrix">vtkTransform</a> *xform);
<a name="l00109"></a>00109 
<a name="l00110"></a>00110 <span class="comment">//BTX</span>
<a name="l00112"></a>00112 <span class="comment"></span>
<a name="l00113"></a><a class="code" href="a01729.html#9d591df139067e00830fc8d080b996332cc3adb3b8bc1cda6e917a59f2a58507">00113</a>   <span class="keyword">enum</span> {INTERPOLATION_TYPE_LINEAR=0,
<a name="l00114"></a><a class="code" href="a01729.html#9d591df139067e00830fc8d080b99633f2f75f33fe5d647f9b582d62f96d58f0">00114</a>         INTERPOLATION_TYPE_SPLINE,
<a name="l00115"></a><a class="code" href="a01729.html#9d591df139067e00830fc8d080b996339c41ccf1c2f716823bb14b7523e09e21">00115</a>         INTERPOLATION_TYPE_MANUAL
<a name="l00116"></a>00116   };
<a name="l00118"></a>00118 <span class="comment">//ETX</span>
<a name="l00119"></a>00119 
<a name="l00121"></a>00121 
<a name="l00128"></a>00128   vtkSetClampMacro(InterpolationType,<span class="keywordtype">int</span>, INTERPOLATION_TYPE_LINEAR,
<a name="l00129"></a>00129                    INTERPOLATION_TYPE_MANUAL);
<a name="l00130"></a>00130   vtkGetMacro(InterpolationType,<span class="keywordtype">int</span>);
<a name="l00131"></a><a class="code" href="a01729.html#801f75a2b3ee7527cd1b8440cf4edffe">00131</a>   <span class="keywordtype">void</span> SetInterpolationTypeToLinear()
<a name="l00132"></a>00132     {this-&gt;SetInterpolationType(INTERPOLATION_TYPE_LINEAR);}
<a name="l00133"></a><a class="code" href="a01729.html#034b2984a73ae9e3d043ab568a9939d5">00133</a>   <span class="keywordtype">void</span> SetInterpolationTypeToSpline()
<a name="l00134"></a>00134     {this-&gt;SetInterpolationType(INTERPOLATION_TYPE_SPLINE);}
<a name="l00135"></a><a class="code" href="a01729.html#7e3a8932d1bb08d41b091556d8d80db0">00135</a>   <span class="keywordtype">void</span> SetInterpolationTypeToManual()
<a name="l00136"></a>00136     {this-&gt;SetInterpolationType(INTERPOLATION_TYPE_MANUAL);}
<a name="l00138"></a>00138 
<a name="l00140"></a>00140 
<a name="l00144"></a>00144   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetPositionInterpolator(<a class="code" href="a01770.html" title="interpolate a tuple of arbitray size">vtkTupleInterpolator</a>*);
<a name="l00145"></a>00145   vtkGetObjectMacro(<a class="code" href="a03761.html#88ade42854f67d6297898362e17a515fcb8d869c0151cc0b910735e0760118c2">PositionInterpolator</a>,<a class="code" href="a01770.html" title="interpolate a tuple of arbitray size">vtkTupleInterpolator</a>);
<a name="l00147"></a>00147 
<a name="l00149"></a>00149 
<a name="l00153"></a>00153   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetScaleInterpolator(<a class="code" href="a01770.html" title="interpolate a tuple of arbitray size">vtkTupleInterpolator</a>*);
<a name="l00154"></a>00154   vtkGetObjectMacro(ScaleInterpolator,<a class="code" href="a01770.html" title="interpolate a tuple of arbitray size">vtkTupleInterpolator</a>);
<a name="l00156"></a>00156 
<a name="l00158"></a>00158 
<a name="l00162"></a>00162   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetRotationInterpolator(<a class="code" href="a01450.html" title="interpolate a quaternion">vtkQuaternionInterpolator</a>*);
<a name="l00163"></a>00163   vtkGetObjectMacro(RotationInterpolator,<a class="code" href="a01450.html" title="interpolate a quaternion">vtkQuaternionInterpolator</a>);
<a name="l00165"></a>00165 
<a name="l00168"></a>00168   <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="a01084.html#8137c0551b29bb996f0dd2f886bcd2da">GetMTime</a>();
<a name="l00169"></a>00169 
<a name="l00170"></a>00170 <span class="keyword">protected</span>:
<a name="l00171"></a>00171   <a class="code" href="a01729.html" title="interpolate a series of transformation matrices">vtkTransformInterpolator</a>();
<a name="l00172"></a>00172   <span class="keyword">virtual</span> ~<a class="code" href="a01729.html" title="interpolate a series of transformation matrices">vtkTransformInterpolator</a>();
<a name="l00173"></a>00173 
<a name="l00174"></a>00174   <span class="comment">// Control the interpolation type</span>
<a name="l00175"></a><a class="code" href="a01729.html#05bb9b8ad3fa2518bd86130139d1e816">00175</a>   <span class="keywordtype">int</span> InterpolationType;
<a name="l00176"></a>00176 
<a name="l00177"></a>00177   <span class="comment">// Interpolators</span>
<a name="l00178"></a><a class="code" href="a01729.html#f03581ef6d7db4afb37567d4baf30211">00178</a>   <a class="code" href="a01770.html" title="interpolate a tuple of arbitray size">vtkTupleInterpolator</a>      *<a class="code" href="a03761.html#88ade42854f67d6297898362e17a515fcb8d869c0151cc0b910735e0760118c2">PositionInterpolator</a>;
<a name="l00179"></a><a class="code" href="a01729.html#712e19200e2f5df57ed901ea1d23c36e">00179</a>   <a class="code" href="a01770.html" title="interpolate a tuple of arbitray size">vtkTupleInterpolator</a>      *ScaleInterpolator;
<a name="l00180"></a><a class="code" href="a01729.html#56c4b5ffe23c46defbc0087ce59e87c5">00180</a>   <a class="code" href="a01450.html" title="interpolate a quaternion">vtkQuaternionInterpolator</a> *RotationInterpolator;
<a name="l00181"></a>00181   
<a name="l00182"></a>00182   <span class="comment">// Initialize the interpolating splines</span>
<a name="l00183"></a><a class="code" href="a01729.html#32752b09989375b127d187e4e29ecf3f">00183</a>   <span class="keywordtype">int</span> Initialized;
<a name="l00184"></a><a class="code" href="a01729.html#b15c7152597bee604ffa8167faa1ed9d">00184</a>   <a class="code" href="a01719.html" title="record modification and/or execution time">vtkTimeStamp</a> InitializeTime;
<a name="l00185"></a>00185   <span class="keywordtype">void</span> InitializeInterpolation();
<a name="l00186"></a>00186   
<a name="l00187"></a>00187   <span class="comment">// Keep track of inserted data</span>
<a name="l00188"></a><a class="code" href="a01729.html#eb238bdf0dc0a6889002726824ac831b">00188</a>   vtkTransformList *TransformList;
<a name="l00189"></a>00189 
<a name="l00190"></a>00190 <span class="keyword">private</span>:
<a name="l00191"></a>00191   <a class="code" href="a01729.html" title="interpolate a series of transformation matrices">vtkTransformInterpolator</a>(<span class="keyword">const</span> <a class="code" href="a01729.html" title="interpolate a series of transformation matrices">vtkTransformInterpolator</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00192"></a>00192   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01729.html" title="interpolate a series of transformation matrices">vtkTransformInterpolator</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00193"></a>00193 
<a name="l00194"></a>00194 };
<a name="l00195"></a>00195 
<a name="l00196"></a>00196 <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>