Sophie

Sophie

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

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/Graphics/vtkHull.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/Graphics/vtkHull.h</h1><a href="a02563.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: vtkHull.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 __vtkHull_h</span>
<a name="l00044"></a>00044 <span class="preprocessor"></span><span class="preprocessor">#define __vtkHull_h</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span>
<a name="l00046"></a>00046 <span class="preprocessor">#include "<a class="code" href="a02331.html">vtkPolyDataAlgorithm.h</a>"</span>
<a name="l00047"></a>00047 
<a name="l00048"></a>00048 <span class="keyword">class </span><a class="code" href="a00242.html" title="object to represent cell connectivity">vtkCellArray</a>;
<a name="l00049"></a>00049 <span class="keyword">class </span><a class="code" href="a01226.html" title="implicit function for convex set of planes">vtkPlanes</a>;
<a name="l00050"></a>00050 <span class="keyword">class </span><a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>;
<a name="l00051"></a>00051 <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="l00052"></a>00052 
<a name="l00053"></a><a class="code" href="a00698.html">00053</a> <span class="keyword">class </span><a class="code" href="a02170.html#c3c1ffe2fe47b9b70ba90182b7860cce">VTK_GRAPHICS_EXPORT</a> <a class="code" href="a00698.html" title="produce an n-sided convex hull">vtkHull</a> : <span class="keyword">public</span> <a class="code" href="a01261.html" title="Superclass for algorithms that produce only polydata as output.">vtkPolyDataAlgorithm</a>
<a name="l00054"></a>00054 {
<a name="l00055"></a>00055 <span class="keyword">public</span>:
<a name="l00056"></a>00056   <span class="keyword">static</span> <a class="code" href="a00698.html" title="produce an n-sided convex hull">vtkHull</a> *<a class="code" href="a01261.html#cf785ac526132296ff652c636f713b5e">New</a>();
<a name="l00057"></a><a class="code" href="a00698.html#63c595c13cd7d6762bb9aa16d24198a6">00057</a>   vtkTypeRevisionMacro(<a class="code" href="a00698.html" title="produce an n-sided convex hull">vtkHull</a>,<a class="code" href="a01261.html" title="Superclass for algorithms that produce only polydata as output.">vtkPolyDataAlgorithm</a>);
<a name="l00058"></a>00058   <span class="keywordtype">void</span> <a class="code" href="a01261.html#e6d59a63261b0c56f8f473984ae0e1b6">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00059"></a>00059 
<a name="l00061"></a>00061   <span class="keywordtype">void</span> RemoveAllPlanes( <span class="keywordtype">void</span> );
<a name="l00062"></a>00062 
<a name="l00064"></a>00064 
<a name="l00073"></a>00073   <span class="keywordtype">int</span>  AddPlane( <span class="keywordtype">double</span> A, <span class="keywordtype">double</span> B, <span class="keywordtype">double</span> C );
<a name="l00074"></a>00074   <span class="keywordtype">int</span>  AddPlane( <span class="keywordtype">double</span> plane[3] );
<a name="l00076"></a>00076 
<a name="l00078"></a>00078 
<a name="l00084"></a>00084   <span class="keywordtype">void</span> SetPlane( <span class="keywordtype">int</span> i, <span class="keywordtype">double</span> A, <span class="keywordtype">double</span> B, <span class="keywordtype">double</span> C );
<a name="l00085"></a>00085   <span class="keywordtype">void</span> SetPlane( <span class="keywordtype">int</span> i, <span class="keywordtype">double</span> plane[3] );
<a name="l00087"></a>00087 
<a name="l00089"></a>00089 
<a name="l00091"></a>00091   <span class="keywordtype">int</span> AddPlane( <span class="keywordtype">double</span> A, <span class="keywordtype">double</span> B, <span class="keywordtype">double</span> C, <span class="keywordtype">double</span> D );
<a name="l00092"></a>00092   <span class="keywordtype">int</span> AddPlane( <span class="keywordtype">double</span> plane[3], <span class="keywordtype">double</span> D );
<a name="l00093"></a>00093   <span class="keywordtype">void</span> SetPlane( <span class="keywordtype">int</span> i, <span class="keywordtype">double</span> A, <span class="keywordtype">double</span> B, <span class="keywordtype">double</span> C, <span class="keywordtype">double</span> D );
<a name="l00094"></a>00094   <span class="keywordtype">void</span> SetPlane( <span class="keywordtype">int</span> i, <span class="keywordtype">double</span> plane[3], <span class="keywordtype">double</span> D );
<a name="l00096"></a>00096 
<a name="l00099"></a>00099   <span class="keywordtype">void</span> SetPlanes( <a class="code" href="a01226.html" title="implicit function for convex set of planes">vtkPlanes</a> *planes );
<a name="l00100"></a>00100 
<a name="l00102"></a>00102 
<a name="l00103"></a>00103   vtkGetMacro( NumberOfPlanes, <span class="keywordtype">int</span> );
<a name="l00105"></a>00105   
<a name="l00110"></a>00110   <span class="keywordtype">void</span> AddCubeVertexPlanes();
<a name="l00111"></a>00111 
<a name="l00116"></a>00116   <span class="keywordtype">void</span> AddCubeEdgePlanes();
<a name="l00117"></a>00117 
<a name="l00120"></a>00120   <span class="keywordtype">void</span> AddCubeFacePlanes();
<a name="l00121"></a>00121 
<a name="l00129"></a>00129   <span class="keywordtype">void</span> AddRecursiveSpherePlanes( <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2103f20abad13593a5879a08c3e64355835">level</a> );
<a name="l00130"></a>00130 
<a name="l00132"></a>00132 
<a name="l00140"></a>00140   <span class="keywordtype">void</span> GenerateHull(<a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *pd, <span class="keywordtype">double</span> *bounds);
<a name="l00141"></a>00141   <span class="keywordtype">void</span> GenerateHull(<a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *pd, <span class="keywordtype">double</span> xmin, <span class="keywordtype">double</span> xmax,
<a name="l00142"></a>00142                     <span class="keywordtype">double</span> ymin, <span class="keywordtype">double</span> ymax, <span class="keywordtype">double</span> zmin, <span class="keywordtype">double</span> zmax);
<a name="l00144"></a>00144 
<a name="l00145"></a>00145 <span class="keyword">protected</span>:
<a name="l00146"></a>00146   <a class="code" href="a00698.html" title="produce an n-sided convex hull">vtkHull</a>();
<a name="l00147"></a>00147   ~<a class="code" href="a00698.html" title="produce an n-sided convex hull">vtkHull</a>();
<a name="l00148"></a>00148 
<a name="l00149"></a>00149   <span class="comment">// The planes - 4 doubles per plane for A, B, C, D</span>
<a name="l00150"></a><a class="code" href="a00698.html#12ba023b8b85b654b6773e5427548a4f">00150</a>   <span class="keywordtype">double</span>     *Planes;
<a name="l00151"></a>00151 
<a name="l00152"></a>00152   <span class="comment">// This indicates the current size (in planes - 4*sizeof(double)) of </span>
<a name="l00153"></a>00153   <span class="comment">// the this-&gt;Planes array. Planes are allocated in chunks so that the</span>
<a name="l00154"></a>00154   <span class="comment">// array does not need to be reallocated every time a new plane is added</span>
<a name="l00155"></a><a class="code" href="a00698.html#f262dc2f77f5baed316d8046fba6b368">00155</a>   <span class="keywordtype">int</span>       PlanesStorageSize;
<a name="l00156"></a>00156 
<a name="l00157"></a>00157   <span class="comment">// The number of planes that have been added</span>
<a name="l00158"></a><a class="code" href="a00698.html#417342100a15c85401c4ba210fcc9688">00158</a>   <span class="keywordtype">int</span>       NumberOfPlanes;
<a name="l00159"></a>00159 
<a name="l00160"></a>00160   <span class="comment">// Internal method used to find the position of each plane</span>
<a name="l00161"></a>00161   <span class="keywordtype">void</span>      ComputePlaneDistances(<a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *input);
<a name="l00162"></a>00162 
<a name="l00163"></a>00163   <span class="comment">// Internal method used to create the actual polygons from the set </span>
<a name="l00164"></a>00164   <span class="comment">// of planes</span>
<a name="l00165"></a>00165   <span class="keywordtype">void</span>      ClipPolygonsFromPlanes( <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2100fd9718c29b22570d5b02fa5c8de94f7">points</a>, <a class="code" href="a00242.html" title="object to represent cell connectivity">vtkCellArray</a> *polys,
<a name="l00166"></a>00166                                     <span class="keywordtype">double</span> *bounds );
<a name="l00167"></a>00167 
<a name="l00168"></a>00168   <span class="comment">// Internal method used to create the initial "big" polygon from the</span>
<a name="l00169"></a>00169   <span class="comment">// plane equation. This polygon is clipped by all other planes to form</span>
<a name="l00170"></a>00170   <span class="comment">// the final polygon (or it may be clipped entirely)</span>
<a name="l00171"></a>00171   <span class="keywordtype">void</span>      CreateInitialPolygon( <span class="keywordtype">double</span> *, <span class="keywordtype">int</span>, <span class="keywordtype">double</span> * );
<a name="l00172"></a>00172 
<a name="l00173"></a>00173   <span class="comment">// The method that does it all...</span>
<a name="l00174"></a>00174   <span class="keywordtype">int</span> <a class="code" href="a01261.html#6b5a43ab1f9bbcb368c7dc83e4afe068">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 class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *);
<a name="l00175"></a>00175 <span class="keyword">private</span>:
<a name="l00176"></a>00176   <a class="code" href="a00698.html" title="produce an n-sided convex hull">vtkHull</a>(<span class="keyword">const</span> <a class="code" href="a00698.html" title="produce an n-sided convex hull">vtkHull</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00177"></a>00177   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00698.html" title="produce an n-sided convex hull">vtkHull</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00178"></a>00178 };
<a name="l00179"></a>00179 
<a name="l00180"></a>00180 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:27 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>