Sophie

Sophie

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

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/vtkCutter.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/vtkCutter.h</h1><a href="a02499.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: vtkCutter.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="l00047"></a>00047 <span class="preprocessor">#ifndef __vtkCutter_h</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span><span class="preprocessor">#define __vtkCutter_h</span>
<a name="l00049"></a>00049 <span class="preprocessor"></span>
<a name="l00050"></a>00050 <span class="preprocessor">#include "<a class="code" href="a02331.html">vtkPolyDataAlgorithm.h</a>"</span>
<a name="l00051"></a>00051 
<a name="l00052"></a>00052 <span class="preprocessor">#include "<a class="code" href="a02002.html">vtkContourValues.h</a>"</span> <span class="comment">// Needed for inline methods</span>
<a name="l00053"></a>00053 
<a name="l00054"></a><a class="code" href="a02499.html#9ab85bf7d0b7d9bcd7bffb439b91a99d">00054</a> <span class="preprocessor">#define VTK_SORT_BY_VALUE 0</span>
<a name="l00055"></a><a class="code" href="a02499.html#c8a47e89396b1ee927259cfbda4259c6">00055</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_SORT_BY_CELL 1</span>
<a name="l00056"></a>00056 <span class="preprocessor"></span>
<a name="l00057"></a>00057 <span class="keyword">class </span><a class="code" href="a00855.html" title="abstract interface for implicit functions">vtkImplicitFunction</a>;
<a name="l00058"></a>00058 <span class="keyword">class </span><a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a>;
<a name="l00059"></a>00059 <span class="keyword">class </span><a class="code" href="a01654.html" title="generate isosurface from structured points">vtkSynchronizedTemplates3D</a>;
<a name="l00060"></a>00060 <span class="keyword">class </span><a class="code" href="a01655.html" title="generate cut surface from structured points">vtkSynchronizedTemplatesCutter3D</a>;
<a name="l00061"></a>00061 <span class="keyword">class </span><a class="code" href="a00675.html" title="generate isosurface from structured grids">vtkGridSynchronizedTemplates3D</a>;
<a name="l00062"></a>00062 <span class="keyword">class </span><a class="code" href="a01470.html" title="generate isosurface from rectilinear grid">vtkRectilinearSynchronizedTemplates</a>;
<a name="l00063"></a>00063 
<a name="l00064"></a><a class="code" href="a00351.html">00064</a> <span class="keyword">class </span><a class="code" href="a02170.html#c3c1ffe2fe47b9b70ba90182b7860cce">VTK_GRAPHICS_EXPORT</a> <a class="code" href="a00351.html" title="Cut vtkDataSet with user-specified implicit function.">vtkCutter</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="l00065"></a>00065 {
<a name="l00066"></a>00066 <span class="keyword">public</span>:
<a name="l00067"></a><a class="code" href="a00351.html#d06bdeefa425008dcfe18b090f7395d5">00067</a>   vtkTypeRevisionMacro(<a class="code" href="a00351.html" title="Cut vtkDataSet with user-specified implicit function.">vtkCutter</a>,<a class="code" href="a01261.html" title="Superclass for algorithms that produce only polydata as output.">vtkPolyDataAlgorithm</a>);
<a name="l00068"></a>00068   <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="l00069"></a>00069 
<a name="l00072"></a>00072   <span class="keyword">static</span> <a class="code" href="a00351.html" title="Cut vtkDataSet with user-specified implicit function.">vtkCutter</a> *<a class="code" href="a01261.html#cf785ac526132296ff652c636f713b5e">New</a>();
<a name="l00073"></a>00073 
<a name="l00075"></a>00075 
<a name="l00077"></a><a class="code" href="a00351.html#bccaba891ffacf79d69cf3438a2e6c58">00077</a>   <span class="keywordtype">void</span> SetValue(<span class="keywordtype">int</span> i, <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2106bf5e5151797630e91167caab3f22b9a">value</a>) 
<a name="l00078"></a>00078     {this-&gt;ContourValues-&gt;SetValue(i,value);}
<a name="l00080"></a>00080   
<a name="l00082"></a>00082 
<a name="l00083"></a><a class="code" href="a00351.html#e7bb9b7539f78719b0ba0300c36707f7">00083</a>   <span class="keywordtype">double</span> GetValue(<span class="keywordtype">int</span> i) 
<a name="l00084"></a>00084     {<span class="keywordflow">return</span> this-&gt;ContourValues-&gt;GetValue(i);}
<a name="l00086"></a>00086 
<a name="l00088"></a>00088 
<a name="l00090"></a><a class="code" href="a00351.html#b0157a57a480ba5ffcfd9b1afbd3b6da">00090</a>   <span class="keywordtype">double</span> *GetValues() 
<a name="l00091"></a>00091     {<span class="keywordflow">return</span> this-&gt;ContourValues-&gt;GetValues();}
<a name="l00093"></a>00093 
<a name="l00095"></a>00095 
<a name="l00098"></a><a class="code" href="a00351.html#277d761eba05a8103edd3852a93c51ed">00098</a>   <span class="keywordtype">void</span> GetValues(<span class="keywordtype">double</span> *contourValues)
<a name="l00099"></a>00099     {this-&gt;ContourValues-&gt;GetValues(contourValues);}
<a name="l00101"></a>00101   
<a name="l00103"></a>00103 
<a name="l00106"></a><a class="code" href="a00351.html#4d0ca0737e41e1b0f01cc4bec8b7e58c">00106</a>   <span class="keywordtype">void</span> SetNumberOfContours(<span class="keywordtype">int</span> number) 
<a name="l00107"></a>00107     {this-&gt;ContourValues-&gt;SetNumberOfContours(number);}
<a name="l00109"></a>00109 
<a name="l00111"></a>00111 
<a name="l00112"></a><a class="code" href="a00351.html#147f510955d7c0ad773e9af4207292c4">00112</a>   <span class="keywordtype">int</span> GetNumberOfContours() 
<a name="l00113"></a>00113     {<span class="keywordflow">return</span> this-&gt;ContourValues-&gt;GetNumberOfContours();}
<a name="l00115"></a>00115 
<a name="l00117"></a>00117 
<a name="l00119"></a><a class="code" href="a00351.html#5a8bce872c95f9bcaecd4b0a546a4df3">00119</a>   <span class="keywordtype">void</span> GenerateValues(<span class="keywordtype">int</span> numContours, <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21076786d084c43d32f242990f932679539">range</a>[2]) 
<a name="l00120"></a>00120     {this-&gt;ContourValues-&gt;GenerateValues(numContours, range);}
<a name="l00122"></a>00122 
<a name="l00124"></a>00124 
<a name="l00126"></a><a class="code" href="a00351.html#da3e59a561815b1ea30ac677be577cb7">00126</a>   <span class="keywordtype">void</span> GenerateValues(<span class="keywordtype">int</span> numContours, <span class="keywordtype">double</span> rangeStart, <span class="keywordtype">double</span> rangeEnd) 
<a name="l00127"></a>00127     {this-&gt;ContourValues-&gt;GenerateValues(numContours, rangeStart, rangeEnd);}
<a name="l00129"></a>00129 
<a name="l00132"></a>00132   <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="a01084.html#8137c0551b29bb996f0dd2f886bcd2da">GetMTime</a>();
<a name="l00133"></a>00133 
<a name="l00135"></a>00135 
<a name="l00136"></a>00136   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetCutFunction(<a class="code" href="a00855.html" title="abstract interface for implicit functions">vtkImplicitFunction</a>*);
<a name="l00137"></a>00137   vtkGetObjectMacro(CutFunction,<a class="code" href="a00855.html" title="abstract interface for implicit functions">vtkImplicitFunction</a>);
<a name="l00139"></a>00139 
<a name="l00141"></a>00141 
<a name="l00144"></a>00144   vtkSetMacro(GenerateCutScalars,<span class="keywordtype">int</span>);
<a name="l00145"></a>00145   vtkGetMacro(GenerateCutScalars,<span class="keywordtype">int</span>);
<a name="l00146"></a>00146   vtkBooleanMacro(GenerateCutScalars,<span class="keywordtype">int</span>);
<a name="l00148"></a>00148 
<a name="l00150"></a>00150 
<a name="l00152"></a>00152   <span class="keywordtype">void</span> SetLocator(<a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a> *locator);
<a name="l00153"></a>00153   vtkGetObjectMacro(Locator,<a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a>);
<a name="l00155"></a>00155 
<a name="l00157"></a>00157 
<a name="l00167"></a>00167   vtkSetClampMacro(SortBy,<span class="keywordtype">int</span>,<a class="code" href="a02499.html#9ab85bf7d0b7d9bcd7bffb439b91a99d">VTK_SORT_BY_VALUE</a>,<a class="code" href="a02499.html#c8a47e89396b1ee927259cfbda4259c6">VTK_SORT_BY_CELL</a>);
<a name="l00168"></a>00168   vtkGetMacro(SortBy,<span class="keywordtype">int</span>);
<a name="l00169"></a><a class="code" href="a00351.html#d4c16e734764777c93fb0373ed0124e2">00169</a>   <span class="keywordtype">void</span> SetSortByToSortByValue() 
<a name="l00170"></a>00170     {this-&gt;SetSortBy(<a class="code" href="a02499.html#9ab85bf7d0b7d9bcd7bffb439b91a99d">VTK_SORT_BY_VALUE</a>);}
<a name="l00171"></a><a class="code" href="a00351.html#90ad32302b8a81c370a8d90f66503953">00171</a>   <span class="keywordtype">void</span> SetSortByToSortByCell() 
<a name="l00172"></a>00172     {this-&gt;SetSortBy(<a class="code" href="a02499.html#c8a47e89396b1ee927259cfbda4259c6">VTK_SORT_BY_CELL</a>);}
<a name="l00173"></a>00173   <span class="keyword">const</span> <span class="keywordtype">char</span> *GetSortByAsString();
<a name="l00175"></a>00175 
<a name="l00178"></a>00178   <span class="keywordtype">void</span> CreateDefaultLocator();
<a name="l00179"></a>00179 
<a name="l00184"></a>00184   <span class="keyword">static</span> <span class="keywordtype">void</span> GetCellTypeDimensions(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* cellTypeDimensions);
<a name="l00185"></a>00185 
<a name="l00186"></a>00186 <span class="keyword">protected</span>:
<a name="l00187"></a>00187   <a class="code" href="a00351.html" title="Cut vtkDataSet with user-specified implicit function.">vtkCutter</a>(<a class="code" href="a00855.html" title="abstract interface for implicit functions">vtkImplicitFunction</a> *cf=NULL);
<a name="l00188"></a>00188   ~<a class="code" href="a00351.html" title="Cut vtkDataSet with user-specified implicit function.">vtkCutter</a>();
<a name="l00189"></a>00189 
<a name="l00191"></a>00191 
<a name="l00192"></a>00192   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01261.html#87339b01bcc87446755e02a1f695c3b2">ProcessRequest</a>(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a>*,
<a name="l00193"></a>00193                              <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a>**,
<a name="l00194"></a>00194                              <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a>*);
<a name="l00196"></a>00196 
<a name="l00197"></a>00197   <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="l00198"></a>00198   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01261.html#8ea20f6cc2dd5be4934c9e9b3f1d8eac">RequestUpdateExtent</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="l00199"></a>00199   <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="l00200"></a>00200   <span class="keywordtype">void</span> UnstructuredGridCutter(<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="l00201"></a>00201   <span class="keywordtype">void</span> DataSetCutter(<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="l00202"></a>00202   <span class="keywordtype">void</span> StructuredPointsCutter(<a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a> *, <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *,
<a name="l00203"></a>00203                               <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 name="l00204"></a>00204                               <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *);
<a name="l00205"></a>00205   <span class="keywordtype">void</span> StructuredGridCutter(<a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a> *, <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *);
<a name="l00206"></a>00206   <span class="keywordtype">void</span> RectilinearGridCutter(<a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a> *, <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *);
<a name="l00207"></a><a class="code" href="a00351.html#8caecf4c050123fe5a36af22fd188878">00207</a>   <a class="code" href="a00855.html" title="abstract interface for implicit functions">vtkImplicitFunction</a> *CutFunction;
<a name="l00208"></a>00208 
<a name="l00209"></a><a class="code" href="a00351.html#29fb93128e44d6e8a48c8bcdf0b906af">00209</a>   <a class="code" href="a01654.html" title="generate isosurface from structured points">vtkSynchronizedTemplates3D</a> *SynchronizedTemplates3D;
<a name="l00210"></a><a class="code" href="a00351.html#2dc88cf3e67eaf9e5ada6cd3c5eb12cd">00210</a>   <a class="code" href="a01655.html" title="generate cut surface from structured points">vtkSynchronizedTemplatesCutter3D</a> *SynchronizedTemplatesCutter3D;
<a name="l00211"></a><a class="code" href="a00351.html#6b823592b0d5195d0aa7896b541d4083">00211</a>   <a class="code" href="a00675.html" title="generate isosurface from structured grids">vtkGridSynchronizedTemplates3D</a> *GridSynchronizedTemplates;
<a name="l00212"></a><a class="code" href="a00351.html#f460e5010620e5142be998f2d6bc680d">00212</a>   <a class="code" href="a01470.html" title="generate isosurface from rectilinear grid">vtkRectilinearSynchronizedTemplates</a> *RectilinearSynchronizedTemplates;
<a name="l00213"></a>00213 
<a name="l00214"></a><a class="code" href="a00351.html#63c09b07aac062fd769fb078f3417de1">00214</a>   <a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a> *Locator;
<a name="l00215"></a><a class="code" href="a00351.html#5c48b1224408fa874cb14afec3af80a3">00215</a>   <span class="keywordtype">int</span> SortBy;
<a name="l00216"></a><a class="code" href="a00351.html#164864503870313350993a6a28ce33fa">00216</a>   <a class="code" href="a00330.html" title="helper object to manage setting and generating contour values">vtkContourValues</a> *ContourValues;
<a name="l00217"></a><a class="code" href="a00351.html#68c829f28fb8e0d9615e40dcd44e6da3">00217</a>   <span class="keywordtype">int</span> GenerateCutScalars;
<a name="l00218"></a>00218 <span class="keyword">private</span>:
<a name="l00219"></a>00219   <a class="code" href="a00351.html" title="Cut vtkDataSet with user-specified implicit function.">vtkCutter</a>(<span class="keyword">const</span> <a class="code" href="a00351.html" title="Cut vtkDataSet with user-specified implicit function.">vtkCutter</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00220"></a>00220   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00351.html" title="Cut vtkDataSet with user-specified implicit function.">vtkCutter</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00221"></a>00221 };
<a name="l00222"></a>00222 
<a name="l00224"></a><a class="code" href="a00351.html#14dd2c39895fdc75c6b542de1ba4bc7b">00224</a> <span class="keyword">inline</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="a00351.html#14dd2c39895fdc75c6b542de1ba4bc7b">vtkCutter::GetSortByAsString</a>(<span class="keywordtype">void</span>)
<a name="l00225"></a>00225 {
<a name="l00226"></a>00226   <span class="keywordflow">if</span> ( this-&gt;<a class="code" href="a00351.html#5c48b1224408fa874cb14afec3af80a3">SortBy</a> == <a class="code" href="a02499.html#9ab85bf7d0b7d9bcd7bffb439b91a99d">VTK_SORT_BY_VALUE</a> ) 
<a name="l00227"></a>00227     {
<a name="l00228"></a>00228     <span class="keywordflow">return</span> <span class="stringliteral">"SortByValue"</span>;
<a name="l00229"></a>00229     }
<a name="l00230"></a>00230   <span class="keywordflow">else</span> 
<a name="l00231"></a>00231     {
<a name="l00232"></a>00232     <span class="keywordflow">return</span> <span class="stringliteral">"SortByCell"</span>;
<a name="l00233"></a>00233     }
<a name="l00234"></a>00234 }
<a name="l00235"></a>00235 
<a name="l00236"></a>00236 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:25 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>