<!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/vtkParametricSpline.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/vtkParametricSpline.h</h1><a href="a02314.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: vtkParametricSpline.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="l00040"></a>00040 <span class="preprocessor">#ifndef __vtkParametricSpline_h</span> <a name="l00041"></a>00041 <span class="preprocessor"></span><span class="preprocessor">#define __vtkParametricSpline_h</span> <a name="l00042"></a>00042 <span class="preprocessor"></span> <a name="l00043"></a>00043 <span class="keyword">class </span><a class="code" href="a01588.html" title="spline abstract class for interpolating splines">vtkSpline</a>; <a name="l00044"></a>00044 <span class="keyword">class </span><a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>; <a name="l00045"></a>00045 <a name="l00046"></a>00046 <span class="preprocessor">#include "<a class="code" href="a02097.html">vtkParametricFunction.h</a>"</span> <a name="l00047"></a>00047 <a name="l00048"></a><a class="code" href="a01173.html">00048</a> <span class="keyword">class </span><a class="code" href="a02170.html#95ced7977a6b6b1bf9f38bf04e3835b6">VTK_FILTERING_EXPORT</a> <a class="code" href="a01173.html" title="parametric function for 1D interpolating splines">vtkParametricSpline</a> : <span class="keyword">public</span> <a class="code" href="a01167.html" title="abstract interface for parametric functions">vtkParametricFunction</a> <a name="l00049"></a>00049 { <a name="l00050"></a>00050 <span class="keyword">public</span>: <a name="l00051"></a><a class="code" href="a01173.html#67725ec1d931d256722d34ea6c90c664">00051</a> vtkTypeRevisionMacro(<a class="code" href="a01173.html" title="parametric function for 1D interpolating splines">vtkParametricSpline</a>,<a class="code" href="a01167.html" title="abstract interface for parametric functions">vtkParametricFunction</a>); <a name="l00052"></a>00052 <span class="keywordtype">void</span> <a class="code" href="a01167.html#df5f1a91e154220007690f2a4c1e3969">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00053"></a>00053 <a name="l00058"></a>00058 <span class="keyword">static</span> <a class="code" href="a01173.html" title="parametric function for 1D interpolating splines">vtkParametricSpline</a> *<a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>(); <a name="l00059"></a>00059 <a name="l00061"></a><a class="code" href="a01173.html#01df589b98ccd6cd25312e564fa588f4">00061</a> <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01167.html#093975fadf60dc8ce3ea0baac1b2ca34">GetDimension</a>() {<span class="keywordflow">return</span> 1;} <a name="l00062"></a>00062 <a name="l00065"></a>00065 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01167.html#5d13e377b1cff56856b60d10bb66be34">Evaluate</a>(<span class="keywordtype">double</span> u[3], <span class="keywordtype">double</span> Pt[3], <span class="keywordtype">double</span> Du[9]); <a name="l00066"></a>00066 <a name="l00069"></a>00069 <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="a01167.html#bb043638834315b6f18eb049ab8fdb9e">EvaluateScalar</a>(<span class="keywordtype">double</span> u[3], <span class="keywordtype">double</span> Pt[3], <span class="keywordtype">double</span> Du[9]); <a name="l00070"></a>00070 <a name="l00072"></a>00072 <a name="l00075"></a>00075 <span class="keywordtype">void</span> SetXSpline(<a class="code" href="a01588.html" title="spline abstract class for interpolating splines">vtkSpline</a>*); <a name="l00076"></a>00076 <span class="keywordtype">void</span> SetYSpline(<a class="code" href="a01588.html" title="spline abstract class for interpolating splines">vtkSpline</a>*); <a name="l00077"></a>00077 <span class="keywordtype">void</span> SetZSpline(<a class="code" href="a01588.html" title="spline abstract class for interpolating splines">vtkSpline</a>*); <a name="l00078"></a>00078 vtkGetObjectMacro(XSpline,<a class="code" href="a01588.html" title="spline abstract class for interpolating splines">vtkSpline</a>); <a name="l00079"></a>00079 vtkGetObjectMacro(YSpline,<a class="code" href="a01588.html" title="spline abstract class for interpolating splines">vtkSpline</a>); <a name="l00080"></a>00080 vtkGetObjectMacro(ZSpline,<a class="code" href="a01588.html" title="spline abstract class for interpolating splines">vtkSpline</a>); <a name="l00082"></a>00082 <a name="l00084"></a>00084 <a name="l00087"></a>00087 <span class="keywordtype">void</span> SetPoints(<a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>*); <a name="l00088"></a>00088 vtkGetObjectMacro(Points,<a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>); <a name="l00090"></a>00090 <a name="l00092"></a>00092 <a name="l00095"></a>00095 vtkSetMacro(Closed,<span class="keywordtype">int</span>); <a name="l00096"></a>00096 vtkGetMacro(Closed,<span class="keywordtype">int</span>); <a name="l00097"></a>00097 vtkBooleanMacro(Closed,<span class="keywordtype">int</span>); <a name="l00099"></a>00099 <a name="l00101"></a>00101 <a name="l00103"></a>00103 vtkSetMacro(ParameterizeByLength,<span class="keywordtype">int</span>); <a name="l00104"></a>00104 vtkGetMacro(ParameterizeByLength,<span class="keywordtype">int</span>); <a name="l00105"></a>00105 vtkBooleanMacro(ParameterizeByLength,<span class="keywordtype">int</span>); <a name="l00107"></a>00107 <a name="l00109"></a>00109 <a name="l00117"></a>00117 vtkSetClampMacro(LeftConstraint,<span class="keywordtype">int</span>,0,3); <a name="l00118"></a>00118 vtkGetMacro(LeftConstraint,<span class="keywordtype">int</span>); <a name="l00119"></a>00119 vtkSetClampMacro(RightConstraint,<span class="keywordtype">int</span>,0,3); <a name="l00120"></a>00120 vtkGetMacro(RightConstraint,<span class="keywordtype">int</span>); <a name="l00122"></a>00122 <a name="l00124"></a>00124 <a name="l00126"></a>00126 vtkSetMacro(LeftValue,<span class="keywordtype">double</span>); <a name="l00127"></a>00127 vtkGetMacro(LeftValue,<span class="keywordtype">double</span>); <a name="l00128"></a>00128 vtkSetMacro(RightValue,<span class="keywordtype">double</span>); <a name="l00129"></a>00129 vtkGetMacro(RightValue,<span class="keywordtype">double</span>); <a name="l00131"></a>00131 <a name="l00132"></a>00132 <span class="keyword">protected</span>: <a name="l00133"></a>00133 <a class="code" href="a01173.html" title="parametric function for 1D interpolating splines">vtkParametricSpline</a>(); <a name="l00134"></a>00134 ~<a class="code" href="a01173.html" title="parametric function for 1D interpolating splines">vtkParametricSpline</a>(); <a name="l00135"></a>00135 <a name="l00136"></a>00136 <span class="comment">// Points definition</span> <a name="l00137"></a><a class="code" href="a01173.html#23796830ea93bac7b40f6d486809e477">00137</a> <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a> *Points; <a name="l00138"></a>00138 <a name="l00139"></a>00139 <span class="comment">// The interpolating splines for each of the x-y-z coordinates</span> <a name="l00140"></a><a class="code" href="a01173.html#061babe5dfb61995582e63dd72315fd3">00140</a> <a class="code" href="a01588.html" title="spline abstract class for interpolating splines">vtkSpline</a> *XSpline; <a name="l00141"></a><a class="code" href="a01173.html#ada41d36821a7310a8165ace4ccadf96">00141</a> <a class="code" href="a01588.html" title="spline abstract class for interpolating splines">vtkSpline</a> *YSpline; <a name="l00142"></a><a class="code" href="a01173.html#d0813a8c56da457f89011a627006f9c7">00142</a> <a class="code" href="a01588.html" title="spline abstract class for interpolating splines">vtkSpline</a> *ZSpline; <a name="l00143"></a>00143 <a name="l00144"></a>00144 <span class="comment">// Supplemental variables</span> <a name="l00145"></a><a class="code" href="a01173.html#1c848b4d245ae750ae6946fe5e0068b4">00145</a> <span class="keywordtype">int</span> Closed; <a name="l00146"></a><a class="code" href="a01173.html#90be04ed03966f1468a7b8269e6cd415">00146</a> <span class="keywordtype">int</span> LeftConstraint; <a name="l00147"></a><a class="code" href="a01173.html#7ceef268ef9d3ce0342f32f4bc814cfb">00147</a> <span class="keywordtype">int</span> RightConstraint; <a name="l00148"></a><a class="code" href="a01173.html#07ae5c43a0e8ea80cdbd0a5ded23424f">00148</a> <span class="keywordtype">double</span> LeftValue; <a name="l00149"></a><a class="code" href="a01173.html#41bac0a996207084b260e7c7589a7b07">00149</a> <span class="keywordtype">double</span> RightValue; <a name="l00150"></a><a class="code" href="a01173.html#1f7a5e3044efe1d1c1cee9951941675e">00150</a> <span class="keywordtype">int</span> ParameterizeByLength; <a name="l00151"></a>00151 <a name="l00152"></a>00152 <span class="comment">// Initializing the spline</span> <a name="l00153"></a><a class="code" href="a01173.html#aa8d9a91b4d93e976888c13e06ceda99">00153</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> InitializeTime; <a name="l00154"></a>00154 <span class="keywordtype">int</span> Initialize(); <a name="l00155"></a>00155 <a name="l00156"></a>00156 <span class="comment">// Internal variable for managing parametric coordinates</span> <a name="l00157"></a><a class="code" href="a01173.html#1ff1c0ac3d1f4c2595716a0587a65321">00157</a> <span class="keywordtype">double</span> Length; <a name="l00158"></a><a class="code" href="a01173.html#2ea4c729dd5ddf4438f210e9ef38e1d2">00158</a> <span class="keywordtype">double</span> ClosedLength; <a name="l00159"></a>00159 <a name="l00160"></a>00160 <span class="keyword">private</span>: <a name="l00161"></a>00161 <a class="code" href="a01173.html" title="parametric function for 1D interpolating splines">vtkParametricSpline</a>(<span class="keyword">const</span> <a class="code" href="a01173.html" title="parametric function for 1D interpolating splines">vtkParametricSpline</a>&); <span class="comment">// Not implemented.</span> <a name="l00162"></a>00162 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01173.html" title="parametric function for 1D interpolating splines">vtkParametricSpline</a>&); <span class="comment">// Not implemented.</span> <a name="l00163"></a>00163 }; <a name="l00164"></a>00164 <a name="l00165"></a>00165 <span class="preprocessor">#endif</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:16 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>