<!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/Widgets/vtkImplicitPlaneRepresentation.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/Widgets/vtkImplicitPlaneRepresentation.h</h1><a href="a03699.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: vtkImplicitPlaneRepresentation.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="l00040"></a>00040 <span class="preprocessor">#ifndef __vtkImplicitPlaneRepresentation_h</span> <a name="l00041"></a>00041 <span class="preprocessor"></span><span class="preprocessor">#define __vtkImplicitPlaneRepresentation_h</span> <a name="l00042"></a>00042 <span class="preprocessor"></span> <a name="l00043"></a>00043 <span class="preprocessor">#include "<a class="code" href="a03750.html">vtkWidgetRepresentation.h</a>"</span> <a name="l00044"></a>00044 <a name="l00045"></a>00045 <span class="keyword">class </span><a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a>; <a name="l00046"></a>00046 <span class="keyword">class </span><a class="code" href="a01265.html" title="map vtkPolyData to graphics primitives">vtkPolyDataMapper</a>; <a name="l00047"></a>00047 <span class="keyword">class </span><a class="code" href="a00251.html" title="select a cell by shooting a ray into graphics window">vtkCellPicker</a>; <a name="l00048"></a>00048 <span class="keyword">class </span><a class="code" href="a00316.html" title="generate polygonal cone">vtkConeSource</a>; <a name="l00049"></a>00049 <span class="keyword">class </span><a class="code" href="a00966.html" title="create a line defined by two end points">vtkLineSource</a>; <a name="l00050"></a>00050 <span class="keyword">class </span><a class="code" href="a01582.html" title="create a polygonal sphere centered at the origin">vtkSphereSource</a>; <a name="l00051"></a>00051 <span class="keyword">class </span><a class="code" href="a01768.html" title="filter that generates tubes around lines">vtkTubeFilter</a>; <a name="l00052"></a>00052 <span class="keyword">class </span><a class="code" href="a01224.html" title="perform various plane computations">vtkPlane</a>; <a name="l00053"></a>00053 <span class="keyword">class </span><a class="code" href="a00351.html" title="Cut vtkDataSet with user-specified implicit function.">vtkCutter</a>; <a name="l00054"></a>00054 <span class="keyword">class </span><a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>; <a name="l00055"></a>00055 <span class="keyword">class </span><a class="code" href="a00751.html" title="topologically and geometrically regular array of data">vtkImageData</a>; <a name="l00056"></a>00056 <span class="keyword">class </span><a class="code" href="a01141.html" title="create wireframe outline for arbitrary data set">vtkOutlineFilter</a>; <a name="l00057"></a>00057 <span class="keyword">class </span><a class="code" href="a00536.html" title="extract boundary, non-manifold, and/or sharp edges from polygonal data">vtkFeatureEdges</a>; <a name="l00058"></a>00058 <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="l00059"></a>00059 <span class="keyword">class </span><a class="code" href="a01261.html" title="Superclass for algorithms that produce only polydata as output.">vtkPolyDataAlgorithm</a>; <a name="l00060"></a>00060 <span class="keyword">class </span><a class="code" href="a01723.html" title="describes linear transformations via a 4x4 matrix">vtkTransform</a>; <a name="l00061"></a>00061 <span class="keyword">class </span><a class="code" href="a00195.html" title="implicit function for a bounding box">vtkBox</a>; <a name="l00062"></a>00062 <a name="l00063"></a><a class="code" href="a00860.html">00063</a> <span class="keyword">class </span><a class="code" href="a02170.html#09e5ba6764f54642494e26907662d55f">VTK_WIDGETS_EXPORT</a> <a class="code" href="a00860.html" title="a class defining the representation for a vtkImplicitPlaneWidget2">vtkImplicitPlaneRepresentation</a> : <span class="keyword">public</span> <a class="code" href="a01877.html" title="abstract class defines interface between the widget and widget representation classes...">vtkWidgetRepresentation</a> <a name="l00064"></a>00064 { <a name="l00065"></a>00065 <span class="keyword">public</span>: <a name="l00067"></a>00067 <span class="keyword">static</span> <a class="code" href="a00860.html" title="a class defining the representation for a vtkImplicitPlaneWidget2">vtkImplicitPlaneRepresentation</a> *<a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>(); <a name="l00068"></a>00068 <a name="l00070"></a>00070 <a name="l00071"></a><a class="code" href="a00860.html#ac3ae66320d854c81e4d6cef1df8b625">00071</a> vtkTypeRevisionMacro(<a class="code" href="a00860.html" title="a class defining the representation for a vtkImplicitPlaneWidget2">vtkImplicitPlaneRepresentation</a>,<a class="code" href="a01877.html" title="abstract class defines interface between the widget and widget representation classes...">vtkWidgetRepresentation</a>); <a name="l00072"></a>00072 <span class="keywordtype">void</span> <a class="code" href="a01877.html#dea6d0138ff965f86cac0a91553ad78f">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00074"></a>00074 <a name="l00076"></a>00076 <a name="l00077"></a>00077 <span class="keywordtype">void</span> SetOrigin(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> z); <a name="l00078"></a>00078 <span class="keywordtype">void</span> SetOrigin(<span class="keywordtype">double</span> x[3]); <a name="l00079"></a>00079 <span class="keywordtype">double</span>* GetOrigin(); <a name="l00080"></a>00080 <span class="keywordtype">void</span> GetOrigin(<span class="keywordtype">double</span> xyz[3]); <a name="l00082"></a>00082 <a name="l00084"></a>00084 <a name="l00085"></a>00085 <span class="keywordtype">void</span> SetNormal(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> z); <a name="l00086"></a>00086 <span class="keywordtype">void</span> SetNormal(<span class="keywordtype">double</span> x[3]); <a name="l00087"></a>00087 <span class="keywordtype">double</span>* GetNormal(); <a name="l00088"></a>00088 <span class="keywordtype">void</span> GetNormal(<span class="keywordtype">double</span> xyz[3]); <a name="l00090"></a>00090 <a name="l00092"></a>00092 <a name="l00096"></a>00096 <span class="keywordtype">void</span> SetNormalToXAxis(<span class="keywordtype">int</span>); <a name="l00097"></a>00097 vtkGetMacro(NormalToXAxis,<span class="keywordtype">int</span>); <a name="l00098"></a>00098 vtkBooleanMacro(NormalToXAxis,<span class="keywordtype">int</span>); <a name="l00099"></a>00099 <span class="keywordtype">void</span> SetNormalToYAxis(<span class="keywordtype">int</span>); <a name="l00100"></a>00100 vtkGetMacro(NormalToYAxis,<span class="keywordtype">int</span>); <a name="l00101"></a>00101 vtkBooleanMacro(NormalToYAxis,<span class="keywordtype">int</span>); <a name="l00102"></a>00102 <span class="keywordtype">void</span> SetNormalToZAxis(<span class="keywordtype">int</span>); <a name="l00103"></a>00103 vtkGetMacro(NormalToZAxis,<span class="keywordtype">int</span>); <a name="l00104"></a>00104 vtkBooleanMacro(NormalToZAxis,<span class="keywordtype">int</span>); <a name="l00106"></a>00106 <a name="l00108"></a>00108 <a name="l00110"></a>00110 vtkSetMacro(Tubing,<span class="keywordtype">int</span>); <a name="l00111"></a>00111 vtkGetMacro(Tubing,<span class="keywordtype">int</span>); <a name="l00112"></a>00112 vtkBooleanMacro(Tubing,<span class="keywordtype">int</span>); <a name="l00114"></a>00114 <a name="l00116"></a>00116 <a name="l00120"></a>00120 <span class="keywordtype">void</span> SetDrawPlane(<span class="keywordtype">int</span> plane); <a name="l00121"></a>00121 vtkGetMacro(DrawPlane,<span class="keywordtype">int</span>); <a name="l00122"></a>00122 vtkBooleanMacro(DrawPlane,<span class="keywordtype">int</span>); <a name="l00124"></a>00124 <a name="l00126"></a>00126 <a name="l00128"></a>00128 vtkSetMacro(OutlineTranslation,<span class="keywordtype">int</span>); <a name="l00129"></a>00129 vtkGetMacro(OutlineTranslation,<span class="keywordtype">int</span>); <a name="l00130"></a>00130 vtkBooleanMacro(OutlineTranslation,<span class="keywordtype">int</span>); <a name="l00132"></a>00132 <a name="l00134"></a>00134 <a name="l00136"></a>00136 vtkSetMacro(OutsideBounds,<span class="keywordtype">int</span>); <a name="l00137"></a>00137 vtkGetMacro(OutsideBounds,<span class="keywordtype">int</span>); <a name="l00138"></a>00138 vtkBooleanMacro(OutsideBounds,<span class="keywordtype">int</span>); <a name="l00140"></a>00140 <a name="l00142"></a>00142 <a name="l00143"></a>00143 vtkSetMacro(ScaleEnabled,<span class="keywordtype">int</span>); <a name="l00144"></a>00144 vtkGetMacro(ScaleEnabled,<span class="keywordtype">int</span>); <a name="l00145"></a>00145 vtkBooleanMacro(ScaleEnabled,<span class="keywordtype">int</span>); <a name="l00147"></a>00147 <a name="l00150"></a>00150 <span class="keywordtype">void</span> GetPolyData(<a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *pd); <a name="l00151"></a>00151 <a name="l00154"></a>00154 <a class="code" href="a01261.html" title="Superclass for algorithms that produce only polydata as output.">vtkPolyDataAlgorithm</a>* GetPolyDataAlgorithm(); <a name="l00155"></a>00155 <a name="l00160"></a>00160 <span class="keywordtype">void</span> GetPlane(<a class="code" href="a01224.html" title="perform various plane computations">vtkPlane</a> *plane); <a name="l00161"></a>00161 <a name="l00165"></a>00165 <span class="keywordtype">void</span> UpdatePlacement(<span class="keywordtype">void</span>); <a name="l00166"></a>00166 <a name="l00168"></a>00168 <a name="l00169"></a>00169 vtkGetObjectMacro(NormalProperty,<a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>); <a name="l00170"></a>00170 vtkGetObjectMacro(SelectedNormalProperty,<a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>); <a name="l00172"></a>00172 <a name="l00174"></a>00174 <a name="l00176"></a>00176 vtkGetObjectMacro(PlaneProperty,<a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>); <a name="l00177"></a>00177 vtkGetObjectMacro(SelectedPlaneProperty,<a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>); <a name="l00179"></a>00179 <a name="l00181"></a>00181 <a name="l00182"></a>00182 vtkGetObjectMacro(OutlineProperty,<a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>); <a name="l00183"></a>00183 vtkGetObjectMacro(SelectedOutlineProperty,<a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>); <a name="l00185"></a>00185 <a name="l00187"></a>00187 <a name="l00189"></a>00189 vtkGetObjectMacro(EdgesProperty,<a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>); <a name="l00191"></a>00191 <a name="l00193"></a>00193 <a name="l00194"></a>00194 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01877.html#b0aeed71d0331ae3e5c6472572f3900b">ComputeInteractionState</a>(<span class="keywordtype">int</span> X, <span class="keywordtype">int</span> Y, <span class="keywordtype">int</span> modify=0); <a name="l00195"></a>00195 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01877.html#dbe69d604d5e458504229326abeecd3b">PlaceWidget</a>(<span class="keywordtype">double</span> bounds[6]); <a name="l00196"></a>00196 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01877.html#a7dfbf5a2b39487c072266e0e1520ec7">BuildRepresentation</a>(); <a name="l00197"></a>00197 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01877.html#9aece0d7ff74c1fcfd5f427088cab77b">StartWidgetInteraction</a>(<span class="keywordtype">double</span> eventPos[2]); <a name="l00198"></a>00198 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01877.html#73adbf84d1745e1393eda384a5f31d52">WidgetInteraction</a>(<span class="keywordtype">double</span> newEventPos[2]); <a name="l00199"></a>00199 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01877.html#879e55c5bac3cc9a471140addd500900">EndWidgetInteraction</a>(<span class="keywordtype">double</span> newEventPos[2]); <a name="l00201"></a>00201 <a name="l00203"></a>00203 <a name="l00204"></a>00204 <span class="keyword">virtual</span> <span class="keywordtype">double</span> *<a class="code" href="a01877.html#32efe13a1f1627c90bde36414bd9df9a">GetBounds</a>(); <a name="l00205"></a>00205 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01877.html#941529adca4ea1e3152ecbd7657aed6f">GetActors</a>(<a class="code" href="a01321.html" title="a list of Props">vtkPropCollection</a> *pc); <a name="l00206"></a>00206 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01877.html#a5428644337fcf61013390e6d619ff9f">ReleaseGraphicsResources</a>(<a class="code" href="a01886.html" title="window superclass for vtkRenderWindow">vtkWindow</a>*); <a name="l00207"></a>00207 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01877.html#5db136973bcd6232d212eeb1afcd0354">RenderOpaqueGeometry</a>(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a>*); <a name="l00208"></a>00208 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01877.html#72c591ce53e9320977850735a4057870">RenderTranslucentPolygonalGeometry</a>(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a>*); <a name="l00209"></a>00209 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01877.html#8b7761451b47996f96aacab32882ca25">HasTranslucentPolygonalGeometry</a>(); <a name="l00211"></a>00211 <a name="l00212"></a>00212 <span class="comment">//BTX - manage the state of the widget</span> <a name="l00213"></a><a class="code" href="a00860.html#656ba73ab542b5cfba891deedc927776">00213</a> <span class="keyword">enum</span> <a class="code" href="a00860.html#656ba73ab542b5cfba891deedc927776">_InteractionState</a> <a name="l00214"></a>00214 { <a name="l00215"></a><a class="code" href="a00860.html#656ba73ab542b5cfba891deedc9277766dbf74c8141d771c075ec034b797f719">00215</a> Outside=0, <a name="l00216"></a><a class="code" href="a00860.html#656ba73ab542b5cfba891deedc9277766c7282d4d5426996dfa9a46c1d0e269e">00216</a> Moving, <a name="l00217"></a><a class="code" href="a00860.html#656ba73ab542b5cfba891deedc927776d9180291596b5c4ecb460acb9907f8df">00217</a> MovingOutline, <a name="l00218"></a><a class="code" href="a00860.html#656ba73ab542b5cfba891deedc92777668bc6c6aebb37fcbdc3426861314a549">00218</a> MovingOrigin, <a name="l00219"></a><a class="code" href="a00860.html#656ba73ab542b5cfba891deedc927776fc04544a961410b9c94d4c6e325f6d35">00219</a> Rotating, <a name="l00220"></a><a class="code" href="a00860.html#656ba73ab542b5cfba891deedc9277765975c4b9943ec1ee5c3ff04270d454f3">00220</a> Pushing, <a name="l00221"></a><a class="code" href="a00860.html#656ba73ab542b5cfba891deedc927776e332a7a979baa68ac49f405d7e59a41d">00221</a> MovingPlane, <a name="l00222"></a><a class="code" href="a00860.html#656ba73ab542b5cfba891deedc92777643619eda8c4fc10c7e13a2d871fa7ef0">00222</a> Scaling <a name="l00223"></a>00223 }; <a name="l00224"></a>00224 <span class="comment">//ETX</span> <a name="l00225"></a>00225 <a name="l00227"></a>00227 <a name="l00234"></a>00234 vtkSetClampMacro(InteractionState,<span class="keywordtype">int</span>,Outside,Scaling); <a name="l00236"></a>00236 <a name="l00238"></a>00238 <a name="l00240"></a>00240 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetRepresentationState(<span class="keywordtype">int</span>); <a name="l00241"></a>00241 vtkGetMacro(RepresentationState, <span class="keywordtype">int</span>); <a name="l00243"></a>00243 <a name="l00244"></a>00244 <span class="keyword">protected</span>: <a name="l00245"></a>00245 <a class="code" href="a00860.html" title="a class defining the representation for a vtkImplicitPlaneWidget2">vtkImplicitPlaneRepresentation</a>(); <a name="l00246"></a>00246 ~<a class="code" href="a00860.html" title="a class defining the representation for a vtkImplicitPlaneWidget2">vtkImplicitPlaneRepresentation</a>(); <a name="l00247"></a>00247 <a name="l00248"></a><a class="code" href="a00860.html#ad516185b4875f9baced2e593aaab15e">00248</a> <span class="keywordtype">int</span> RepresentationState; <a name="l00249"></a>00249 <a name="l00250"></a>00250 <span class="comment">// Keep track of event positions</span> <a name="l00251"></a><a class="code" href="a00860.html#006bad37eca71589971f8154f1f98de6">00251</a> <span class="keywordtype">double</span> LastEventPosition[3]; <a name="l00252"></a>00252 <a name="l00253"></a>00253 <span class="comment">// Controlling ivars</span> <a name="l00254"></a><a class="code" href="a00860.html#6827517957c99d9c567cfd1000a3e4d3">00254</a> <span class="keywordtype">int</span> NormalToXAxis; <a name="l00255"></a><a class="code" href="a00860.html#d6e269d64f80e316cb05d068222eb7ae">00255</a> <span class="keywordtype">int</span> NormalToYAxis; <a name="l00256"></a><a class="code" href="a00860.html#d05352d6954ab90a68f52fb130a67ed1">00256</a> <span class="keywordtype">int</span> NormalToZAxis; <a name="l00257"></a>00257 <a name="l00258"></a>00258 <span class="comment">// The actual plane which is being manipulated</span> <a name="l00259"></a><a class="code" href="a00860.html#d5bbfcd806d72790e915accfa52c810b">00259</a> <a class="code" href="a01224.html" title="perform various plane computations">vtkPlane</a> *Plane; <a name="l00260"></a>00260 <a name="l00261"></a>00261 <span class="comment">// The bounding box is represented by a single voxel image data</span> <a name="l00262"></a><a class="code" href="a00860.html#f53c1ac556dc42c0fd83fb7882440845">00262</a> <a class="code" href="a00751.html" title="topologically and geometrically regular array of data">vtkImageData</a> *<a class="code" href="a03761.html#88ade42854f67d6297898362e17a515f7e412548280b02c9eab8af16389177f3">Box</a>; <a name="l00263"></a><a class="code" href="a00860.html#509a876b5191ce420eca3d2f567b08af">00263</a> <a class="code" href="a01141.html" title="create wireframe outline for arbitrary data set">vtkOutlineFilter</a> *Outline; <a name="l00264"></a><a class="code" href="a00860.html#6abf1bae50146954109715e2db84e8cd">00264</a> <a class="code" href="a01265.html" title="map vtkPolyData to graphics primitives">vtkPolyDataMapper</a> *OutlineMapper; <a name="l00265"></a><a class="code" href="a00860.html#ff3387a90dd35ece81d5a7837ca5c299">00265</a> <a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a> *OutlineActor; <a name="l00266"></a>00266 <span class="keywordtype">void</span> HighlightOutline(<span class="keywordtype">int</span> highlight); <a name="l00267"></a><a class="code" href="a00860.html#9a32d5eaa07f84f72054ec84d36b535d">00267</a> <span class="keywordtype">int</span> OutlineTranslation; <span class="comment">//whether the outline can be moved</span> <a name="l00268"></a><a class="code" href="a00860.html#38398997a412d7c75125152a8a1d4346">00268</a> <span class="keywordtype">int</span> ScaleEnabled; <span class="comment">//whether the widget can be scaled </span> <a name="l00269"></a><a class="code" href="a00860.html#244f8f9132abdad52b07ff7eebecf957">00269</a> <span class="keywordtype">int</span> OutsideBounds; <span class="comment">//whether the widget can be moved outside input's bounds</span> <a name="l00270"></a>00270 <a name="l00271"></a>00271 <span class="comment">// The cut plane is produced with a vtkCutter</span> <a name="l00272"></a><a class="code" href="a00860.html#552e723c1f352ac221bb230d57b34511">00272</a> <a class="code" href="a00351.html" title="Cut vtkDataSet with user-specified implicit function.">vtkCutter</a> *Cutter; <a name="l00273"></a><a class="code" href="a00860.html#2dd2eb86acba5a8e6e5c9d3c34d7dc69">00273</a> <a class="code" href="a01265.html" title="map vtkPolyData to graphics primitives">vtkPolyDataMapper</a> *CutMapper; <a name="l00274"></a><a class="code" href="a00860.html#9e1b4a1f494c2c8194de64c80979218c">00274</a> <a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a> *CutActor; <a name="l00275"></a><a class="code" href="a00860.html#147bdfcc9fe6750b87f85b3c7a7d7729">00275</a> <span class="keywordtype">int</span> DrawPlane; <a name="l00276"></a>00276 <span class="keywordtype">void</span> HighlightPlane(<span class="keywordtype">int</span> highlight); <a name="l00277"></a>00277 <a name="l00278"></a>00278 <span class="comment">// Optional tubes are represented by extracting boundary edges and tubing</span> <a name="l00279"></a><a class="code" href="a00860.html#0d77cfa22cbe4bf99e9d6b2fb8d48c00">00279</a> <a class="code" href="a00536.html" title="extract boundary, non-manifold, and/or sharp edges from polygonal data">vtkFeatureEdges</a> *Edges; <a name="l00280"></a><a class="code" href="a00860.html#64d54a1721ab0533d792436d475283df">00280</a> <a class="code" href="a01768.html" title="filter that generates tubes around lines">vtkTubeFilter</a> *EdgesTuber; <a name="l00281"></a><a class="code" href="a00860.html#a88d82613cf12f8890e6cecdd4d4a430">00281</a> <a class="code" href="a01265.html" title="map vtkPolyData to graphics primitives">vtkPolyDataMapper</a> *EdgesMapper; <a name="l00282"></a><a class="code" href="a00860.html#4cf78d643c590bdff2d06f5f01e0a71d">00282</a> <a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a> *EdgesActor; <a name="l00283"></a><a class="code" href="a00860.html#d3731c5a162de41a17f2cb9feaf6d6b9">00283</a> <span class="keywordtype">int</span> Tubing; <span class="comment">//control whether tubing is on</span> <a name="l00284"></a>00284 <a name="l00285"></a>00285 <span class="comment">// The + normal cone</span> <a name="l00286"></a><a class="code" href="a00860.html#8494e1a9787872f9f9ae2134616568d5">00286</a> <a class="code" href="a00316.html" title="generate polygonal cone">vtkConeSource</a> *ConeSource; <a name="l00287"></a><a class="code" href="a00860.html#3bb83fb14465cafe98561c99885c6c41">00287</a> <a class="code" href="a01265.html" title="map vtkPolyData to graphics primitives">vtkPolyDataMapper</a> *ConeMapper; <a name="l00288"></a><a class="code" href="a00860.html#448df7397ba0ddce7a892f70e5f2ae33">00288</a> <a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a> *ConeActor; <a name="l00289"></a>00289 <span class="keywordtype">void</span> HighlightNormal(<span class="keywordtype">int</span> highlight); <a name="l00290"></a>00290 <a name="l00291"></a>00291 <span class="comment">// The + normal line</span> <a name="l00292"></a><a class="code" href="a00860.html#096d4c70cb26d4cfd2d6dbcd40028137">00292</a> <a class="code" href="a00966.html" title="create a line defined by two end points">vtkLineSource</a> *LineSource; <a name="l00293"></a><a class="code" href="a00860.html#35a72a954de79a9c9df45936270b68d6">00293</a> <a class="code" href="a01265.html" title="map vtkPolyData to graphics primitives">vtkPolyDataMapper</a> *LineMapper; <a name="l00294"></a><a class="code" href="a00860.html#b0c8c3e55331024ec0a6c0e5d0eeeb6d">00294</a> <a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a> *LineActor; <a name="l00295"></a>00295 <a name="l00296"></a>00296 <span class="comment">// The - normal cone</span> <a name="l00297"></a><a class="code" href="a00860.html#f8564f534bcf9144d99dac7a9091049a">00297</a> <a class="code" href="a00316.html" title="generate polygonal cone">vtkConeSource</a> *ConeSource2; <a name="l00298"></a><a class="code" href="a00860.html#741ebe6863123bfe927d8cd4cf685af4">00298</a> <a class="code" href="a01265.html" title="map vtkPolyData to graphics primitives">vtkPolyDataMapper</a> *ConeMapper2; <a name="l00299"></a><a class="code" href="a00860.html#9d2b0d433be5ff5cd6287bb0f11a861b">00299</a> <a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a> *ConeActor2; <a name="l00300"></a>00300 <a name="l00301"></a>00301 <span class="comment">// The - normal line</span> <a name="l00302"></a><a class="code" href="a00860.html#3904617d75aa998a15adbd6bdae60dea">00302</a> <a class="code" href="a00966.html" title="create a line defined by two end points">vtkLineSource</a> *LineSource2; <a name="l00303"></a><a class="code" href="a00860.html#0b9ae504bf34a429b4d29c7de8bd1e2e">00303</a> <a class="code" href="a01265.html" title="map vtkPolyData to graphics primitives">vtkPolyDataMapper</a> *LineMapper2; <a name="l00304"></a><a class="code" href="a00860.html#5da2e580b5a18a4bef1dfcfada6893b8">00304</a> <a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a> *LineActor2; <a name="l00305"></a>00305 <a name="l00306"></a>00306 <span class="comment">// The origin positioning handle</span> <a name="l00307"></a><a class="code" href="a00860.html#0439386c746efcae824369b4afcef86e">00307</a> <a class="code" href="a01582.html" title="create a polygonal sphere centered at the origin">vtkSphereSource</a> *<a class="code" href="a03761.html#88ade42854f67d6297898362e17a515f160e72e7e49fa08ea644aa53ba397cd5">Sphere</a>; <a name="l00308"></a><a class="code" href="a00860.html#0092cf6f6fe2dd537ca0f64232c267c1">00308</a> <a class="code" href="a01265.html" title="map vtkPolyData to graphics primitives">vtkPolyDataMapper</a> *SphereMapper; <a name="l00309"></a><a class="code" href="a00860.html#eb67485879a838a4558c94bf9bf95379">00309</a> <a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a> *SphereActor; <a name="l00310"></a>00310 <a name="l00311"></a>00311 <span class="comment">// Do the picking</span> <a name="l00312"></a><a class="code" href="a00860.html#8bf7eb823eff2a0fa048a3e486e6d765">00312</a> <a class="code" href="a00251.html" title="select a cell by shooting a ray into graphics window">vtkCellPicker</a> *Picker; <a name="l00313"></a>00313 <a name="l00314"></a>00314 <span class="comment">// Transform the normal (used for rotation)</span> <a name="l00315"></a><a class="code" href="a00860.html#5905f032a5ef2ac09069ddd989c6de37">00315</a> <a class="code" href="a01723.html" title="describes linear transformations via a 4x4 matrix">vtkTransform</a> *<a class="code" href="a03761.html#88ade42854f67d6297898362e17a515fff3c18ad1157bfb059d04b59dd18eae9">Transform</a>; <a name="l00316"></a>00316 <a name="l00317"></a>00317 <span class="comment">// Methods to manipulate the plane</span> <a name="l00318"></a>00318 <span class="keywordtype">void</span> ConstrainOrigin(<span class="keywordtype">double</span> x[3]); <a name="l00319"></a>00319 <span class="keywordtype">void</span> Rotate(<span class="keywordtype">double</span> X, <span class="keywordtype">double</span> Y, <span class="keywordtype">double</span> *p1, <span class="keywordtype">double</span> *p2, <span class="keywordtype">double</span> *vpn); <a name="l00320"></a>00320 <span class="keywordtype">void</span> TranslatePlane(<span class="keywordtype">double</span> *p1, <span class="keywordtype">double</span> *p2); <a name="l00321"></a>00321 <span class="keywordtype">void</span> TranslateOutline(<span class="keywordtype">double</span> *p1, <span class="keywordtype">double</span> *p2); <a name="l00322"></a>00322 <span class="keywordtype">void</span> TranslateOrigin(<span class="keywordtype">double</span> *p1, <span class="keywordtype">double</span> *p2); <a name="l00323"></a>00323 <span class="keywordtype">void</span> Push(<span class="keywordtype">double</span> *p1, <span class="keywordtype">double</span> *p2); <a name="l00324"></a>00324 <span class="keywordtype">void</span> Scale(<span class="keywordtype">double</span> *p1, <span class="keywordtype">double</span> *p2, <span class="keywordtype">double</span> X, <span class="keywordtype">double</span> Y); <a name="l00325"></a>00325 <span class="keywordtype">void</span> SizeHandles(); <a name="l00326"></a>00326 <a name="l00327"></a>00327 <span class="comment">// Properties used to control the appearance of selected objects and</span> <a name="l00328"></a>00328 <span class="comment">// the manipulator in general.</span> <a name="l00329"></a><a class="code" href="a00860.html#e7f67af7e1fb9ce42d142ce9f4ce9f5b">00329</a> <a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a> *NormalProperty; <a name="l00330"></a><a class="code" href="a00860.html#0aab0efe59f9bc20cf47d807c70fdd23">00330</a> <a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a> *SelectedNormalProperty; <a name="l00331"></a><a class="code" href="a00860.html#880b53bc4d3427baa66d562a0de0b821">00331</a> <a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a> *PlaneProperty; <a name="l00332"></a><a class="code" href="a00860.html#7b4bbae70b14a605495274f756ac9069">00332</a> <a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a> *SelectedPlaneProperty; <a name="l00333"></a><a class="code" href="a00860.html#8c5c8925103fe8a7a9a2e30c2a07d2f8">00333</a> <a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a> *OutlineProperty; <a name="l00334"></a><a class="code" href="a00860.html#baf6f26f053398f71c7df9c4558cb073">00334</a> <a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a> *SelectedOutlineProperty; <a name="l00335"></a><a class="code" href="a00860.html#283c5f0d9529f16d154a29bec5b24255">00335</a> <a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a> *EdgesProperty; <a name="l00336"></a>00336 <span class="keywordtype">void</span> CreateDefaultProperties(); <a name="l00337"></a>00337 <a name="l00338"></a>00338 <span class="keywordtype">void</span> GeneratePlane(); <a name="l00339"></a>00339 <a name="l00340"></a>00340 <span class="comment">// Support GetBounds() method</span> <a name="l00341"></a><a class="code" href="a00860.html#8735686ade3fe24e6e78184b809b3bf8">00341</a> <a class="code" href="a00195.html" title="implicit function for a bounding box">vtkBox</a> *BoundingBox; <a name="l00342"></a>00342 <a name="l00343"></a>00343 <span class="keyword">private</span>: <a name="l00344"></a>00344 <a class="code" href="a00860.html" title="a class defining the representation for a vtkImplicitPlaneWidget2">vtkImplicitPlaneRepresentation</a>(<span class="keyword">const</span> <a class="code" href="a00860.html" title="a class defining the representation for a vtkImplicitPlaneWidget2">vtkImplicitPlaneRepresentation</a>&); <span class="comment">//Not implemented</span> <a name="l00345"></a>00345 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00860.html" title="a class defining the representation for a vtkImplicitPlaneWidget2">vtkImplicitPlaneRepresentation</a>&); <span class="comment">//Not implemented</span> <a name="l00346"></a>00346 }; <a name="l00347"></a>00347 <a name="l00348"></a>00348 <span class="preprocessor">#endif</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:53 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>