<!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/Filtering/vtkSpline.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 Page</span></a></li> <li><a href="pages.html"><span>Related 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/Filtering/vtkSpline.h</h1><a href="a02365.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: vtkSpline.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="l00053"></a>00053 <span class="preprocessor">#ifndef __vtkSpline_h</span> <a name="l00054"></a>00054 <span class="preprocessor"></span><span class="preprocessor">#define __vtkSpline_h</span> <a name="l00055"></a>00055 <span class="preprocessor"></span> <a name="l00056"></a>00056 <span class="preprocessor">#include "<a class="code" href="a02079.html">vtkObject.h</a>"</span> <a name="l00057"></a>00057 <a name="l00058"></a>00058 <span class="keyword">class </span><a class="code" href="a01215.html" title="Defines a 1D piecewise function.">vtkPiecewiseFunction</a>; <a name="l00059"></a>00059 <a name="l00060"></a><a class="code" href="a01588.html">00060</a> <span class="keyword">class </span><a class="code" href="a02170.html#95ced7977a6b6b1bf9f38bf04e3835b6">VTK_FILTERING_EXPORT</a> <a class="code" href="a01588.html" title="spline abstract class for interpolating splines">vtkSpline</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="a01588.html#0d9ab90b0f18c8958557a237fe4579c6">00063</a> vtkTypeRevisionMacro(<a class="code" href="a01588.html" title="spline abstract class for interpolating splines">vtkSpline</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& 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 <a name="l00071"></a>00071 <span class="keywordtype">void</span> SetParametricRange(<span class="keywordtype">double</span> tMin, <span class="keywordtype">double</span> tMax); <a name="l00072"></a><a class="code" href="a01588.html#43caa15eaecc57c6148d0d4af847bbd1">00072</a> <span class="keywordtype">void</span> SetParametricRange(<span class="keywordtype">double</span> tRange[2]) <a name="l00073"></a>00073 {this->SetParametricRange(tRange[0],tRange[1]);} <a name="l00074"></a>00074 <span class="keywordtype">void</span> GetParametricRange(<span class="keywordtype">double</span> tRange[2]) <span class="keyword">const</span>; <a name="l00076"></a>00076 <a name="l00078"></a>00078 <a name="l00080"></a>00080 vtkSetMacro(ClampValue,<span class="keywordtype">int</span>); <a name="l00081"></a>00081 vtkGetMacro(ClampValue,<span class="keywordtype">int</span>); <a name="l00082"></a>00082 vtkBooleanMacro(ClampValue,<span class="keywordtype">int</span>); <a name="l00084"></a>00084 <a name="l00086"></a>00086 <span class="keyword">virtual</span> <span class="keywordtype">void</span> Compute () = 0; <a name="l00087"></a>00087 <a name="l00089"></a>00089 <span class="keyword">virtual</span> <span class="keywordtype">double</span> Evaluate (<span class="keywordtype">double</span> t) = 0; <a name="l00090"></a>00090 <a name="l00092"></a>00092 <span class="keywordtype">int</span> GetNumberOfPoints(); <a name="l00093"></a>00093 <a name="l00095"></a>00095 <span class="keywordtype">void</span> AddPoint (<span class="keywordtype">double</span> t, <span class="keywordtype">double</span> x); <a name="l00096"></a>00096 <a name="l00098"></a>00098 <span class="keywordtype">void</span> RemovePoint (<span class="keywordtype">double</span> t); <a name="l00099"></a>00099 <a name="l00101"></a>00101 <span class="keywordtype">void</span> RemoveAllPoints (); <a name="l00102"></a>00102 <a name="l00104"></a>00104 <a name="l00107"></a>00107 vtkSetMacro(Closed,<span class="keywordtype">int</span>); <a name="l00108"></a>00108 vtkGetMacro(Closed,<span class="keywordtype">int</span>); <a name="l00109"></a>00109 vtkBooleanMacro(Closed,<span class="keywordtype">int</span>); <a name="l00111"></a>00111 <a name="l00113"></a>00113 <a name="l00121"></a>00121 vtkSetClampMacro(LeftConstraint,<span class="keywordtype">int</span>,0,3); <a name="l00122"></a>00122 vtkGetMacro(LeftConstraint,<span class="keywordtype">int</span>); <a name="l00123"></a>00123 vtkSetClampMacro(RightConstraint,<span class="keywordtype">int</span>,0,3); <a name="l00124"></a>00124 vtkGetMacro(RightConstraint,<span class="keywordtype">int</span>); <a name="l00126"></a>00126 <a name="l00128"></a>00128 <a name="l00130"></a>00130 vtkSetMacro(LeftValue,<span class="keywordtype">double</span>); <a name="l00131"></a>00131 vtkGetMacro(LeftValue,<span class="keywordtype">double</span>); <a name="l00132"></a>00132 vtkSetMacro(RightValue,<span class="keywordtype">double</span>); <a name="l00133"></a>00133 vtkGetMacro(RightValue,<span class="keywordtype">double</span>); <a name="l00135"></a>00135 <a name="l00137"></a>00137 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="a01084.html#8137c0551b29bb996f0dd2f886bcd2da">GetMTime</a>(); <a name="l00138"></a>00138 <a name="l00140"></a>00140 <span class="keyword">virtual</span> <span class="keywordtype">void</span> DeepCopy(<a class="code" href="a01588.html" title="spline abstract class for interpolating splines">vtkSpline</a> *s); <a name="l00141"></a>00141 <a name="l00142"></a>00142 <span class="keyword">protected</span>: <a name="l00143"></a>00143 <a class="code" href="a01588.html" title="spline abstract class for interpolating splines">vtkSpline</a>(); <a name="l00144"></a>00144 ~<a class="code" href="a01588.html" title="spline abstract class for interpolating splines">vtkSpline</a>(); <a name="l00145"></a>00145 <a name="l00146"></a><a class="code" href="a01588.html#2ab384a48f41d8d29a5c56d51abc3055">00146</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> ComputeTime; <a name="l00147"></a><a class="code" href="a01588.html#e38dde3cddc2fd3c6f82fd15b2f092f8">00147</a> <span class="keywordtype">int</span> ClampValue; <a name="l00148"></a><a class="code" href="a01588.html#1fb6ad0919264e0902b9c88d44fedc2b">00148</a> <span class="keywordtype">double</span> *Intervals; <a name="l00149"></a><a class="code" href="a01588.html#73351d17a2c1e390a68cd1a7d042cb8e">00149</a> <span class="keywordtype">double</span> *Coefficients; <a name="l00150"></a><a class="code" href="a01588.html#4545f01fee4492ac3d904264ab86106c">00150</a> <span class="keywordtype">int</span> LeftConstraint; <a name="l00151"></a><a class="code" href="a01588.html#ec6e9c9b1be54302dd5f24a8294214c4">00151</a> <span class="keywordtype">double</span> LeftValue; <a name="l00152"></a><a class="code" href="a01588.html#281d14f891288bce8fb89ca9983ae75f">00152</a> <span class="keywordtype">int</span> RightConstraint; <a name="l00153"></a><a class="code" href="a01588.html#09dc8cf1d7fafa9fbecae5a56a5e4caa">00153</a> <span class="keywordtype">double</span> RightValue; <a name="l00154"></a><a class="code" href="a01588.html#55cfde3f2afd5e4494fcbeb2af8d2069">00154</a> <a class="code" href="a01215.html" title="Defines a 1D piecewise function.">vtkPiecewiseFunction</a> *PiecewiseFunction; <a name="l00155"></a><a class="code" href="a01588.html#6f2c22a8e04baeb5b8f6b0ff8e164d41">00155</a> <span class="keywordtype">int</span> Closed; <a name="l00156"></a>00156 <a name="l00157"></a>00157 <span class="comment">// Explicitly specify the parametric range.</span> <a name="l00158"></a><a class="code" href="a01588.html#3636478d4848cd5d3eddd4ca2fe3a0f3">00158</a> <span class="keywordtype">double</span> ParametricRange[2]; <a name="l00159"></a>00159 <a name="l00160"></a>00160 <span class="comment">// Helper methods</span> <a name="l00161"></a>00161 <span class="keywordtype">double</span> ComputeLeftDerivative(); <a name="l00162"></a>00162 <span class="keywordtype">double</span> ComputeRightDerivative(); <a name="l00163"></a>00163 <span class="keywordtype">int</span> FindIndex(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e3d5e7c015dff08d8daf72a0102e1444">size</a>, <span class="keywordtype">double</span> t); <a name="l00164"></a>00164 <a name="l00165"></a>00165 <span class="keyword">private</span>: <a name="l00166"></a>00166 <a class="code" href="a01588.html" title="spline abstract class for interpolating splines">vtkSpline</a>(<span class="keyword">const</span> <a class="code" href="a01588.html" title="spline abstract class for interpolating splines">vtkSpline</a>&); <span class="comment">// Not implemented.</span> <a name="l00167"></a>00167 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01588.html" title="spline abstract class for interpolating splines">vtkSpline</a>&); <span class="comment">// Not implemented.</span> <a name="l00168"></a>00168 }; <a name="l00169"></a>00169 <a name="l00170"></a>00170 <span class="preprocessor">#endif</span> <a name="l00171"></a>00171 <span class="preprocessor"></span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:17 2009 for VTK by <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>