Sophie

Sophie

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

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/vtkClipDataSet.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/vtkClipDataSet.h</h1><a href="a02484.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: vtkClipDataSet.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="l00062"></a>00062 <span class="preprocessor">#ifndef __vtkClipDataSet_h</span>
<a name="l00063"></a>00063 <span class="preprocessor"></span><span class="preprocessor">#define __vtkClipDataSet_h</span>
<a name="l00064"></a>00064 <span class="preprocessor"></span>
<a name="l00065"></a>00065 <span class="preprocessor">#include "<a class="code" href="a02396.html">vtkUnstructuredGridAlgorithm.h</a>"</span>
<a name="l00066"></a>00066 
<a name="l00067"></a>00067 <span class="keyword">class </span><a class="code" href="a00226.html" title="supports function callbacks">vtkCallbackCommand</a>;
<a name="l00068"></a>00068 <span class="keyword">class </span><a class="code" href="a00855.html" title="abstract interface for implicit functions">vtkImplicitFunction</a>;
<a name="l00069"></a>00069 <span class="keyword">class </span><a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a>;
<a name="l00070"></a>00070 
<a name="l00071"></a><a class="code" href="a00270.html">00071</a> <span class="keyword">class </span><a class="code" href="a02170.html#c3c1ffe2fe47b9b70ba90182b7860cce">VTK_GRAPHICS_EXPORT</a> <a class="code" href="a00270.html" title="clip any dataset with user-specified implicit function or input scalar data">vtkClipDataSet</a> : <span class="keyword">public</span> <a class="code" href="a01790.html" title="Superclass for algorithms that produce only unstructured grid as output.">vtkUnstructuredGridAlgorithm</a>
<a name="l00072"></a>00072 {
<a name="l00073"></a>00073 <span class="keyword">public</span>:
<a name="l00074"></a><a class="code" href="a00270.html#b9cb56c781f0fc46cd0ca053b9dbccc7">00074</a>   vtkTypeRevisionMacro(<a class="code" href="a00270.html" title="clip any dataset with user-specified implicit function or input scalar data">vtkClipDataSet</a>,<a class="code" href="a01790.html" title="Superclass for algorithms that produce only unstructured grid as output.">vtkUnstructuredGridAlgorithm</a>);
<a name="l00075"></a>00075   <span class="keywordtype">void</span> <a class="code" href="a01790.html#13d193ef6fd94356f3306d3e799bc9cc">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00076"></a>00076 
<a name="l00079"></a>00079   <span class="keyword">static</span> <a class="code" href="a00270.html" title="clip any dataset with user-specified implicit function or input scalar data">vtkClipDataSet</a> *<a class="code" href="a01790.html#2646137e0d32c31ea2f5d6c36a839c5e">New</a>();
<a name="l00080"></a>00080 
<a name="l00082"></a>00082 
<a name="l00086"></a>00086   vtkSetMacro(Value,<span class="keywordtype">double</span>);
<a name="l00087"></a>00087   vtkGetMacro(Value,<span class="keywordtype">double</span>);
<a name="l00089"></a>00089   
<a name="l00091"></a>00091 
<a name="l00094"></a>00094   vtkSetMacro(UseValueAsOffset, <span class="keywordtype">bool</span>);
<a name="l00095"></a>00095   vtkGetMacro(UseValueAsOffset, <span class="keywordtype">bool</span>);
<a name="l00096"></a>00096   vtkBooleanMacro(UseValueAsOffset, <span class="keywordtype">bool</span>);
<a name="l00098"></a>00098 
<a name="l00100"></a>00100 
<a name="l00105"></a>00105   vtkSetMacro(InsideOut,<span class="keywordtype">int</span>);
<a name="l00106"></a>00106   vtkGetMacro(InsideOut,<span class="keywordtype">int</span>);
<a name="l00107"></a>00107   vtkBooleanMacro(InsideOut,<span class="keywordtype">int</span>);
<a name="l00109"></a>00109 
<a name="l00111"></a>00111 
<a name="l00114"></a>00114   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetClipFunction(<a class="code" href="a00855.html" title="abstract interface for implicit functions">vtkImplicitFunction</a>*);
<a name="l00115"></a>00115   vtkGetObjectMacro(ClipFunction,<a class="code" href="a00855.html" title="abstract interface for implicit functions">vtkImplicitFunction</a>);
<a name="l00117"></a>00117 
<a name="l00119"></a>00119 
<a name="l00123"></a>00123   vtkSetMacro(GenerateClipScalars,<span class="keywordtype">int</span>);
<a name="l00124"></a>00124   vtkGetMacro(GenerateClipScalars,<span class="keywordtype">int</span>);
<a name="l00125"></a>00125   vtkBooleanMacro(GenerateClipScalars,<span class="keywordtype">int</span>);
<a name="l00127"></a>00127 
<a name="l00129"></a>00129 
<a name="l00131"></a>00131   vtkSetMacro(GenerateClippedOutput,<span class="keywordtype">int</span>);
<a name="l00132"></a>00132   vtkGetMacro(GenerateClippedOutput,<span class="keywordtype">int</span>);
<a name="l00133"></a>00133   vtkBooleanMacro(GenerateClippedOutput,<span class="keywordtype">int</span>);
<a name="l00135"></a>00135 
<a name="l00137"></a>00137 
<a name="l00141"></a>00141   vtkSetClampMacro(MergeTolerance,<span class="keywordtype">double</span>,0.0001,0.25);
<a name="l00142"></a>00142   vtkGetMacro(MergeTolerance,<span class="keywordtype">double</span>);
<a name="l00144"></a>00144   
<a name="l00146"></a>00146   <a class="code" href="a01789.html" title="dataset represents arbitrary combinations of all possible cell types">vtkUnstructuredGrid</a> *GetClippedOutput();
<a name="l00147"></a>00147 
<a name="l00149"></a>00149 
<a name="l00151"></a>00151   <span class="keywordtype">void</span> SetLocator(<a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a> *locator);
<a name="l00152"></a>00152   vtkGetObjectMacro(Locator,<a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a>);
<a name="l00154"></a>00154 
<a name="l00157"></a>00157   <span class="keywordtype">void</span> CreateDefaultLocator();
<a name="l00158"></a>00158 
<a name="l00160"></a>00160   <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="a01084.html#8137c0551b29bb996f0dd2f886bcd2da">GetMTime</a>();
<a name="l00161"></a>00161 
<a name="l00162"></a>00162 <span class="keyword">protected</span>:
<a name="l00163"></a>00163   <a class="code" href="a00270.html" title="clip any dataset with user-specified implicit function or input scalar data">vtkClipDataSet</a>(<a class="code" href="a00855.html" title="abstract interface for implicit functions">vtkImplicitFunction</a> *cf=NULL);
<a name="l00164"></a>00164   ~<a class="code" href="a00270.html" title="clip any dataset with user-specified implicit function or input scalar data">vtkClipDataSet</a>();
<a name="l00165"></a>00165 
<a name="l00167"></a>00167 
<a name="l00168"></a>00168   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01790.html#2732b87b57cc7c33d0f7f944be51136a">ProcessRequest</a>(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a>*,
<a name="l00169"></a>00169                              <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a>**,
<a name="l00170"></a>00170                              <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a>*);
<a name="l00172"></a>00172 
<a name="l00173"></a>00173   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01790.html#c245179e9e4f4d4f83bf29fd4933b985">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="l00174"></a>00174   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01790.html#1eb860b284f61b78bd00d5776545bd87">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="l00175"></a><a class="code" href="a00270.html#b4fabbe2d17f9bef3d8248c873fe7504">00175</a>   <a class="code" href="a00855.html" title="abstract interface for implicit functions">vtkImplicitFunction</a> *ClipFunction;
<a name="l00176"></a>00176   
<a name="l00177"></a><a class="code" href="a00270.html#f46b40e757e437bd44dffdb72f9cc670">00177</a>   <a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a> *Locator;
<a name="l00178"></a><a class="code" href="a00270.html#2e79b95cfcb4c22ec184d9df5962d27b">00178</a>   <span class="keywordtype">int</span> InsideOut;
<a name="l00179"></a><a class="code" href="a00270.html#002aa07e94b047525f9fafbbcd94e23f">00179</a>   <span class="keywordtype">double</span> Value;
<a name="l00180"></a><a class="code" href="a00270.html#5411e5c29e3277ad415e106fc213353a">00180</a>   <span class="keywordtype">int</span> GenerateClipScalars;
<a name="l00181"></a>00181 
<a name="l00182"></a><a class="code" href="a00270.html#d36d778f123189766aa7d9d81ab7b44f">00182</a>   <span class="keywordtype">int</span> GenerateClippedOutput;
<a name="l00183"></a><a class="code" href="a00270.html#68ae0a3978b5d5770a72da63547f027e">00183</a>   <span class="keywordtype">double</span> MergeTolerance;
<a name="l00184"></a>00184 
<a name="l00185"></a>00185   <span class="comment">// Callback registered with the InternalProgressObserver.</span>
<a name="l00186"></a>00186   <span class="keyword">static</span> <span class="keywordtype">void</span> InternalProgressCallbackFunction(<a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>*, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>,
<a name="l00187"></a>00187                                                <span class="keywordtype">void</span>* clientdata, <span class="keywordtype">void</span>*);
<a name="l00188"></a>00188   <span class="keywordtype">void</span> InternalProgressCallback(<a class="code" href="a00101.html" title="Superclass for all sources, filters, and sinks in VTK.">vtkAlgorithm</a> *algorithm);
<a name="l00189"></a>00189   <span class="comment">// The observer to report progress from the internal readers.</span>
<a name="l00190"></a><a class="code" href="a00270.html#3f982295f0c02c0180226e04c9bb2783">00190</a>   <a class="code" href="a00226.html" title="supports function callbacks">vtkCallbackCommand</a>* InternalProgressObserver;
<a name="l00191"></a>00191 
<a name="l00192"></a>00192   <span class="comment">//helper functions</span>
<a name="l00193"></a>00193   <span class="keywordtype">void</span> ClipVolume(<a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a> *input, <a class="code" href="a01789.html" title="dataset represents arbitrary combinations of all possible cell types">vtkUnstructuredGrid</a> *output);
<a name="l00194"></a>00194 
<a name="l00195"></a>00195   <span class="keywordtype">int</span> ClipPoints(<a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a>* input, <a class="code" href="a01789.html" title="dataset represents arbitrary combinations of all possible cell types">vtkUnstructuredGrid</a>* output,
<a name="l00196"></a>00196                  <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a>** inputVector);
<a name="l00197"></a>00197 
<a name="l00198"></a><a class="code" href="a00270.html#925440fee7d93db279b886fde654d10e">00198</a>   <span class="keywordtype">bool</span> UseValueAsOffset;
<a name="l00199"></a>00199 
<a name="l00200"></a>00200 <span class="keyword">private</span>:
<a name="l00201"></a>00201   <a class="code" href="a00270.html" title="clip any dataset with user-specified implicit function or input scalar data">vtkClipDataSet</a>(<span class="keyword">const</span> <a class="code" href="a00270.html" title="clip any dataset with user-specified implicit function or input scalar data">vtkClipDataSet</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00202"></a>00202   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00270.html" title="clip any dataset with user-specified implicit function or input scalar data">vtkClipDataSet</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00203"></a>00203 };
<a name="l00204"></a>00204 
<a name="l00205"></a>00205 <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>