<!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/vtkDataSetEdgeSubdivisionCriterion.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/vtkDataSetEdgeSubdivisionCriterion.h</h1><a href="a02504.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: vtkDataSetEdgeSubdivisionCriterion.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 __vtkDataSetEdgeSubdivisionCriterion_h</span> <a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">#define __vtkDataSetEdgeSubdivisionCriterion_h</span> <a name="l00017"></a>00017 <span class="preprocessor"></span> <a name="l00041"></a>00041 <span class="preprocessor">#include "<a class="code" href="a02519.html">vtkEdgeSubdivisionCriterion.h</a>"</span> <a name="l00042"></a>00042 <a name="l00043"></a>00043 <span class="keyword">class </span><a class="code" href="a00240.html" title="abstract class to specify cell behavior">vtkCell</a>; <a name="l00044"></a>00044 <span class="keyword">class </span><a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a>; <a name="l00045"></a>00045 <a name="l00046"></a><a class="code" href="a00379.html">00046</a> <span class="keyword">class </span><a class="code" href="a02170.html#c3c1ffe2fe47b9b70ba90182b7860cce">VTK_GRAPHICS_EXPORT</a> <a class="code" href="a00379.html" title="a subclass of vtkEdgeSubdivisionCriterion for vtkDataSet objects.">vtkDataSetEdgeSubdivisionCriterion</a> : <span class="keyword">public</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="l00047"></a>00047 { <a name="l00048"></a>00048 <span class="keyword">public</span>: <a name="l00049"></a><a class="code" href="a00379.html#d75c1d2e37254fcf938aa0543f79d6ef">00049</a> vtkTypeRevisionMacro(<a class="code" href="a00379.html" title="a subclass of vtkEdgeSubdivisionCriterion for vtkDataSet objects.">vtkDataSetEdgeSubdivisionCriterion</a>,<a class="code" href="a00452.html" title="how to decide whether a linear approximation to nonlinear geometry or field should...">vtkEdgeSubdivisionCriterion</a>); <a name="l00050"></a>00050 <span class="keyword">static</span> <a class="code" href="a00379.html" title="a subclass of vtkEdgeSubdivisionCriterion for vtkDataSet objects.">vtkDataSetEdgeSubdivisionCriterion</a>* <a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>(); <a name="l00051"></a>00051 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00452.html#854b09430dad2af110df8824c140a725">PrintSelf</a>( ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent ); <a name="l00052"></a>00052 <a name="l00053"></a>00053 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetMesh( <a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a>* ); <a name="l00054"></a>00054 <a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a>* GetMesh(); <a name="l00055"></a>00055 <span class="comment">//BTX</span> <a name="l00056"></a>00056 <span class="keyword">const</span> <a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a>* GetMesh() <span class="keyword">const</span>; <a name="l00057"></a>00057 <span class="comment">//ETX</span> <a name="l00058"></a>00058 <a name="l00059"></a>00059 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetCellId( <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> cell ); <a name="l00060"></a>00060 <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> GetCellId() <span class="keyword">const</span>; <a name="l00061"></a>00061 <span class="comment">//BTX</span> <a name="l00062"></a>00062 <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a>& GetCellId(); <a name="l00063"></a>00063 <span class="comment">//ETX</span> <a name="l00064"></a>00064 <a class="code" href="a00240.html" title="abstract class to specify cell behavior">vtkCell</a>* GetCell(); <a name="l00065"></a>00065 <span class="comment">//BTX</span> <a name="l00066"></a>00066 <span class="keyword">const</span> <a class="code" href="a00240.html" title="abstract class to specify cell behavior">vtkCell</a>* GetCell() <span class="keyword">const</span>; <a name="l00067"></a>00067 <span class="comment">//ETX</span> <a name="l00068"></a>00068 <a name="l00069"></a>00069 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="a00452.html#60145ad802e7456a9d71084fb8348b09">EvaluateEdge</a>( <span class="keyword">const</span> <span class="keywordtype">double</span>* p0, <span class="keywordtype">double</span>* midpt, <span class="keyword">const</span> <span class="keywordtype">double</span>* p1, <span class="keywordtype">int</span> field_start ); <a name="l00070"></a>00070 <a name="l00100"></a>00100 <span class="keywordtype">double</span>* EvaluateFields( <span class="keywordtype">double</span>* vertex, <span class="keywordtype">double</span>* weights, <span class="keywordtype">int</span> field_start ); <a name="l00101"></a>00101 <a name="l00103"></a>00103 <a name="l00106"></a>00106 <span class="keywordtype">void</span> EvaluatePointDataField( <span class="keywordtype">double</span>* result, <span class="keywordtype">double</span>* weights, <span class="keywordtype">int</span> <a class="code" href="a03761.html#88ade42854f67d6297898362e17a515fdf24c5348eccaabee77f038f47b36b89">field</a> ); <a name="l00107"></a>00107 <span class="keywordtype">void</span> EvaluateCellDataField( <span class="keywordtype">double</span>* result, <span class="keywordtype">double</span>* weights, <span class="keywordtype">int</span> <a class="code" href="a03761.html#88ade42854f67d6297898362e17a515fdf24c5348eccaabee77f038f47b36b89">field</a> ); <a name="l00109"></a>00109 <a name="l00111"></a>00111 <a name="l00113"></a>00113 vtkSetMacro(ChordError2,<span class="keywordtype">double</span>); <a name="l00114"></a>00114 vtkGetMacro(ChordError2,<span class="keywordtype">double</span>); <a name="l00116"></a>00116 <a name="l00118"></a>00118 <a name="l00122"></a>00122 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetFieldError2( <span class="keywordtype">int</span> s, <span class="keywordtype">double</span> err ); <a name="l00123"></a>00123 <span class="keywordtype">double</span> GetFieldError2( <span class="keywordtype">int</span> s ) <span class="keyword">const</span>; <a name="l00125"></a>00125 <a name="l00129"></a>00129 <span class="keyword">virtual</span> <span class="keywordtype">void</span> ResetFieldError2(); <a name="l00130"></a>00130 <a name="l00132"></a>00132 <a name="l00135"></a>00135 vtkGetMacro(ActiveFieldCriteria,<span class="keywordtype">int</span>); <a name="l00136"></a><a class="code" href="a00379.html#ecef4349bae22e67fc53df40a14bcf28">00136</a> <span class="keywordtype">int</span> GetActiveFieldCriteria()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> this->ActiveFieldCriteria; } <a name="l00138"></a>00138 <a name="l00139"></a>00139 <span class="keyword">protected</span>: <a name="l00140"></a>00140 <a class="code" href="a00379.html" title="a subclass of vtkEdgeSubdivisionCriterion for vtkDataSet objects.">vtkDataSetEdgeSubdivisionCriterion</a>(); <a name="l00141"></a>00141 <span class="keyword">virtual</span> ~<a class="code" href="a00379.html" title="a subclass of vtkEdgeSubdivisionCriterion for vtkDataSet objects.">vtkDataSetEdgeSubdivisionCriterion</a>(); <a name="l00142"></a>00142 <a name="l00143"></a><a class="code" href="a00379.html#396911423348abac5ed2ac10dcced324">00143</a> <a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a>* CurrentMesh; <a name="l00144"></a><a class="code" href="a00379.html#1546e250e355794feec4e613d1aee228">00144</a> <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> CurrentCellId; <a name="l00145"></a><a class="code" href="a00379.html#80fe3f23067ddd772bad5ccd26a8eb05">00145</a> <a class="code" href="a00240.html" title="abstract class to specify cell behavior">vtkCell</a>* CurrentCellData; <a name="l00146"></a>00146 <a name="l00147"></a><a class="code" href="a00379.html#bc1acd2fc7653d595cfc4b5d6be13648">00147</a> <span class="keywordtype">double</span> ChordError2; <a name="l00148"></a><a class="code" href="a00379.html#f744f41b5025c5c451edfd69adf4c724">00148</a> <span class="keywordtype">double</span>* FieldError2; <a name="l00149"></a><a class="code" href="a00379.html#2a1ed7c3d5fd988fa97fc5531eab197f">00149</a> <span class="keywordtype">int</span> FieldError2Length; <a name="l00150"></a><a class="code" href="a00379.html#95fdac6b5ec3c6c4187ab80381767ccf">00150</a> <span class="keywordtype">int</span> FieldError2Capacity; <a name="l00151"></a><a class="code" href="a00379.html#f12278240091130412810505e88affb0">00151</a> <span class="keywordtype">int</span> ActiveFieldCriteria; <a name="l00152"></a>00152 <a name="l00153"></a>00153 <span class="keyword">private</span>: <a name="l00154"></a>00154 <a class="code" href="a00379.html" title="a subclass of vtkEdgeSubdivisionCriterion for vtkDataSet objects.">vtkDataSetEdgeSubdivisionCriterion</a>( <span class="keyword">const</span> <a class="code" href="a00379.html" title="a subclass of vtkEdgeSubdivisionCriterion for vtkDataSet objects.">vtkDataSetEdgeSubdivisionCriterion</a>& ); <span class="comment">// Not implemented.</span> <a name="l00155"></a>00155 <span class="keywordtype">void</span> operator = ( <span class="keyword">const</span> <a class="code" href="a00379.html" title="a subclass of vtkEdgeSubdivisionCriterion for vtkDataSet objects.">vtkDataSetEdgeSubdivisionCriterion</a>& ); <span class="comment">// Not implemented.</span> <a name="l00156"></a>00156 <a name="l00157"></a>00157 }; <a name="l00158"></a>00158 <a name="l00159"></a>00159 <span class="comment">//BTX</span> <a name="l00160"></a>00160 <a name="l00161"></a><a class="code" href="a00379.html#efa5c2ee6c00e941e7aab1bf38ca58ab">00161</a> <span class="keyword">inline</span> <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a>& <a class="code" href="a00379.html#aa3845f6ad55a1644e188488989d8ba8">vtkDataSetEdgeSubdivisionCriterion::GetCellId</a>() { <span class="keywordflow">return</span> this-><a class="code" href="a00379.html#1546e250e355794feec4e613d1aee228">CurrentCellId</a>; } <a name="l00162"></a><a class="code" href="a00379.html#aa3845f6ad55a1644e188488989d8ba8">00162</a> <span class="keyword">inline</span> <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <a class="code" href="a00379.html#aa3845f6ad55a1644e188488989d8ba8">vtkDataSetEdgeSubdivisionCriterion::GetCellId</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> this-><a class="code" href="a00379.html#1546e250e355794feec4e613d1aee228">CurrentCellId</a>; } <a name="l00163"></a>00163 <a name="l00164"></a><a class="code" href="a00379.html#515b8dffbf4c37b97aae9c83fe47b45b">00164</a> <span class="keyword">inline</span> <a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a>* <a class="code" href="a00379.html#515b8dffbf4c37b97aae9c83fe47b45b">vtkDataSetEdgeSubdivisionCriterion::GetMesh</a>() { <span class="keywordflow">return</span> this-><a class="code" href="a00379.html#396911423348abac5ed2ac10dcced324">CurrentMesh</a>; } <a name="l00165"></a><a class="code" href="a00379.html#5295ee08ae4f7bdc1f614eee7375d764">00165</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a>* <a class="code" href="a00379.html#515b8dffbf4c37b97aae9c83fe47b45b">vtkDataSetEdgeSubdivisionCriterion::GetMesh</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> this-><a class="code" href="a00379.html#396911423348abac5ed2ac10dcced324">CurrentMesh</a>; } <a name="l00166"></a>00166 <a name="l00167"></a><a class="code" href="a00379.html#00efe8ee26427b40795601b540117652">00167</a> <span class="keyword">inline</span> <a class="code" href="a00240.html" title="abstract class to specify cell behavior">vtkCell</a>* <a class="code" href="a00379.html#00efe8ee26427b40795601b540117652">vtkDataSetEdgeSubdivisionCriterion::GetCell</a>() { <span class="keywordflow">return</span> this-><a class="code" href="a00379.html#80fe3f23067ddd772bad5ccd26a8eb05">CurrentCellData</a>; } <a name="l00168"></a><a class="code" href="a00379.html#715984fc9f84ec5ae8c724b298a7b097">00168</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="a00240.html" title="abstract class to specify cell behavior">vtkCell</a>* <a class="code" href="a00379.html#00efe8ee26427b40795601b540117652">vtkDataSetEdgeSubdivisionCriterion::GetCell</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> this-><a class="code" href="a00379.html#80fe3f23067ddd772bad5ccd26a8eb05">CurrentCellData</a>; } <a name="l00169"></a>00169 <a name="l00170"></a>00170 <span class="comment">//ETX</span> <a name="l00171"></a>00171 <a name="l00172"></a>00172 <span class="preprocessor">#endif // __vtkDataSetEdgeSubdivisionCriterion_h</span> </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>