Sophie

Sophie

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

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/Graphics/vtkHyperStreamline.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/Graphics/vtkHyperStreamline.h</h1><a href="a02574.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: vtkHyperStreamline.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="l00050"></a>00050 <span class="preprocessor">#ifndef __vtkHyperStreamline_h</span>
<a name="l00051"></a>00051 <span class="preprocessor"></span><span class="preprocessor">#define __vtkHyperStreamline_h</span>
<a name="l00052"></a>00052 <span class="preprocessor"></span>
<a name="l00053"></a>00053 <span class="preprocessor">#include "<a class="code" href="a02331.html">vtkPolyDataAlgorithm.h</a>"</span>
<a name="l00054"></a>00054 
<a name="l00055"></a><a class="code" href="a02574.html#ac2e7f498a0108e301ee02143dd1fb37">00055</a> <span class="preprocessor">#define VTK_INTEGRATE_FORWARD 0</span>
<a name="l00056"></a><a class="code" href="a02574.html#49a0a8a5acbc680a8f9d4a4cb21f0784">00056</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_INTEGRATE_BACKWARD 1</span>
<a name="l00057"></a><a class="code" href="a02574.html#ea9726c0517a9853eada8d27afcd2de8">00057</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_INTEGRATE_BOTH_DIRECTIONS 2</span>
<a name="l00058"></a>00058 <span class="preprocessor"></span>
<a name="l00059"></a><a class="code" href="a02574.html#5f3a85b2446819920abee68910e1a996">00059</a> <span class="preprocessor">#define VTK_INTEGRATE_MAJOR_EIGENVECTOR 0</span>
<a name="l00060"></a><a class="code" href="a02574.html#81a40961d93b6f955f80300cff82b361">00060</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_INTEGRATE_MEDIUM_EIGENVECTOR 1</span>
<a name="l00061"></a><a class="code" href="a02574.html#d73ed5b354ee9936e39ca74af2bd46d6">00061</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_INTEGRATE_MINOR_EIGENVECTOR 2</span>
<a name="l00062"></a>00062 <span class="preprocessor"></span>
<a name="l00063"></a>00063 
<a name="l00064"></a>00064 <span class="keyword">class </span>vtkHyperArray;
<a name="l00065"></a>00065 
<a name="l00066"></a><a class="code" href="a00714.html">00066</a> <span class="keyword">class </span><a class="code" href="a02170.html#c3c1ffe2fe47b9b70ba90182b7860cce">VTK_GRAPHICS_EXPORT</a> <a class="code" href="a00714.html" title="generate hyperstreamline in arbitrary dataset">vtkHyperStreamline</a> : <span class="keyword">public</span> <a class="code" href="a01261.html" title="Superclass for algorithms that produce only polydata as output.">vtkPolyDataAlgorithm</a>
<a name="l00067"></a>00067 {
<a name="l00068"></a>00068 <span class="keyword">public</span>:
<a name="l00069"></a><a class="code" href="a00714.html#dbd2200a7a78a0f2725299f5eeffb288">00069</a>   vtkTypeRevisionMacro(<a class="code" href="a00714.html" title="generate hyperstreamline in arbitrary dataset">vtkHyperStreamline</a>,<a class="code" href="a01261.html" title="Superclass for algorithms that produce only polydata as output.">vtkPolyDataAlgorithm</a>);
<a name="l00070"></a>00070   <span class="keywordtype">void</span> <a class="code" href="a01261.html#e6d59a63261b0c56f8f473984ae0e1b6">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="l00076"></a>00076   <span class="keyword">static</span> <a class="code" href="a00714.html" title="generate hyperstreamline in arbitrary dataset">vtkHyperStreamline</a> *<a class="code" href="a01261.html#cf785ac526132296ff652c636f713b5e">New</a>();
<a name="l00077"></a>00077 
<a name="l00081"></a>00081   <span class="keywordtype">void</span> SetStartLocation(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> cellId, <span class="keywordtype">int</span> subId, <span class="keywordtype">double</span> pcoords[3]);
<a name="l00082"></a>00082 
<a name="l00084"></a>00084 
<a name="l00087"></a>00087   <span class="keywordtype">void</span> SetStartLocation(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> cellId, <span class="keywordtype">int</span> subId, <span class="keywordtype">double</span> r, <span class="keywordtype">double</span> s,
<a name="l00088"></a>00088                         <span class="keywordtype">double</span> t);
<a name="l00090"></a>00090 
<a name="l00093"></a>00093   <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> GetStartLocation(<span class="keywordtype">int</span>&amp; subId, <span class="keywordtype">double</span> pcoords[3]);
<a name="l00094"></a>00094 
<a name="l00098"></a>00098   <span class="keywordtype">void</span> SetStartPosition(<span class="keywordtype">double</span> x[3]);
<a name="l00099"></a>00099 
<a name="l00103"></a>00103   <span class="keywordtype">void</span> SetStartPosition(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> z);
<a name="l00104"></a>00104 
<a name="l00107"></a>00107   <span class="keywordtype">double</span> *GetStartPosition();
<a name="l00108"></a>00108 
<a name="l00110"></a>00110 
<a name="l00112"></a>00112   vtkSetClampMacro(MaximumPropagationDistance,<span class="keywordtype">double</span>,0.0,<a class="code" href="a02149.html#a933eb1ff8ef089de59cce7b41e21261">VTK_DOUBLE_MAX</a>);
<a name="l00113"></a>00113   vtkGetMacro(MaximumPropagationDistance,<span class="keywordtype">double</span>);
<a name="l00115"></a>00115 
<a name="l00117"></a>00117 
<a name="l00124"></a>00124   vtkSetClampMacro(IntegrationEigenvector,<span class="keywordtype">int</span>,
<a name="l00125"></a>00125                    <a class="code" href="a02574.html#5f3a85b2446819920abee68910e1a996">VTK_INTEGRATE_MAJOR_EIGENVECTOR</a>,
<a name="l00126"></a>00126                    <a class="code" href="a02574.html#d73ed5b354ee9936e39ca74af2bd46d6">VTK_INTEGRATE_MINOR_EIGENVECTOR</a>);
<a name="l00127"></a>00127   vtkGetMacro(IntegrationEigenvector,<span class="keywordtype">int</span>);
<a name="l00128"></a><a class="code" href="a00714.html#089ccf83aba6576f05a9b13e8db43326">00128</a>   <span class="keywordtype">void</span> SetIntegrationEigenvectorToMajor()
<a name="l00129"></a>00129     {this-&gt;SetIntegrationEigenvector(<a class="code" href="a02574.html#5f3a85b2446819920abee68910e1a996">VTK_INTEGRATE_MAJOR_EIGENVECTOR</a>);};
<a name="l00130"></a><a class="code" href="a00714.html#37d840dc9732fc3be8ef680ce95e2c82">00130</a>   <span class="keywordtype">void</span> SetIntegrationEigenvectorToMedium()
<a name="l00131"></a>00131     {this-&gt;SetIntegrationEigenvector(<a class="code" href="a02574.html#81a40961d93b6f955f80300cff82b361">VTK_INTEGRATE_MEDIUM_EIGENVECTOR</a>);};
<a name="l00132"></a><a class="code" href="a00714.html#cb76431a0a9f19b5edb5e63e2137e88b">00132</a>   <span class="keywordtype">void</span> SetIntegrationEigenvectorToMinor()
<a name="l00133"></a>00133     {this-&gt;SetIntegrationEigenvector(<a class="code" href="a02574.html#d73ed5b354ee9936e39ca74af2bd46d6">VTK_INTEGRATE_MINOR_EIGENVECTOR</a>);};
<a name="l00135"></a>00135 
<a name="l00137"></a>00137 
<a name="l00140"></a><a class="code" href="a00714.html#a18a3f8b9919f627da35e6d4f5df4226">00140</a>   <span class="keywordtype">void</span> IntegrateMajorEigenvector()
<a name="l00141"></a>00141     {this-&gt;SetIntegrationEigenvectorToMajor();};
<a name="l00143"></a>00143 
<a name="l00145"></a>00145 
<a name="l00148"></a><a class="code" href="a00714.html#14759ccbbf2a1891d6e6ae56a04d74ea">00148</a>   <span class="keywordtype">void</span> IntegrateMediumEigenvector()
<a name="l00149"></a>00149     {this-&gt;SetIntegrationEigenvectorToMedium();};
<a name="l00151"></a>00151 
<a name="l00153"></a>00153 
<a name="l00156"></a><a class="code" href="a00714.html#11fb94ccb287533d546233d6048643cb">00156</a>   <span class="keywordtype">void</span> IntegrateMinorEigenvector()
<a name="l00157"></a>00157     {this-&gt;SetIntegrationEigenvectorToMinor();};
<a name="l00159"></a>00159 
<a name="l00161"></a>00161 
<a name="l00163"></a>00163   vtkSetClampMacro(IntegrationStepLength,<span class="keywordtype">double</span>,0.001,0.5);
<a name="l00164"></a>00164   vtkGetMacro(IntegrationStepLength,<span class="keywordtype">double</span>);
<a name="l00166"></a>00166 
<a name="l00168"></a>00168 
<a name="l00171"></a>00171   vtkSetClampMacro(StepLength,<span class="keywordtype">double</span>,0.000001,1.0);
<a name="l00172"></a>00172   vtkGetMacro(StepLength,<span class="keywordtype">double</span>);
<a name="l00174"></a>00174 
<a name="l00176"></a>00176 
<a name="l00177"></a>00177   vtkSetClampMacro(IntegrationDirection,<span class="keywordtype">int</span>,
<a name="l00178"></a>00178                   <a class="code" href="a02574.html#ac2e7f498a0108e301ee02143dd1fb37">VTK_INTEGRATE_FORWARD</a>,<a class="code" href="a02574.html#ea9726c0517a9853eada8d27afcd2de8">VTK_INTEGRATE_BOTH_DIRECTIONS</a>);
<a name="l00179"></a>00179   vtkGetMacro(IntegrationDirection,<span class="keywordtype">int</span>);
<a name="l00180"></a><a class="code" href="a00714.html#657be9244dc032ef4ab11f1af53870b3">00180</a>   <span class="keywordtype">void</span> SetIntegrationDirectionToForward()
<a name="l00181"></a>00181     {this-&gt;SetIntegrationDirection(<a class="code" href="a02574.html#ac2e7f498a0108e301ee02143dd1fb37">VTK_INTEGRATE_FORWARD</a>);};
<a name="l00182"></a><a class="code" href="a00714.html#2dc7f3b8e7a55611923b7d14c9de178a">00182</a>   <span class="keywordtype">void</span> SetIntegrationDirectionToBackward()
<a name="l00183"></a>00183     {this-&gt;SetIntegrationDirection(<a class="code" href="a02574.html#49a0a8a5acbc680a8f9d4a4cb21f0784">VTK_INTEGRATE_BACKWARD</a>);};
<a name="l00184"></a><a class="code" href="a00714.html#9deab3ecd58810d51b229f4598d53f33">00184</a>   <span class="keywordtype">void</span> SetIntegrationDirectionToIntegrateBothDirections()
<a name="l00185"></a>00185     {this-&gt;SetIntegrationDirection(<a class="code" href="a02574.html#ea9726c0517a9853eada8d27afcd2de8">VTK_INTEGRATE_BOTH_DIRECTIONS</a>);};
<a name="l00187"></a>00187 
<a name="l00189"></a>00189 
<a name="l00191"></a>00191   vtkSetClampMacro(TerminalEigenvalue,<span class="keywordtype">double</span>,0.0,<a class="code" href="a02149.html#a933eb1ff8ef089de59cce7b41e21261">VTK_DOUBLE_MAX</a>);
<a name="l00192"></a>00192   vtkGetMacro(TerminalEigenvalue,<span class="keywordtype">double</span>);
<a name="l00194"></a>00194 
<a name="l00196"></a>00196 
<a name="l00198"></a>00198   vtkSetClampMacro(NumberOfSides,<span class="keywordtype">int</span>,3,<a class="code" href="a02149.html#804f55a35836c1770f9176f3a01c4d5e">VTK_LARGE_INTEGER</a>);
<a name="l00199"></a>00199   vtkGetMacro(NumberOfSides,<span class="keywordtype">int</span>);
<a name="l00201"></a>00201 
<a name="l00203"></a>00203 
<a name="l00207"></a>00207   vtkSetClampMacro(Radius,<span class="keywordtype">double</span>,0.0001,<a class="code" href="a02149.html#a933eb1ff8ef089de59cce7b41e21261">VTK_DOUBLE_MAX</a>);
<a name="l00208"></a>00208   vtkGetMacro(Radius,<span class="keywordtype">double</span>);
<a name="l00210"></a>00210 
<a name="l00212"></a>00212 
<a name="l00214"></a>00214   vtkSetMacro(LogScaling,<span class="keywordtype">int</span>);
<a name="l00215"></a>00215   vtkGetMacro(LogScaling,<span class="keywordtype">int</span>);
<a name="l00216"></a>00216   vtkBooleanMacro(LogScaling,<span class="keywordtype">int</span>);
<a name="l00218"></a>00218 
<a name="l00219"></a>00219 <span class="keyword">protected</span>:
<a name="l00220"></a>00220   <a class="code" href="a00714.html" title="generate hyperstreamline in arbitrary dataset">vtkHyperStreamline</a>();
<a name="l00221"></a>00221   ~<a class="code" href="a00714.html" title="generate hyperstreamline in arbitrary dataset">vtkHyperStreamline</a>();
<a name="l00222"></a>00222 
<a name="l00223"></a>00223   <span class="comment">// Integrate data</span>
<a name="l00224"></a>00224   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01261.html#6b5a43ab1f9bbcb368c7dc83e4afe068">RequestData</a>(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *, <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> **, <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *);
<a name="l00225"></a>00225   <span class="keywordtype">int</span> BuildTube(<a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a> *input, <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *output);
<a name="l00226"></a>00226 
<a name="l00227"></a>00227   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01261.html#a9084b97ab9c0c8c76e490fa9776a832">FillInputPortInformation</a>(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210710cb6d12e418b21e8fb3d79ac32f51c">port</a>, <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21023da246d4a744e861548382bb79fad81">info</a>);
<a name="l00228"></a>00228 
<a name="l00229"></a>00229   <span class="comment">// Flag indicates where streamlines start from (either position or location)</span>
<a name="l00230"></a><a class="code" href="a00714.html#9907906813e635a2ddeb0c17d3f3fa19">00230</a>   <span class="keywordtype">int</span> StartFrom;
<a name="l00231"></a>00231 
<a name="l00232"></a>00232   <span class="comment">// Starting from cell location</span>
<a name="l00233"></a><a class="code" href="a00714.html#2146e721a7bd657f41d457d3ac4e8463">00233</a>   <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> StartCell;
<a name="l00234"></a><a class="code" href="a00714.html#01061095fdde83430f20d8db2494a9b2">00234</a>   <span class="keywordtype">int</span> StartSubId;
<a name="l00235"></a><a class="code" href="a00714.html#fc5fd13cd8c65b5036f8125b77a9d1bf">00235</a>   <span class="keywordtype">double</span> StartPCoords[3];
<a name="l00236"></a>00236 
<a name="l00237"></a>00237   <span class="comment">// starting from global x-y-z position</span>
<a name="l00238"></a><a class="code" href="a00714.html#9d2e8cb6b2dc942c2df7133edd043627">00238</a>   <span class="keywordtype">double</span> StartPosition[3];
<a name="l00239"></a>00239 
<a name="l00240"></a>00240   <span class="comment">//array of hyperstreamlines</span>
<a name="l00241"></a><a class="code" href="a00714.html#a6799c664d15c7f9caaa21b6a0ae1f9a">00241</a>   vtkHyperArray *Streamers;
<a name="l00242"></a><a class="code" href="a00714.html#7ad9f1ae09da5366cf92391675aa121a">00242</a>   <span class="keywordtype">int</span> NumberOfStreamers;
<a name="l00243"></a>00243 
<a name="l00244"></a>00244   <span class="comment">// length of hyperstreamline in absolute distance</span>
<a name="l00245"></a><a class="code" href="a00714.html#0b2e57307d9a21c2c46a65260bfd5f06">00245</a>   <span class="keywordtype">double</span> MaximumPropagationDistance;
<a name="l00246"></a>00246 
<a name="l00247"></a>00247   <span class="comment">// integration direction</span>
<a name="l00248"></a><a class="code" href="a00714.html#a81cb9fed95b1b2758bcf6f957d0d802">00248</a>   <span class="keywordtype">int</span> IntegrationDirection;
<a name="l00249"></a>00249 
<a name="l00250"></a>00250   <span class="comment">// the length (fraction of cell size) of integration steps</span>
<a name="l00251"></a><a class="code" href="a00714.html#b3dc209edc1dd63a0b72718c74daa206">00251</a>   <span class="keywordtype">double</span> IntegrationStepLength;
<a name="l00252"></a>00252 
<a name="l00253"></a>00253   <span class="comment">// the length of the tube segments composing the hyperstreamline</span>
<a name="l00254"></a><a class="code" href="a00714.html#fbfb7410b2a2d0184062ffe705fc436b">00254</a>   <span class="keywordtype">double</span> StepLength;
<a name="l00255"></a>00255 
<a name="l00256"></a>00256   <span class="comment">// terminal propagation speed</span>
<a name="l00257"></a><a class="code" href="a00714.html#c69a92a1891555a1c643253d22890325">00257</a>   <span class="keywordtype">double</span> TerminalEigenvalue;
<a name="l00258"></a>00258 
<a name="l00259"></a>00259   <span class="comment">// number of sides of tube</span>
<a name="l00260"></a><a class="code" href="a00714.html#ebf83203771f5b8ead7b8c5b3e73a641">00260</a>   <span class="keywordtype">int</span> NumberOfSides;
<a name="l00261"></a>00261 
<a name="l00262"></a>00262   <span class="comment">// maximum radius of tube</span>
<a name="l00263"></a><a class="code" href="a00714.html#b3ecb2871033e09a4b20fec1a40b4c3e">00263</a>   <span class="keywordtype">double</span> Radius;
<a name="l00264"></a>00264 
<a name="l00265"></a>00265   <span class="comment">// boolean controls whether scaling is clamped</span>
<a name="l00266"></a><a class="code" href="a00714.html#84e3de5c6f91e125410c788c36476aa6">00266</a>   <span class="keywordtype">int</span> LogScaling;
<a name="l00267"></a>00267 
<a name="l00268"></a>00268   <span class="comment">// which eigenvector to use as integration vector field</span>
<a name="l00269"></a><a class="code" href="a00714.html#bc8c255b191812cd96dcbd5662a7b604">00269</a>   <span class="keywordtype">int</span> IntegrationEigenvector;
<a name="l00270"></a>00270 <span class="keyword">private</span>:
<a name="l00271"></a>00271   <a class="code" href="a00714.html" title="generate hyperstreamline in arbitrary dataset">vtkHyperStreamline</a>(<span class="keyword">const</span> <a class="code" href="a00714.html" title="generate hyperstreamline in arbitrary dataset">vtkHyperStreamline</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00272"></a>00272   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00714.html" title="generate hyperstreamline in arbitrary dataset">vtkHyperStreamline</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00273"></a>00273 };
<a name="l00274"></a>00274 
<a name="l00275"></a>00275 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:27 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>