Sophie

Sophie

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

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/Hybrid/vtkPolyDataToImageStencil.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/Hybrid/vtkPolyDataToImageStencil.h</h1><a href="a02842.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: vtkPolyDataToImageStencil.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="l00015"></a>00015 <span class="comment">/*=========================================================================</span>
<a name="l00016"></a>00016 <span class="comment"></span>
<a name="l00017"></a>00017 <span class="comment">Copyright (c) 2008 Atamai, Inc.</span>
<a name="l00018"></a>00018 <span class="comment"></span>
<a name="l00019"></a>00019 <span class="comment">Use, modification and redistribution of the software, in source or</span>
<a name="l00020"></a>00020 <span class="comment">binary forms, are permitted provided that the following terms and</span>
<a name="l00021"></a>00021 <span class="comment">conditions are met:</span>
<a name="l00022"></a>00022 <span class="comment"></span>
<a name="l00023"></a>00023 <span class="comment">1) Redistribution of the source code, in verbatim or modified</span>
<a name="l00024"></a>00024 <span class="comment">   form, must retain the above copyright notice, this license,</span>
<a name="l00025"></a>00025 <span class="comment">   the following disclaimer, and any notices that refer to this</span>
<a name="l00026"></a>00026 <span class="comment">   license and/or the following disclaimer.  </span>
<a name="l00027"></a>00027 <span class="comment"></span>
<a name="l00028"></a>00028 <span class="comment">2) Redistribution in binary form must include the above copyright</span>
<a name="l00029"></a>00029 <span class="comment">   notice, a copy of this license and the following disclaimer</span>
<a name="l00030"></a>00030 <span class="comment">   in the documentation or with other materials provided with the</span>
<a name="l00031"></a>00031 <span class="comment">   distribution.</span>
<a name="l00032"></a>00032 <span class="comment"></span>
<a name="l00033"></a>00033 <span class="comment">3) Modified copies of the source code must be clearly marked as such,</span>
<a name="l00034"></a>00034 <span class="comment">   and must not be misrepresented as verbatim copies of the source code.</span>
<a name="l00035"></a>00035 <span class="comment"></span>
<a name="l00036"></a>00036 <span class="comment">THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS"</span>
<a name="l00037"></a>00037 <span class="comment">WITHOUT EXPRESSED OR IMPLIED WARRANTY INCLUDING, BUT NOT LIMITED TO,</span>
<a name="l00038"></a>00038 <span class="comment">THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR</span>
<a name="l00039"></a>00039 <span class="comment">PURPOSE.  IN NO EVENT SHALL ANY COPYRIGHT HOLDER OR OTHER PARTY WHO MAY</span>
<a name="l00040"></a>00040 <span class="comment">MODIFY AND/OR REDISTRIBUTE THE SOFTWARE UNDER THE TERMS OF THIS LICENSE</span>
<a name="l00041"></a>00041 <span class="comment">BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES</span>
<a name="l00042"></a>00042 <span class="comment">(INCLUDING, BUT NOT LIMITED TO, LOSS OF DATA OR DATA BECOMING INACCURATE</span>
<a name="l00043"></a>00043 <span class="comment">OR LOSS OF PROFIT OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF</span>
<a name="l00044"></a>00044 <span class="comment">THE USE OR INABILITY TO USE THE SOFTWARE, EVEN IF ADVISED OF THE</span>
<a name="l00045"></a>00045 <span class="comment">POSSIBILITY OF SUCH DAMAGES.</span>
<a name="l00046"></a>00046 <span class="comment"></span>
<a name="l00047"></a>00047 <span class="comment">=========================================================================*/</span>
<a name="l00066"></a>00066 <span class="preprocessor">#ifndef __vtkPolyDataToImageStencil_h</span>
<a name="l00067"></a>00067 <span class="preprocessor"></span><span class="preprocessor">#define __vtkPolyDataToImageStencil_h</span>
<a name="l00068"></a>00068 <span class="preprocessor"></span>
<a name="l00069"></a>00069 <span class="preprocessor">#include "<a class="code" href="a02965.html">vtkImageStencilSource.h</a>"</span>
<a name="l00070"></a>00070 
<a name="l00071"></a>00071 <span class="keyword">class </span><a class="code" href="a01013.html" title="merge exactly coincident points">vtkMergePoints</a>;
<a name="l00072"></a>00072 <span class="keyword">class </span><a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a>;
<a name="l00073"></a>00073 <span class="keyword">class </span><a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a>;
<a name="l00074"></a>00074 <span class="keyword">class </span><a class="code" href="a00751.html" title="topologically and geometrically regular array of data">vtkImageData</a>;
<a name="l00075"></a>00075 
<a name="l00076"></a><a class="code" href="a01275.html">00076</a> <span class="keyword">class </span><a class="code" href="a02170.html#9e9a05a8377523b4f8d707441f65786d">VTK_HYBRID_EXPORT</a> <a class="code" href="a01275.html" title="use polydata to mask an image">vtkPolyDataToImageStencil</a> :
<a name="l00077"></a>00077   <span class="keyword">public</span> <a class="code" href="a00837.html" title="generate an image stencil">vtkImageStencilSource</a>
<a name="l00078"></a>00078 {
<a name="l00079"></a>00079 <span class="keyword">public</span>:
<a name="l00080"></a>00080   <span class="keyword">static</span> <a class="code" href="a01275.html" title="use polydata to mask an image">vtkPolyDataToImageStencil</a>* <a class="code" href="a00837.html#95584173c3fb02c11569714e784733f3">New</a>();
<a name="l00081"></a><a class="code" href="a01275.html#74ef42408e232c89955e3f97d8e9814a">00081</a>   vtkTypeRevisionMacro(<a class="code" href="a01275.html" title="use polydata to mask an image">vtkPolyDataToImageStencil</a>, <a class="code" href="a00837.html" title="generate an image stencil">vtkImageStencilSource</a>);
<a name="l00082"></a>00082   <span class="keywordtype">void</span> <a class="code" href="a00837.html#66a998439447a8b62494aae4142cc1df">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00083"></a>00083 
<a name="l00085"></a>00085 
<a name="l00086"></a>00086   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetInput(<a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a>*);
<a name="l00087"></a>00087   <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *GetInput();
<a name="l00089"></a>00089   
<a name="l00091"></a>00091 
<a name="l00096"></a>00096   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetInformationInput(<a class="code" href="a00751.html" title="topologically and geometrically regular array of data">vtkImageData</a>*);
<a name="l00097"></a>00097   vtkGetObjectMacro(InformationInput, <a class="code" href="a00751.html" title="topologically and geometrically regular array of data">vtkImageData</a>);
<a name="l00099"></a>00099 
<a name="l00101"></a>00101 
<a name="l00104"></a>00104   vtkSetVector3Macro(OutputOrigin, <span class="keywordtype">double</span>);
<a name="l00105"></a>00105   vtkGetVector3Macro(OutputOrigin, <span class="keywordtype">double</span>);
<a name="l00107"></a>00107 
<a name="l00109"></a>00109 
<a name="l00112"></a>00112   vtkSetVector3Macro(OutputSpacing, <span class="keywordtype">double</span>);
<a name="l00113"></a>00113   vtkGetVector3Macro(OutputSpacing, <span class="keywordtype">double</span>);
<a name="l00115"></a>00115 
<a name="l00117"></a>00117 
<a name="l00121"></a>00121   vtkSetVector6Macro(OutputWholeExtent, <span class="keywordtype">int</span>);
<a name="l00122"></a>00122   vtkGetVector6Macro(OutputWholeExtent, <span class="keywordtype">int</span>);  
<a name="l00124"></a>00124 
<a name="l00126"></a>00126 
<a name="l00129"></a>00129   vtkSetClampMacro(Tolerance, <span class="keywordtype">double</span>, 0.0, 1.0);
<a name="l00130"></a>00130   vtkGetMacro(Tolerance, <span class="keywordtype">double</span>);
<a name="l00132"></a>00132 
<a name="l00133"></a>00133 <span class="keyword">protected</span>:
<a name="l00134"></a>00134   <a class="code" href="a01275.html" title="use polydata to mask an image">vtkPolyDataToImageStencil</a>();
<a name="l00135"></a>00135   ~<a class="code" href="a01275.html" title="use polydata to mask an image">vtkPolyDataToImageStencil</a>();
<a name="l00136"></a>00136 
<a name="l00137"></a>00137   <span class="keywordtype">void</span> ThreadedExecute(<a class="code" href="a00836.html" title="efficient description of an image stencil">vtkImageStencilData</a> *output,
<a name="l00138"></a>00138                        <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21083c65ff97d39562e6981dc3e2041b09f">extent</a>[6], <span class="keywordtype">int</span> threadId);
<a name="l00139"></a>00139 
<a name="l00140"></a>00140   <span class="keyword">static</span> <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="l00141"></a>00141                             <span class="keywordtype">double</span> z, <a class="code" href="a01013.html" title="merge exactly coincident points">vtkMergePoints</a> *locator);
<a name="l00142"></a>00142   
<a name="l00143"></a>00143   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00837.html#230b93cae892e2ef7f7c299dbe4a5658">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 name="l00144"></a>00144                           <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *);
<a name="l00145"></a>00145   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00837.html#18b0de712bd6440c00d2d25cc9966158">RequestInformation</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 name="l00146"></a>00146                                  <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *);
<a name="l00147"></a>00147   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00101.html#aad069877868b9c2e8035a946a5d0538">FillInputPortInformation</a>(<span class="keywordtype">int</span>, <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a>*);
<a name="l00148"></a>00148 
<a name="l00150"></a><a class="code" href="a01275.html#4b82d8b913ce7723d1538198a354c442">00150</a>   <a class="code" href="a00751.html" title="topologically and geometrically regular array of data">vtkImageData</a> *InformationInput;
<a name="l00151"></a>00151 
<a name="l00153"></a>00153 
<a name="l00154"></a><a class="code" href="a01275.html#a822f183b0cdd9501635b30a91f4d3a8">00154</a>   <span class="keywordtype">int</span> OutputWholeExtent[6];
<a name="l00155"></a><a class="code" href="a01275.html#bbebde8b4ab2fc28ed9db1779fe3a25f">00155</a>   <span class="keywordtype">double</span> OutputOrigin[3];
<a name="l00156"></a><a class="code" href="a01275.html#29a3fd86b0d2b4db0b6713be51a7ffa8">00156</a>   <span class="keywordtype">double</span> OutputSpacing[3];
<a name="l00158"></a>00158 
<a name="l00160"></a><a class="code" href="a01275.html#51a85f29c772e0d186146fab930ca8d1">00160</a>   <span class="keywordtype">double</span> Tolerance;
<a name="l00161"></a>00161 
<a name="l00162"></a>00162 <span class="keyword">private</span>:
<a name="l00163"></a>00163   <a class="code" href="a01275.html" title="use polydata to mask an image">vtkPolyDataToImageStencil</a>(<span class="keyword">const</span> <a class="code" href="a01275.html" title="use polydata to mask an image">vtkPolyDataToImageStencil</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00164"></a>00164   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01275.html" title="use polydata to mask an image">vtkPolyDataToImageStencil</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00165"></a>00165 };
<a name="l00166"></a>00166 
<a name="l00167"></a>00167 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:33 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>