<!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/vtkTessellatorFilter.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/vtkTessellatorFilter.h</h1><a href="a02687.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: vtkTessellatorFilter.h,v $</span> <a name="l00005"></a>00005 <span class="comment">Language: C++</span> <a name="l00006"></a>00006 <span class="comment"></span> <a name="l00007"></a>00007 <span class="comment">Copyright 2003 Sandia Corporation.</span> <a name="l00008"></a>00008 <span class="comment">Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive</span> <a name="l00009"></a>00009 <span class="comment">license for use of this work by or on behalf of the</span> <a name="l00010"></a>00010 <span class="comment">U.S. Government. Redistribution and use in source and binary forms, with</span> <a name="l00011"></a>00011 <span class="comment">or without modification, are permitted provided that this Notice and any</span> <a name="l00012"></a>00012 <span class="comment">statement of authorship are reproduced on all copies.</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="preprocessor">#ifndef __vtkTessellatorFilter_h</span> <a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">#define __vtkTessellatorFilter_h</span> <a name="l00017"></a>00017 <span class="preprocessor"></span> <a name="l00061"></a>00061 <span class="preprocessor">#include "<a class="code" href="a02396.html">vtkUnstructuredGridAlgorithm.h</a>"</span> <a name="l00062"></a>00062 <a name="l00063"></a>00063 <span class="keyword">class </span><a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>; <a name="l00064"></a>00064 <span class="keyword">class </span><a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a>; <a name="l00065"></a>00065 <span class="keyword">class </span><a class="code" href="a00379.html" title="a subclass of vtkEdgeSubdivisionCriterion for vtkDataSet objects.">vtkDataSetEdgeSubdivisionCriterion</a>; <a name="l00066"></a>00066 <span class="keyword">class </span><a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a>; <a name="l00067"></a>00067 <span class="keyword">class </span><a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>; <a name="l00068"></a>00068 <span class="keyword">class </span><a class="code" href="a01614.html" title="An algorithm that refines an initial simplicial tessellation using edge subdivision...">vtkStreamingTessellator</a>; <a name="l00069"></a>00069 <span class="keyword">class </span><a class="code" href="a00452.html" title="how to decide whether a linear approximation to nonlinear geometry or field should...">vtkEdgeSubdivisionCriterion</a>; <a name="l00070"></a>00070 <span class="keyword">class </span><a class="code" href="a01789.html" title="dataset represents arbitrary combinations of all possible cell types">vtkUnstructuredGrid</a>; <a name="l00071"></a>00071 <a name="l00072"></a><a class="code" href="a01686.html">00072</a> <span class="keyword">class </span><a class="code" href="a02170.html#c3c1ffe2fe47b9b70ba90182b7860cce">VTK_GRAPHICS_EXPORT</a> <a class="code" href="a01686.html" title="approximate nonlinear FEM elements with simplices">vtkTessellatorFilter</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="l00073"></a>00073 { <a name="l00074"></a>00074 <span class="keyword">public</span>: <a name="l00075"></a><a class="code" href="a01686.html#f455483e95d5167e8eb4698511d4510b">00075</a> vtkTypeRevisionMacro(<a class="code" href="a01686.html" title="approximate nonlinear FEM elements with simplices">vtkTessellatorFilter</a>,<a class="code" href="a01790.html" title="Superclass for algorithms that produce only unstructured grid as output.">vtkUnstructuredGridAlgorithm</a>); <a name="l00076"></a>00076 <span class="keywordtype">void</span> <a class="code" href="a01790.html#13d193ef6fd94356f3306d3e799bc9cc">PrintSelf</a>( ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent ); <a name="l00077"></a>00077 <a name="l00078"></a>00078 <span class="keyword">static</span> <a class="code" href="a01686.html" title="approximate nonlinear FEM elements with simplices">vtkTessellatorFilter</a>* <a class="code" href="a01790.html#2646137e0d32c31ea2f5d6c36a839c5e">New</a>(); <a name="l00079"></a>00079 <a name="l00080"></a>00080 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetTessellator( <a class="code" href="a01614.html" title="An algorithm that refines an initial simplicial tessellation using edge subdivision...">vtkStreamingTessellator</a>* ); <a name="l00081"></a>00081 vtkGetObjectMacro(Tessellator, <a class="code" href="a01614.html" title="An algorithm that refines an initial simplicial tessellation using edge subdivision...">vtkStreamingTessellator</a>); <a name="l00082"></a>00082 <a name="l00083"></a>00083 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetSubdivider( <a class="code" href="a00379.html" title="a subclass of vtkEdgeSubdivisionCriterion for vtkDataSet objects.">vtkDataSetEdgeSubdivisionCriterion</a>* ); <a name="l00084"></a>00084 vtkGetObjectMacro(Subdivider, <a class="code" href="a00379.html" title="a subclass of vtkEdgeSubdivisionCriterion for vtkDataSet objects.">vtkDataSetEdgeSubdivisionCriterion</a>); <a name="l00085"></a>00085 <a name="l00086"></a>00086 <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="a01084.html#8137c0551b29bb996f0dd2f886bcd2da">GetMTime</a>(); <a name="l00087"></a>00087 <a name="l00089"></a>00089 <a name="l00094"></a>00094 vtkSetClampMacro(OutputDimension,<span class="keywordtype">int</span>,1,3); <a name="l00095"></a>00095 vtkGetMacro(OutputDimension,<span class="keywordtype">int</span>); <a name="l00096"></a>00096 <span class="comment">//BTX</span> <a name="l00097"></a>00097 <span class="keywordtype">int</span> GetOutputDimension() <span class="keyword">const</span>; <a name="l00098"></a>00098 <span class="comment">//ETX</span> <a name="l00100"></a>00100 <span class="comment"></span> <a name="l00102"></a>00102 <a name="l00105"></a>00105 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetMaximumNumberOfSubdivisions( <span class="keywordtype">int</span> num_subdiv_in ); <a name="l00106"></a>00106 <span class="keywordtype">int</span> GetMaximumNumberOfSubdivisions(); <a name="l00107"></a>00107 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetChordError( <span class="keywordtype">double</span> ce ); <a name="l00108"></a>00108 <span class="keywordtype">double</span> GetChordError(); <a name="l00110"></a>00110 <a name="l00112"></a>00112 <a name="l00113"></a>00113 <span class="keyword">virtual</span> <span class="keywordtype">void</span> ResetFieldCriteria(); <a name="l00114"></a>00114 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetFieldCriterion( <span class="keywordtype">int</span> <a class="code" href="a03761.html#88ade42854f67d6297898362e17a515fdf24c5348eccaabee77f038f47b36b89">field</a>, <span class="keywordtype">double</span> chord ); <a name="l00116"></a>00116 <a name="l00118"></a>00118 <a name="l00122"></a>00122 vtkGetMacro(MergePoints,<span class="keywordtype">int</span>); <a name="l00123"></a>00123 vtkSetMacro(MergePoints,<span class="keywordtype">int</span>); <a name="l00124"></a>00124 vtkBooleanMacro(MergePoints,<span class="keywordtype">int</span>); <a name="l00126"></a>00126 <a name="l00127"></a>00127 <span class="keyword">protected</span>: <a name="l00128"></a>00128 <a class="code" href="a01686.html" title="approximate nonlinear FEM elements with simplices">vtkTessellatorFilter</a>(); <a name="l00129"></a>00129 ~<a class="code" href="a01686.html" title="approximate nonlinear FEM elements with simplices">vtkTessellatorFilter</a>(); <a name="l00130"></a>00130 <a name="l00131"></a>00131 <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="l00132"></a>00132 <a name="l00136"></a>00136 <span class="keywordtype">void</span> SetupOutput( <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="l00137"></a>00137 <a name="l00139"></a>00139 <span class="keywordtype">void</span> MergeOutputPoints( <a class="code" href="a01789.html" title="dataset represents arbitrary combinations of all possible cell types">vtkUnstructuredGrid</a>* input, <a class="code" href="a01789.html" title="dataset represents arbitrary combinations of all possible cell types">vtkUnstructuredGrid</a>* output ); <a name="l00140"></a>00140 <a name="l00143"></a>00143 <span class="keywordtype">void</span> Teardown(); <a name="l00144"></a>00144 <a name="l00146"></a>00146 <a name="l00147"></a>00147 <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>* request, <a name="l00148"></a>00148 <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a>** inputVector, <a name="l00149"></a>00149 <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a>* outputVector); <a name="l00151"></a>00151 <a name="l00152"></a>00152 <span class="comment">//BTX</span> <a name="l00153"></a><a class="code" href="a01686.html#e3dcb5f207d258c1079fc5a2f439ee75">00153</a> <a class="code" href="a01614.html" title="An algorithm that refines an initial simplicial tessellation using edge subdivision...">vtkStreamingTessellator</a>* Tessellator; <a name="l00154"></a><a class="code" href="a01686.html#90237efd045f0b20c0e4116f6554ecf3">00154</a> <a class="code" href="a00379.html" title="a subclass of vtkEdgeSubdivisionCriterion for vtkDataSet objects.">vtkDataSetEdgeSubdivisionCriterion</a>* Subdivider; <a name="l00155"></a><a class="code" href="a01686.html#e7f0452785d3da628c59a16b38825c52">00155</a> <span class="keywordtype">int</span> OutputDimension; <a name="l00156"></a><a class="code" href="a01686.html#258d36e402ad2eb393dcd269aa1dd356">00156</a> <span class="keywordtype">int</span> MergePoints; <a name="l00157"></a><a class="code" href="a01686.html#03e9a29e268d41688032100485ea0f82">00157</a> <a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a>* Locator; <a name="l00158"></a>00158 <a name="l00160"></a>00160 <a name="l00162"></a><a class="code" href="a01686.html#b3f9513b97f3c5a3531eea2ac843659e">00162</a> <a class="code" href="a01789.html" title="dataset represents arbitrary combinations of all possible cell types">vtkUnstructuredGrid</a>* OutputMesh; <a name="l00163"></a><a class="code" href="a01686.html#4bcc72aa025deae565193bbbc7d94fdd">00163</a> <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>* OutputPoints; <a name="l00164"></a><a class="code" href="a01686.html#4e07faeed72b1f3afd17a227973d19fd">00164</a> <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>** OutputAttributes; <a name="l00165"></a><a class="code" href="a01686.html#94c078dc59b1d8f746fc4723df45d2b3">00165</a> <span class="keywordtype">int</span>* OutputAttributeIndices; <a name="l00167"></a>00167 <a name="l00168"></a>00168 <span class="keyword">static</span> <span class="keywordtype">void</span> AddAPoint( <span class="keyword">const</span> <span class="keywordtype">double</span>*, <a name="l00169"></a>00169 <a class="code" href="a00452.html" title="how to decide whether a linear approximation to nonlinear geometry or field should...">vtkEdgeSubdivisionCriterion</a>*, <a name="l00170"></a>00170 <span class="keywordtype">void</span>*, <a name="l00171"></a>00171 <span class="keyword">const</span> <span class="keywordtype">void</span>* ); <a name="l00172"></a>00172 <span class="keyword">static</span> <span class="keywordtype">void</span> AddALine( <span class="keyword">const</span> <span class="keywordtype">double</span>*, <a name="l00173"></a>00173 <span class="keyword">const</span> <span class="keywordtype">double</span>*, <a name="l00174"></a>00174 <a class="code" href="a00452.html" title="how to decide whether a linear approximation to nonlinear geometry or field should...">vtkEdgeSubdivisionCriterion</a>*, <a name="l00175"></a>00175 <span class="keywordtype">void</span>*, <a name="l00176"></a>00176 <span class="keyword">const</span> <span class="keywordtype">void</span>* ); <a name="l00177"></a>00177 <span class="keyword">static</span> <span class="keywordtype">void</span> AddATriangle( <span class="keyword">const</span> <span class="keywordtype">double</span>*, <a name="l00178"></a>00178 <span class="keyword">const</span> <span class="keywordtype">double</span>*, <a name="l00179"></a>00179 <span class="keyword">const</span> <span class="keywordtype">double</span>*, <a name="l00180"></a>00180 <a class="code" href="a00452.html" title="how to decide whether a linear approximation to nonlinear geometry or field should...">vtkEdgeSubdivisionCriterion</a>*, <a name="l00181"></a>00181 <span class="keywordtype">void</span>*, <a name="l00182"></a>00182 <span class="keyword">const</span> <span class="keywordtype">void</span>* ); <a name="l00183"></a>00183 <span class="keyword">static</span> <span class="keywordtype">void</span> AddATetrahedron( <span class="keyword">const</span> <span class="keywordtype">double</span>*, <a name="l00184"></a>00184 <span class="keyword">const</span> <span class="keywordtype">double</span>*, <a name="l00185"></a>00185 <span class="keyword">const</span> <span class="keywordtype">double</span>*, <a name="l00186"></a>00186 <span class="keyword">const</span> <span class="keywordtype">double</span>*, <a name="l00187"></a>00187 <a class="code" href="a00452.html" title="how to decide whether a linear approximation to nonlinear geometry or field should...">vtkEdgeSubdivisionCriterion</a>*, <a name="l00188"></a>00188 <span class="keywordtype">void</span>*, <a name="l00189"></a>00189 <span class="keyword">const</span> <span class="keywordtype">void</span>* ); <a name="l00190"></a>00190 <span class="keywordtype">void</span> OutputPoint( <span class="keyword">const</span> <span class="keywordtype">double</span>* ); <a name="l00191"></a>00191 <span class="keywordtype">void</span> OutputLine( <span class="keyword">const</span> <span class="keywordtype">double</span>*, <span class="keyword">const</span> <span class="keywordtype">double</span>* ); <a name="l00192"></a>00192 <span class="keywordtype">void</span> OutputTriangle( <span class="keyword">const</span> <span class="keywordtype">double</span>*, <span class="keyword">const</span> <span class="keywordtype">double</span>*, <span class="keyword">const</span> <span class="keywordtype">double</span>* ); <a name="l00193"></a>00193 <span class="keywordtype">void</span> OutputTetrahedron( <span class="keyword">const</span> <span class="keywordtype">double</span>*, <a name="l00194"></a>00194 <span class="keyword">const</span> <span class="keywordtype">double</span>*, <a name="l00195"></a>00195 <span class="keyword">const</span> <span class="keywordtype">double</span>*, <a name="l00196"></a>00196 <span class="keyword">const</span> <span class="keywordtype">double</span>* ); <a name="l00197"></a>00197 <span class="comment">//ETX</span> <a name="l00198"></a>00198 <a name="l00199"></a>00199 <span class="keyword">private</span>: <a name="l00200"></a>00200 <a class="code" href="a01686.html" title="approximate nonlinear FEM elements with simplices">vtkTessellatorFilter</a>( <span class="keyword">const</span> <a class="code" href="a01686.html" title="approximate nonlinear FEM elements with simplices">vtkTessellatorFilter</a>& ); <span class="comment">// Not implemented.</span> <a name="l00201"></a>00201 <span class="keywordtype">void</span> operator = ( <span class="keyword">const</span> <a class="code" href="a01686.html" title="approximate nonlinear FEM elements with simplices">vtkTessellatorFilter</a>& ); <span class="comment">// Not implemented.</span> <a name="l00202"></a>00202 }; <a name="l00203"></a>00203 <a name="l00204"></a>00204 <span class="comment">//BTX</span> <a name="l00205"></a><a class="code" href="a01686.html#703e5c919b25faa9008dad60dc1056b2">00205</a> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="a01686.html#a5fd6004aeef648c995541cc9e162a68">vtkTessellatorFilter::GetOutputDimension</a>()<span class="keyword"> const </span> <a name="l00206"></a>00206 <span class="keyword"></span>{ <a name="l00207"></a>00207 <span class="keywordflow">return</span> this-><a class="code" href="a01686.html#e7f0452785d3da628c59a16b38825c52">OutputDimension</a>; <a name="l00208"></a>00208 } <a name="l00209"></a>00209 <span class="comment">//ETX</span> <a name="l00210"></a>00210 <a name="l00211"></a>00211 <span class="preprocessor">#endif // __vtkTessellatorFilter_h</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:30 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>