<!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/Rendering/vtkLabelHierarchy.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/Rendering/vtkLabelHierarchy.h</h1><a href="a03442.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: vtkLabelHierarchy.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"> Copyright 2008 Sandia Corporation.</span> <a name="l00017"></a>00017 <span class="comment"> Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,</span> <a name="l00018"></a>00018 <span class="comment"> the U.S. Government retains certain rights in this software.</span> <a name="l00019"></a>00019 <span class="comment">-------------------------------------------------------------------------*/</span> <a name="l00063"></a>00063 <span class="preprocessor">#ifndef __vtkLabelHierarchy_h</span> <a name="l00064"></a>00064 <span class="preprocessor"></span><span class="preprocessor">#define __vtkLabelHierarchy_h</span> <a name="l00065"></a>00065 <span class="preprocessor"></span> <a name="l00066"></a>00066 <span class="preprocessor">#include "<a class="code" href="a02325.html">vtkPointSet.h</a>"</span> <a name="l00067"></a>00067 <a name="l00068"></a>00068 <span class="keyword">class </span><a class="code" href="a00227.html" title="a virtual camera for 3D rendering">vtkCamera</a>; <a name="l00069"></a>00069 <span class="keyword">class </span><a class="code" href="a00281.html" title="contains an octree of labels">vtkCoincidentPoints</a>; <a name="l00070"></a>00070 <span class="keyword">class </span><a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>; <a name="l00071"></a>00071 <span class="keyword">class </span><a class="code" href="a00945.html" title="iterator over vtkLabelHierarchy">vtkLabelHierarchyIterator</a>; <a name="l00072"></a>00072 <span class="keyword">class </span><a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</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="a01480.html" title="abstract specification for renderers">vtkRenderer</a>; <a name="l00075"></a>00075 <a name="l00076"></a><a class="code" href="a00940.html">00076</a> <span class="keyword">class </span><a class="code" href="a02170.html#4019f67b2e7d601f2cf984e448308dbb">VTK_RENDERING_EXPORT</a> <a class="code" href="a00940.html" title="contains an octree of labels">vtkLabelHierarchy</a> : <span class="keyword">public</span> <a class="code" href="a01251.html" title="abstract class for specifying dataset behavior">vtkPointSet</a> <a name="l00077"></a>00077 { <a name="l00078"></a>00078 <span class="keyword">public</span>: <a name="l00079"></a>00079 <span class="keyword">static</span> <a class="code" href="a00940.html" title="contains an octree of labels">vtkLabelHierarchy</a>* <a class="code" href="a00362.html#13d4f201619a19a9b39978e92239cd98">New</a>(); <a name="l00080"></a><a class="code" href="a00940.html#c6a370b3d8b81cb99a944ffdbd6e3964">00080</a> vtkTypeRevisionMacro(<a class="code" href="a00940.html" title="contains an octree of labels">vtkLabelHierarchy</a>,<a class="code" href="a01251.html" title="abstract class for specifying dataset behavior">vtkPointSet</a>); <a name="l00081"></a>00081 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01251.html#c95298253a67df323a7f28868c5f57de">PrintSelf</a>( ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent ); <a name="l00082"></a>00082 <a name="l00085"></a>00085 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01251.html#4842907707c212909aed03195674b498">SetPoints</a>( <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>* ); <a name="l00086"></a>00086 <a name="l00088"></a>00088 <span class="keyword">virtual</span> <span class="keywordtype">void</span> ComputeHierarchy(); <a name="l00089"></a>00089 <a name="l00091"></a>00091 <a name="l00093"></a>00093 vtkSetMacro(TargetLabelCount,<span class="keywordtype">int</span>); <a name="l00094"></a>00094 vtkGetMacro(TargetLabelCount,<span class="keywordtype">int</span>); <a name="l00096"></a>00096 <a name="l00098"></a>00098 <a name="l00099"></a>00099 vtkSetMacro(MaximumDepth,<span class="keywordtype">int</span>); <a name="l00100"></a>00100 vtkGetMacro(MaximumDepth,<span class="keywordtype">int</span>); <a name="l00102"></a>00102 <a name="l00103"></a>00103 <span class="comment">//BTX</span> <a name="l00105"></a>00105 <span class="comment"></span> <a name="l00106"></a><a class="code" href="a00940.html#5b2c275aa4ccc2fca3452839b2c3275e">00106</a> <span class="keyword">enum</span> <a class="code" href="a00940.html#5b2c275aa4ccc2fca3452839b2c3275e">IteratorType</a> { <a name="l00107"></a><a class="code" href="a00940.html#5b2c275aa4ccc2fca3452839b2c3275e128c28ad596a0c96f9f645a1c8757a6c">00107</a> FULL_SORT, <a name="l00108"></a><a class="code" href="a00940.html#5b2c275aa4ccc2fca3452839b2c3275ec95176e3f2508d29e2200de91e762506">00108</a> QUEUE, <a name="l00109"></a><a class="code" href="a00940.html#5b2c275aa4ccc2fca3452839b2c3275e0d1dd2b46169d1cfb3226140b7d5aec2">00109</a> DEPTH_FIRST, <a name="l00110"></a><a class="code" href="a00940.html#5b2c275aa4ccc2fca3452839b2c3275e7975afb6f0b4e1ed4cba08a69fde488d">00110</a> FRUSTUM <a name="l00111"></a>00111 }; <a name="l00112"></a>00112 <span class="comment">//ETX</span> <a name="l00114"></a>00114 <span class="comment"></span> <a name="l00116"></a>00116 <a name="l00117"></a>00117 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetPriorities(<a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>* arr); <a name="l00118"></a>00118 vtkGetObjectMacro(Priorities,<a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>); <a name="l00120"></a>00120 <a name="l00121"></a>00121 <span class="comment">//BTX</span> <a name="l00123"></a>00123 <span class="comment"></span> <a name="l00132"></a>00132 <a class="code" href="a00945.html" title="iterator over vtkLabelHierarchy">vtkLabelHierarchyIterator</a>* NewIterator( <a name="l00133"></a>00133 <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2108e7f81709ed57920a45c02a954726847">type</a>, <a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a>* ren, <a class="code" href="a00227.html" title="a virtual camera for 3D rendering">vtkCamera</a>* cam, <span class="keywordtype">double</span> frustumPlanes[24], <span class="keywordtype">bool</span> positionsAsNormals, <span class="keywordtype">float</span> bucketSize[2] ); <a name="l00134"></a>00134 <span class="comment">//ETX</span> <a name="l00136"></a>00136 <span class="comment"></span> <a name="l00146"></a>00146 <span class="keywordtype">void</span> GetDiscreteNodeCoordinatesFromWorldPoint( <span class="keywordtype">int</span> ijk[3], <span class="keywordtype">double</span> pt[3], <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2103f20abad13593a5879a08c3e64355835">level</a> ); <a name="l00147"></a>00147 <a name="l00156"></a>00156 <span class="keyword">static</span> <span class="keywordtype">bool</span> GetPathForNodalCoordinates( <span class="keywordtype">int</span>* path, <span class="keywordtype">int</span> ijk[3], <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2103f20abad13593a5879a08c3e64355835">level</a> ); <a name="l00157"></a>00157 <a name="l00159"></a>00159 <a name="l00160"></a>00160 <span class="keyword">virtual</span> <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <a class="code" href="a00374.html#71c110da748f73e5c5f5c42a33805460">GetNumberOfCells</a>(); <a name="l00161"></a>00161 <span class="keyword">virtual</span> <a class="code" href="a00240.html" title="abstract class to specify cell behavior">vtkCell</a>* <a class="code" href="a00374.html#711ed1ebb7bdf4a4e2ed6896081cd1b2">GetCell</a>(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a>); <a name="l00162"></a>00162 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00374.html#711ed1ebb7bdf4a4e2ed6896081cd1b2">GetCell</a>(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a>, <a class="code" href="a00582.html" title="provides thread-safe access to cells">vtkGenericCell</a>*); <a name="l00163"></a>00163 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00374.html#b28fa53d04647bf06d549b5b7c331462">GetCellType</a>(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a>); <a name="l00164"></a>00164 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00374.html#b4d677c257a58e4eb4a80757f9b371ea">GetCellPoints</a>(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a>, <a class="code" href="a00720.html" title="list of point or cell ids">vtkIdList</a>*); <a name="l00165"></a>00165 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00374.html#36d1d8f67ad67adf4d1a9cfb30dade49">GetPointCells</a>(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a>, <a class="code" href="a00720.html" title="list of point or cell ids">vtkIdList</a>*); <a name="l00166"></a>00166 <span class="keyword">virtual</span> <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <a class="code" href="a01251.html#8c2765e70ad5eee58dd3fee289b421b4">FindCell</a>(<span class="keywordtype">double</span>*, <a class="code" href="a00240.html" title="abstract class to specify cell behavior">vtkCell</a>*, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a>, <span class="keywordtype">double</span>, <span class="keywordtype">int</span>&, <span class="keywordtype">double</span>*, <span class="keywordtype">double</span>*); <a name="l00167"></a>00167 <span class="keyword">virtual</span> <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <a class="code" href="a01251.html#8c2765e70ad5eee58dd3fee289b421b4">FindCell</a>(<span class="keywordtype">double</span>*, <a class="code" href="a00240.html" title="abstract class to specify cell behavior">vtkCell</a>*, <a class="code" href="a00582.html" title="provides thread-safe access to cells">vtkGenericCell</a>*, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a>, <span class="keywordtype">double</span>, <span class="keywordtype">int</span>&, <span class="keywordtype">double</span>*, <span class="keywordtype">double</span>*); <a name="l00168"></a>00168 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00374.html#e0749b27b9429010617f21932a1313fd">GetMaxCellSize</a>(); <a name="l00170"></a>00170 <a name="l00171"></a>00171 <span class="comment">//BTX</span> <a name="l00172"></a>00172 <span class="keyword">class </span>Implementation; <a name="l00173"></a><a class="code" href="a00940.html#26bc541d16e421e2deadbddd4006965f">00173</a> <a class="code" href="a00941.html">Implementation</a>* GetImplementation() { <span class="keywordflow">return</span> this->Impl; } <a name="l00174"></a>00174 <span class="comment">//ETX</span> <a name="l00175"></a>00175 <a name="l00177"></a>00177 <a name="l00178"></a>00178 vtkGetObjectMacro(CenterPts,<a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>); <a name="l00180"></a>00180 <a name="l00182"></a>00182 <a name="l00185"></a>00185 vtkGetObjectMacro(CoincidentPoints,<a class="code" href="a00281.html" title="contains an octree of labels">vtkCoincidentPoints</a>); <a name="l00187"></a>00187 <a name="l00188"></a>00188 <span class="keyword">protected</span>: <a name="l00189"></a>00189 <a class="code" href="a00940.html" title="contains an octree of labels">vtkLabelHierarchy</a>(); <a name="l00190"></a>00190 <span class="keyword">virtual</span> ~<a class="code" href="a00940.html" title="contains an octree of labels">vtkLabelHierarchy</a>(); <a name="l00191"></a>00191 <a name="l00192"></a><a class="code" href="a00940.html#7b68be0389717fdf831a7c1b05018d42">00192</a> <span class="keywordtype">int</span> TargetLabelCount; <a name="l00193"></a><a class="code" href="a00940.html#d52769f664b96126c147184a54bc6690">00193</a> <span class="keywordtype">int</span> MaximumDepth; <a name="l00194"></a><a class="code" href="a00940.html#16921a9d3d741faa47bd31d61a00bbf5">00194</a> <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>* Priorities; <a name="l00195"></a><a class="code" href="a00940.html#931707e32c84f72571af9c8cf7fd5881">00195</a> <a class="code" href="a00281.html" title="contains an octree of labels">vtkCoincidentPoints</a>* CoincidentPoints; <a name="l00196"></a><a class="code" href="a00940.html#24e8bf02474290081a25c7877d827dee">00196</a> <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>* CenterPts; <a name="l00197"></a>00197 <a name="l00198"></a>00198 <span class="comment">//BTX</span> <a name="l00199"></a><a class="code" href="a00940.html#4165d2aeaf5cb5290435c02500dc79f1">00199</a> <a class="code" href="a00941.html">Implementation</a>* Impl; <a name="l00200"></a>00200 <a name="l00201"></a><a class="code" href="a00940.html#e0b08efa4386dfa0c68eab5841e28530">00201</a> <span class="keyword">friend</span> <span class="keyword">class </span>vtkLabelHierarchyFrustumIterator; <a name="l00202"></a><a class="code" href="a00940.html#cb68a9453ffa4619fc4dec2af00f0e6a">00202</a> <span class="keyword">friend</span> <span class="keyword">class </span>vtkLabelHierarchyFullSortIterator; <a name="l00203"></a><a class="code" href="a00940.html#6d55a1fa6f79f30d999e66ecb8a43932">00203</a> <span class="keyword">friend</span> <span class="keyword">class </span>implementation; <a name="l00204"></a>00204 <span class="comment">//ETX</span> <a name="l00205"></a>00205 <a name="l00206"></a>00206 <span class="keyword">private</span>: <a name="l00207"></a>00207 <a class="code" href="a00940.html" title="contains an octree of labels">vtkLabelHierarchy</a>( <span class="keyword">const</span> <a class="code" href="a00940.html" title="contains an octree of labels">vtkLabelHierarchy</a>& ); <span class="comment">// Not implemented.</span> <a name="l00208"></a>00208 <span class="keywordtype">void</span> operator = ( <span class="keyword">const</span> <a class="code" href="a00940.html" title="contains an octree of labels">vtkLabelHierarchy</a>& ); <span class="comment">// Not implemented.</span> <a name="l00209"></a>00209 }; <a name="l00210"></a>00210 <a name="l00211"></a>00211 <span class="preprocessor">#endif // __vtkLabelHierarchy_h</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:47 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>