<!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/vtkDicer.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/Graphics/vtkDicer.h</h1><a href="a02512.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: vtkDicer.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="l00043"></a>00043 <span class="preprocessor">#ifndef __vtkDicer_h</span> <a name="l00044"></a>00044 <span class="preprocessor"></span><span class="preprocessor">#define __vtkDicer_h</span> <a name="l00045"></a>00045 <span class="preprocessor"></span> <a name="l00046"></a>00046 <span class="preprocessor">#include "<a class="code" href="a02227.html">vtkDataSetAlgorithm.h</a>"</span> <a name="l00047"></a>00047 <a name="l00048"></a><a class="code" href="a02512.html#758c4c65a46a9c52ccc447c5b27e8e8a">00048</a> <span class="preprocessor">#define VTK_DICE_MODE_NUMBER_OF_POINTS 0</span> <a name="l00049"></a><a class="code" href="a02512.html#99a9ffad728b2f4254c1d346a3e7d618">00049</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_DICE_MODE_SPECIFIED_NUMBER 1</span> <a name="l00050"></a><a class="code" href="a02512.html#f482583518ca6cc2cf1d599252dfaa6a">00050</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_DICE_MODE_MEMORY_LIMIT 2</span> <a name="l00051"></a>00051 <span class="preprocessor"></span> <a name="l00052"></a><a class="code" href="a00414.html">00052</a> <span class="keyword">class </span><a class="code" href="a02170.html#c3c1ffe2fe47b9b70ba90182b7860cce">VTK_GRAPHICS_EXPORT</a> <a class="code" href="a00414.html" title="abstract superclass to divide dataset into pieces">vtkDicer</a> : <span class="keyword">public</span> <a class="code" href="a00375.html" title="Superclass for algorithms that produce output of the same type as input.">vtkDataSetAlgorithm</a> <a name="l00053"></a>00053 { <a name="l00054"></a>00054 <span class="keyword">public</span>: <a name="l00055"></a><a class="code" href="a00414.html#5c26c1b6dbef07d67dcc30390daaffc1">00055</a> vtkTypeRevisionMacro(<a class="code" href="a00414.html" title="abstract superclass to divide dataset into pieces">vtkDicer</a>,<a class="code" href="a00375.html" title="Superclass for algorithms that produce output of the same type as input.">vtkDataSetAlgorithm</a>); <a name="l00056"></a>00056 <span class="keywordtype">void</span> <a class="code" href="a00375.html#399bf1def01568753e290f9cc45d7985">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00057"></a>00057 <a name="l00059"></a>00059 <a name="l00064"></a>00064 vtkSetMacro(FieldData,<span class="keywordtype">int</span>); <a name="l00065"></a>00065 vtkGetMacro(FieldData,<span class="keywordtype">int</span>); <a name="l00066"></a>00066 vtkBooleanMacro(FieldData,<span class="keywordtype">int</span>); <a name="l00068"></a>00068 <a name="l00070"></a>00070 <a name="l00072"></a>00072 vtkSetClampMacro(DiceMode,<span class="keywordtype">int</span>,<a class="code" href="a02512.html#758c4c65a46a9c52ccc447c5b27e8e8a">VTK_DICE_MODE_NUMBER_OF_POINTS</a>,<a class="code" href="a02512.html#f482583518ca6cc2cf1d599252dfaa6a">VTK_DICE_MODE_MEMORY_LIMIT</a>); <a name="l00073"></a>00073 vtkGetMacro(DiceMode,<span class="keywordtype">int</span>); <a name="l00074"></a><a class="code" href="a00414.html#e672f222d1b7db7bf097d8b4a722aeb6">00074</a> <span class="keywordtype">void</span> SetDiceModeToNumberOfPointsPerPiece() <a name="l00075"></a>00075 {this->SetDiceMode(<a class="code" href="a02512.html#758c4c65a46a9c52ccc447c5b27e8e8a">VTK_DICE_MODE_NUMBER_OF_POINTS</a>);}; <a name="l00076"></a><a class="code" href="a00414.html#370ff1ed742c43475074a7a6eda39574">00076</a> <span class="keywordtype">void</span> SetDiceModeToSpecifiedNumberOfPieces() <a name="l00077"></a>00077 {this->SetDiceMode(<a class="code" href="a02512.html#99a9ffad728b2f4254c1d346a3e7d618">VTK_DICE_MODE_SPECIFIED_NUMBER</a>);}; <a name="l00078"></a><a class="code" href="a00414.html#733af453be6ddc9c6424d31b340fd248">00078</a> <span class="keywordtype">void</span> SetDiceModeToMemoryLimitPerPiece() <a name="l00079"></a>00079 {this->SetDiceMode(<a class="code" href="a02512.html#f482583518ca6cc2cf1d599252dfaa6a">VTK_DICE_MODE_MEMORY_LIMIT</a>);}; <a name="l00081"></a>00081 <a name="l00083"></a>00083 <a name="l00085"></a>00085 vtkGetMacro(NumberOfActualPieces,<span class="keywordtype">int</span>); <a name="l00087"></a>00087 <a name="l00089"></a>00089 <a name="l00092"></a>00092 vtkSetClampMacro(NumberOfPointsPerPiece,<span class="keywordtype">int</span>,1000,<a class="code" href="a02149.html#804f55a35836c1770f9176f3a01c4d5e">VTK_LARGE_INTEGER</a>); <a name="l00093"></a>00093 vtkGetMacro(NumberOfPointsPerPiece,<span class="keywordtype">int</span>); <a name="l00095"></a>00095 <a name="l00097"></a>00097 <a name="l00102"></a>00102 vtkSetClampMacro(NumberOfPieces,<span class="keywordtype">int</span>,1,<a class="code" href="a02149.html#804f55a35836c1770f9176f3a01c4d5e">VTK_LARGE_INTEGER</a>); <a name="l00103"></a>00103 vtkGetMacro(NumberOfPieces,<span class="keywordtype">int</span>); <a name="l00105"></a>00105 <a name="l00107"></a>00107 <a name="l00110"></a>00110 vtkSetClampMacro(MemoryLimit,<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>,100,<a class="code" href="a02149.html#804f55a35836c1770f9176f3a01c4d5e">VTK_LARGE_INTEGER</a>); <a name="l00111"></a>00111 vtkGetMacro(MemoryLimit,<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>); <a name="l00113"></a>00113 <a name="l00114"></a>00114 <span class="keyword">protected</span>: <a name="l00115"></a>00115 <a class="code" href="a00414.html" title="abstract superclass to divide dataset into pieces">vtkDicer</a>(); <a name="l00116"></a><a class="code" href="a00414.html#07daa7229408b85488da2c16560dd127">00116</a> ~<a class="code" href="a00414.html" title="abstract superclass to divide dataset into pieces">vtkDicer</a>() {}; <a name="l00117"></a>00117 <a name="l00118"></a>00118 <span class="keyword">virtual</span> <span class="keywordtype">void</span> UpdatePieceMeasures(<a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a> *input); <a name="l00119"></a>00119 <a name="l00120"></a><a class="code" href="a00414.html#641c97e4a4012c3de33a486f0d21edf9">00120</a> <span class="keywordtype">int</span> NumberOfPointsPerPiece; <a name="l00121"></a><a class="code" href="a00414.html#e022d7aa1861b226bd24e9db87e22ab7">00121</a> <span class="keywordtype">int</span> NumberOfPieces; <a name="l00122"></a><a class="code" href="a00414.html#1a1fb91091857575a513b82484475732">00122</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> MemoryLimit; <a name="l00123"></a><a class="code" href="a00414.html#6875e79ccba9c904c229cdbf48378f86">00123</a> <span class="keywordtype">int</span> NumberOfActualPieces; <a name="l00124"></a><a class="code" href="a00414.html#0244c248a72fd893564fe69d1afe31a2">00124</a> <span class="keywordtype">int</span> FieldData; <a name="l00125"></a><a class="code" href="a00414.html#60dfb7473b6aeac7a437dfd1cbc52ff7">00125</a> <span class="keywordtype">int</span> DiceMode; <a name="l00126"></a>00126 <a name="l00127"></a>00127 <span class="keyword">private</span>: <a name="l00128"></a>00128 <a class="code" href="a00414.html" title="abstract superclass to divide dataset into pieces">vtkDicer</a>(<span class="keyword">const</span> <a class="code" href="a00414.html" title="abstract superclass to divide dataset into pieces">vtkDicer</a>&); <span class="comment">// Not implemented.</span> <a name="l00129"></a>00129 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00414.html" title="abstract superclass to divide dataset into pieces">vtkDicer</a>&); <span class="comment">// Not implemented.</span> <a name="l00130"></a>00130 }; <a name="l00131"></a>00131 <a name="l00132"></a>00132 <span class="preprocessor">#endif</span> <a name="l00133"></a>00133 <span class="preprocessor"></span> <a name="l00134"></a>00134 </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:26 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>