Sophie

Sophie

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

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/vtkTupleInterpolator.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/vtkTupleInterpolator.h</h1><a href="a03570.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: vtkTupleInterpolator.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="l00043"></a>00043 <span class="preprocessor">#ifndef __vtkTupleInterpolator_h</span>
<a name="l00044"></a>00044 <span class="preprocessor"></span><span class="preprocessor">#define __vtkTupleInterpolator_h</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span>
<a name="l00046"></a>00046 <span class="preprocessor">#include "<a class="code" href="a02079.html">vtkObject.h</a>"</span>
<a name="l00047"></a>00047 
<a name="l00048"></a>00048 <span class="keyword">class </span><a class="code" href="a01588.html" title="spline abstract class for interpolating splines">vtkSpline</a>;
<a name="l00049"></a>00049 <span class="keyword">class </span><a class="code" href="a01215.html" title="Defines a 1D piecewise function.">vtkPiecewiseFunction</a>;
<a name="l00050"></a>00050 
<a name="l00051"></a>00051 
<a name="l00052"></a><a class="code" href="a01770.html">00052</a> <span class="keyword">class </span><a class="code" href="a02170.html#4019f67b2e7d601f2cf984e448308dbb">VTK_RENDERING_EXPORT</a> <a class="code" href="a01770.html" title="interpolate a tuple of arbitray size">vtkTupleInterpolator</a> : <span class="keyword">public</span> <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>
<a name="l00053"></a>00053 {
<a name="l00054"></a>00054 <span class="keyword">public</span>:
<a name="l00055"></a><a class="code" href="a01770.html#09211942ebb250baff394a138fadf389">00055</a>   vtkTypeRevisionMacro(<a class="code" href="a01770.html" title="interpolate a tuple of arbitray size">vtkTupleInterpolator</a>, <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>);
<a name="l00056"></a>00056   <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="l00057"></a>00057 
<a name="l00059"></a>00059   <span class="keyword">static</span> <a class="code" href="a01770.html" title="interpolate a tuple of arbitray size">vtkTupleInterpolator</a>* <a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>();
<a name="l00060"></a>00060 
<a name="l00062"></a>00062 
<a name="l00064"></a>00064   <span class="keywordtype">void</span> SetNumberOfComponents(<span class="keywordtype">int</span> numComp);
<a name="l00065"></a>00065   vtkGetMacro(NumberOfComponents,<span class="keywordtype">int</span>);
<a name="l00067"></a>00067 
<a name="l00069"></a>00069   <span class="keywordtype">int</span> GetNumberOfTuples();
<a name="l00070"></a>00070 
<a name="l00072"></a>00072 
<a name="l00076"></a>00076   <span class="keywordtype">double</span> GetMinimumT();
<a name="l00077"></a>00077   <span class="keywordtype">double</span> GetMaximumT();
<a name="l00079"></a>00079 
<a name="l00081"></a>00081   <span class="keywordtype">void</span> Initialize();
<a name="l00082"></a>00082   
<a name="l00087"></a>00087   <span class="keywordtype">void</span> AddTuple(<span class="keywordtype">double</span> t, <span class="keywordtype">double</span> tuple[]);
<a name="l00088"></a>00088 
<a name="l00091"></a>00091   <span class="keywordtype">void</span> RemoveTuple(<span class="keywordtype">double</span> t);
<a name="l00092"></a>00092 
<a name="l00097"></a>00097   <span class="keywordtype">void</span> InterpolateTuple(<span class="keywordtype">double</span> t, <span class="keywordtype">double</span> tuple[]);
<a name="l00098"></a>00098 
<a name="l00099"></a>00099 <span class="comment">//BTX</span>
<a name="l00101"></a>00101 <span class="comment"></span>
<a name="l00102"></a><a class="code" href="a01770.html#7b0cb235e8379bf475d72a13e740bf6e94c9bae79035cf9fa1a8f4e999924a08">00102</a>   <span class="keyword">enum</span> {INTERPOLATION_TYPE_LINEAR=0,
<a name="l00103"></a><a class="code" href="a01770.html#7b0cb235e8379bf475d72a13e740bf6e2e659e68f9bd2a06058bad1d6bbadf66">00103</a>         INTERPOLATION_TYPE_SPLINE
<a name="l00104"></a>00104   };
<a name="l00106"></a>00106 <span class="comment">//ETX</span>
<a name="l00107"></a>00107 
<a name="l00109"></a>00109 
<a name="l00117"></a>00117   <span class="keywordtype">void</span> SetInterpolationType(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2108e7f81709ed57920a45c02a954726847">type</a>);
<a name="l00118"></a>00118   vtkGetMacro(InterpolationType,<span class="keywordtype">int</span>);
<a name="l00119"></a><a class="code" href="a01770.html#edcf82138c23f59b61234bc1e15756fe">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="a01770.html#a981b61a8ff188bc83ce5e88ead03838">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="l00126"></a>00126 
<a name="l00132"></a>00132   <span class="keywordtype">void</span> SetInterpolatingSpline(<a class="code" href="a01588.html" title="spline abstract class for interpolating splines">vtkSpline</a>*);
<a name="l00133"></a>00133   vtkGetObjectMacro(InterpolatingSpline,<a class="code" href="a01588.html" title="spline abstract class for interpolating splines">vtkSpline</a>);
<a name="l00135"></a>00135 
<a name="l00136"></a>00136 <span class="keyword">protected</span>:
<a name="l00137"></a>00137   <a class="code" href="a01770.html" title="interpolate a tuple of arbitray size">vtkTupleInterpolator</a>();
<a name="l00138"></a>00138   <span class="keyword">virtual</span> ~<a class="code" href="a01770.html" title="interpolate a tuple of arbitray size">vtkTupleInterpolator</a>();
<a name="l00139"></a>00139 
<a name="l00140"></a>00140   <span class="comment">// The number of components being interpolated</span>
<a name="l00141"></a><a class="code" href="a01770.html#2956dd3be3891ab3e0110b641100a900">00141</a>   <span class="keywordtype">int</span> NumberOfComponents;
<a name="l00142"></a>00142 
<a name="l00143"></a>00143   <span class="comment">// Specify the type of interpolation to use</span>
<a name="l00144"></a><a class="code" href="a01770.html#c8d46f7b48794a87c3c87cb975e08251">00144</a>   <span class="keywordtype">int</span> InterpolationType;
<a name="l00145"></a>00145 
<a name="l00146"></a>00146   <span class="comment">// This is the default 1D spline to use</span>
<a name="l00147"></a><a class="code" href="a01770.html#68ea318ab4f813de774d895561993cf2">00147</a>   <a class="code" href="a01588.html" title="spline abstract class for interpolating splines">vtkSpline</a> *InterpolatingSpline;
<a name="l00148"></a>00148 
<a name="l00149"></a>00149   <span class="comment">// Internal variables for interpolation functions</span>
<a name="l00150"></a>00150   <span class="keywordtype">void</span> InitializeInterpolation();
<a name="l00151"></a><a class="code" href="a01770.html#7bd8e4f0f3bfe8c986bf44e63088ba5a">00151</a>   <a class="code" href="a01215.html" title="Defines a 1D piecewise function.">vtkPiecewiseFunction</a>    **Linear;
<a name="l00152"></a><a class="code" href="a01770.html#354b338efdb1b94a49860ec35c0724fd">00152</a>   <a class="code" href="a01588.html" title="spline abstract class for interpolating splines">vtkSpline</a>               **Spline;
<a name="l00153"></a>00153   
<a name="l00154"></a>00154 
<a name="l00155"></a>00155 <span class="keyword">private</span>:
<a name="l00156"></a>00156   <a class="code" href="a01770.html" title="interpolate a tuple of arbitray size">vtkTupleInterpolator</a>(<span class="keyword">const</span> <a class="code" href="a01770.html" title="interpolate a tuple of arbitray size">vtkTupleInterpolator</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00157"></a>00157   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01770.html" title="interpolate a tuple of arbitray size">vtkTupleInterpolator</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00158"></a>00158 
<a name="l00159"></a>00159 };
<a name="l00160"></a>00160 
<a name="l00161"></a>00161 <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>