<!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/vtkBiDimensionalRepresentation2D.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/vtkBiDimensionalRepresentation2D.h</h1><a href="a03661.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: vtkBiDimensionalRepresentation2D.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 __vtkBiDimensionalRepresentation2D_h</span> <a name="l00044"></a>00044 <span class="preprocessor"></span><span class="preprocessor">#define __vtkBiDimensionalRepresentation2D_h</span> <a name="l00045"></a>00045 <span class="preprocessor"></span> <a name="l00046"></a>00046 <span class="preprocessor">#include "<a class="code" href="a03750.html">vtkWidgetRepresentation.h</a>"</span> <a name="l00047"></a>00047 <a name="l00048"></a>00048 <span class="keyword">class </span><a class="code" href="a00678.html" title="abstract class for representing widget handles">vtkHandleRepresentation</a>; <a name="l00049"></a>00049 <span class="keyword">class </span><a class="code" href="a00242.html" title="object to represent cell connectivity">vtkCellArray</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 <span class="keyword">class </span><a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a>; <a name="l00053"></a>00053 <span class="keyword">class </span><a class="code" href="a01691.html" title="2D text annotation">vtkTextMapper</a>; <a name="l00054"></a>00054 <span class="keyword">class </span><a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a>; <a name="l00055"></a>00055 <span class="keyword">class </span><a class="code" href="a01323.html" title="represent surface properties of a 2D image">vtkProperty2D</a>; <a name="l00056"></a>00056 <span class="keyword">class </span><a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a>; <a name="l00057"></a>00057 <a name="l00058"></a>00058 <a name="l00059"></a><a class="code" href="a00164.html">00059</a> <span class="keyword">class </span><a class="code" href="a02170.html#09e5ba6764f54642494e26907662d55f">VTK_WIDGETS_EXPORT</a> <a class="code" href="a00164.html" title="represent the vtkBiDimensionalWidget">vtkBiDimensionalRepresentation2D</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="l00060"></a>00060 { <a name="l00061"></a>00061 <span class="keyword">public</span>: <a name="l00063"></a>00063 <span class="keyword">static</span> <a class="code" href="a00164.html" title="represent the vtkBiDimensionalWidget">vtkBiDimensionalRepresentation2D</a> *<a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>(); <a name="l00064"></a>00064 <a name="l00066"></a>00066 <a name="l00067"></a><a class="code" href="a00164.html#54818d3dff125a5936ccada0e0043577">00067</a> vtkTypeRevisionMacro(<a class="code" href="a00164.html" title="represent the vtkBiDimensionalWidget">vtkBiDimensionalRepresentation2D</a>,<a class="code" href="a01877.html" title="abstract class defines interface between the widget and widget representation classes...">vtkWidgetRepresentation</a>); <a name="l00068"></a>00068 <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="l00070"></a>00070 <a name="l00072"></a>00072 <a name="l00075"></a>00075 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetPoint1WorldPosition(<span class="keywordtype">double</span> pos[3]); <a name="l00076"></a>00076 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetPoint2WorldPosition(<span class="keywordtype">double</span> pos[3]); <a name="l00077"></a>00077 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetPoint3WorldPosition(<span class="keywordtype">double</span> pos[3]); <a name="l00078"></a>00078 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetPoint4WorldPosition(<span class="keywordtype">double</span> pos[3]); <a name="l00079"></a>00079 <span class="keyword">virtual</span> <span class="keywordtype">void</span> GetPoint1WorldPosition(<span class="keywordtype">double</span> pos[3]); <a name="l00080"></a>00080 <span class="keyword">virtual</span> <span class="keywordtype">void</span> GetPoint2WorldPosition(<span class="keywordtype">double</span> pos[3]); <a name="l00081"></a>00081 <span class="keyword">virtual</span> <span class="keywordtype">void</span> GetPoint3WorldPosition(<span class="keywordtype">double</span> pos[3]); <a name="l00082"></a>00082 <span class="keyword">virtual</span> <span class="keywordtype">void</span> GetPoint4WorldPosition(<span class="keywordtype">double</span> pos[3]); <a name="l00083"></a>00083 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetPoint1DisplayPosition(<span class="keywordtype">double</span> pos[3]); <a name="l00084"></a>00084 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetPoint2DisplayPosition(<span class="keywordtype">double</span> pos[3]); <a name="l00085"></a>00085 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetPoint3DisplayPosition(<span class="keywordtype">double</span> pos[3]); <a name="l00086"></a>00086 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetPoint4DisplayPosition(<span class="keywordtype">double</span> pos[3]); <a name="l00087"></a>00087 <span class="keyword">virtual</span> <span class="keywordtype">void</span> GetPoint1DisplayPosition(<span class="keywordtype">double</span> pos[3]); <a name="l00088"></a>00088 <span class="keyword">virtual</span> <span class="keywordtype">void</span> GetPoint2DisplayPosition(<span class="keywordtype">double</span> pos[3]); <a name="l00089"></a>00089 <span class="keyword">virtual</span> <span class="keywordtype">void</span> GetPoint3DisplayPosition(<span class="keywordtype">double</span> pos[3]); <a name="l00090"></a>00090 <span class="keyword">virtual</span> <span class="keywordtype">void</span> GetPoint4DisplayPosition(<span class="keywordtype">double</span> pos[3]); <a name="l00092"></a>00092 <a name="l00094"></a>00094 <a name="l00098"></a>00098 vtkSetMacro(Line1Visibility,<span class="keywordtype">int</span>); <a name="l00099"></a>00099 vtkGetMacro(Line1Visibility,<span class="keywordtype">int</span>); <a name="l00100"></a>00100 vtkBooleanMacro(Line1Visibility,<span class="keywordtype">int</span>); <a name="l00101"></a>00101 vtkSetMacro(Line2Visibility,<span class="keywordtype">int</span>); <a name="l00102"></a>00102 vtkGetMacro(Line2Visibility,<span class="keywordtype">int</span>); <a name="l00103"></a>00103 vtkBooleanMacro(Line2Visibility,<span class="keywordtype">int</span>); <a name="l00105"></a>00105 <a name="l00107"></a>00107 <a name="l00116"></a>00116 <span class="keywordtype">void</span> SetHandleRepresentation(<a class="code" href="a00678.html" title="abstract class for representing widget handles">vtkHandleRepresentation</a> *handle); <a name="l00117"></a>00117 <span class="keywordtype">void</span> InstantiateHandleRepresentation(); <a name="l00119"></a>00119 <a name="l00121"></a>00121 <a name="l00125"></a>00125 vtkGetObjectMacro(Point1Representation,<a class="code" href="a00678.html" title="abstract class for representing widget handles">vtkHandleRepresentation</a>); <a name="l00126"></a>00126 vtkGetObjectMacro(Point2Representation,<a class="code" href="a00678.html" title="abstract class for representing widget handles">vtkHandleRepresentation</a>); <a name="l00127"></a>00127 vtkGetObjectMacro(Point3Representation,<a class="code" href="a00678.html" title="abstract class for representing widget handles">vtkHandleRepresentation</a>); <a name="l00128"></a>00128 vtkGetObjectMacro(Point4Representation,<a class="code" href="a00678.html" title="abstract class for representing widget handles">vtkHandleRepresentation</a>); <a name="l00130"></a>00130 <a name="l00132"></a>00132 <a name="l00134"></a>00134 vtkGetObjectMacro(LineProperty,<a class="code" href="a01323.html" title="represent surface properties of a 2D image">vtkProperty2D</a>); <a name="l00135"></a>00135 vtkGetObjectMacro(SelectedLineProperty,<a class="code" href="a01323.html" title="represent surface properties of a 2D image">vtkProperty2D</a>); <a name="l00137"></a>00137 <a name="l00139"></a>00139 <a name="l00141"></a>00141 vtkGetObjectMacro(TextProperty,<a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a>); <a name="l00143"></a>00143 <a name="l00145"></a>00145 <a name="l00148"></a>00148 vtkSetClampMacro(Tolerance,<span class="keywordtype">int</span>,1,100); <a name="l00149"></a>00149 vtkGetMacro(Tolerance,<span class="keywordtype">int</span>); <a name="l00151"></a>00151 <a name="l00154"></a>00154 <span class="keyword">virtual</span> <span class="keywordtype">double</span> GetLength1(); <a name="l00155"></a>00155 <a name="l00158"></a>00158 <span class="keyword">virtual</span> <span class="keywordtype">double</span> GetLength2(); <a name="l00159"></a>00159 <a name="l00161"></a>00161 <a name="l00164"></a>00164 vtkSetStringMacro(LabelFormat); <a name="l00165"></a>00165 vtkGetStringMacro(LabelFormat); <a name="l00167"></a>00167 <a name="l00168"></a>00168 <span class="comment">//BTX -- used to communicate about the state of the representation</span> <a name="l00169"></a><a class="code" href="a00164.html#2ff46f880c4b6adb5783931518d933b609af34c5a75ad0b500313145f25dff57">00169</a> <span class="keyword">enum</span> {Outside=0,NearP1,NearP2,NearP3,NearP4,OnL1Inner,OnL1Outer,OnL2Inner,OnL2Outer,OnCenter}; <a name="l00170"></a>00170 <span class="comment">//ETX</span> <a name="l00171"></a>00171 <a name="l00173"></a>00173 <a name="l00174"></a>00174 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01877.html#a7dfbf5a2b39487c072266e0e1520ec7">BuildRepresentation</a>(); <a name="l00175"></a>00175 <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="l00176"></a>00176 <span class="keyword">virtual</span> <span class="keywordtype">void</span> StartWidgetDefinition(<span class="keywordtype">double</span> e[2]); <a name="l00177"></a>00177 <span class="keyword">virtual</span> <span class="keywordtype">void</span> Point2WidgetInteraction(<span class="keywordtype">double</span> e[2]); <a name="l00178"></a>00178 <span class="keyword">virtual</span> <span class="keywordtype">void</span> Point3WidgetInteraction(<span class="keywordtype">double</span> e[2]); <a name="l00179"></a>00179 <span class="keyword">virtual</span> <span class="keywordtype">void</span> StartWidgetManipulation(<span class="keywordtype">double</span> e[2]); <a name="l00180"></a>00180 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01877.html#73adbf84d1745e1393eda384a5f31d52">WidgetInteraction</a>(<span class="keywordtype">double</span> e[2]); <a name="l00181"></a>00181 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01877.html#4bccab4646d6c0f19d8888a3db9845ff">Highlight</a>(<span class="keywordtype">int</span> highlightOn); <a name="l00183"></a>00183 <a name="l00185"></a>00185 <a name="l00186"></a>00186 <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> *w); <a name="l00187"></a>00187 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01877.html#01e90cbe6f75838c27c1d1c0c5e37521">RenderOverlay</a>(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a> *viewport); <a name="l00189"></a>00189 <a name="l00191"></a>00191 <a name="l00193"></a>00193 vtkSetMacro(ShowLabelAboveWidget, <span class="keywordtype">int</span>); <a name="l00194"></a>00194 vtkGetMacro(ShowLabelAboveWidget, <span class="keywordtype">int</span>); <a name="l00195"></a>00195 vtkBooleanMacro(ShowLabelAboveWidget, <span class="keywordtype">int</span>); <a name="l00197"></a>00197 <a name="l00199"></a>00199 <a name="l00200"></a>00200 <span class="keywordtype">void</span> SetID(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">id</span>); <a name="l00201"></a>00201 vtkGetMacro(ID, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>); <a name="l00203"></a>00203 <a name="l00205"></a>00205 <span class="keywordtype">char</span>* GetLabelText(); <a name="l00206"></a>00206 <a name="l00208"></a>00208 <a name="l00209"></a>00209 <span class="keywordtype">double</span>* GetLabelPosition(); <a name="l00210"></a>00210 <span class="keywordtype">void</span> GetLabelPosition(<span class="keywordtype">double</span> pos[3]); <a name="l00211"></a>00211 <span class="keywordtype">void</span> GetWorldLabelPosition(<span class="keywordtype">double</span> pos[3]); <a name="l00213"></a>00213 <a name="l00214"></a>00214 <span class="keyword">protected</span>: <a name="l00215"></a>00215 <a class="code" href="a00164.html" title="represent the vtkBiDimensionalWidget">vtkBiDimensionalRepresentation2D</a>(); <a name="l00216"></a>00216 ~<a class="code" href="a00164.html" title="represent the vtkBiDimensionalWidget">vtkBiDimensionalRepresentation2D</a>(); <a name="l00217"></a>00217 <a name="l00218"></a>00218 <span class="comment">// Keep track if modifier is set</span> <a name="l00219"></a><a class="code" href="a00164.html#be858ce4597e2bec7e055fdfcdf9fdc8">00219</a> <span class="keywordtype">int</span> Modifier; <a name="l00220"></a>00220 <a name="l00221"></a>00221 <span class="comment">// The handle and the rep used to close the handles</span> <a name="l00222"></a><a class="code" href="a00164.html#caaca0e38daada75fd3a31b33a908ad0">00222</a> <a class="code" href="a00678.html" title="abstract class for representing widget handles">vtkHandleRepresentation</a> *HandleRepresentation; <a name="l00223"></a><a class="code" href="a00164.html#e7b9319af336b7053fded072f62b7857">00223</a> <a class="code" href="a00678.html" title="abstract class for representing widget handles">vtkHandleRepresentation</a> *Point1Representation; <a name="l00224"></a><a class="code" href="a00164.html#8eba0d88862f20836e5e516d145cfa0d">00224</a> <a class="code" href="a00678.html" title="abstract class for representing widget handles">vtkHandleRepresentation</a> *Point2Representation; <a name="l00225"></a><a class="code" href="a00164.html#9ee796ab4eccf3fc0937bd774eb073b4">00225</a> <a class="code" href="a00678.html" title="abstract class for representing widget handles">vtkHandleRepresentation</a> *Point3Representation; <a name="l00226"></a><a class="code" href="a00164.html#0a3682985032c6855197cc030cb2afd4">00226</a> <a class="code" href="a00678.html" title="abstract class for representing widget handles">vtkHandleRepresentation</a> *Point4Representation; <a name="l00227"></a>00227 <a name="l00228"></a>00228 <span class="comment">// Selection tolerance for the handles</span> <a name="l00229"></a><a class="code" href="a00164.html#fe40accbf19393a2f4a321f8b77e016a">00229</a> <span class="keywordtype">int</span> Tolerance; <a name="l00230"></a>00230 <a name="l00231"></a>00231 <span class="comment">// Visibility of the lines</span> <a name="l00232"></a><a class="code" href="a00164.html#f1aedeb71dd9bde8edad97adcd890c9e">00232</a> <span class="keywordtype">int</span> Line1Visibility; <a name="l00233"></a><a class="code" href="a00164.html#1adb61ea23dfc7bcd4e429d4c162a949">00233</a> <span class="keywordtype">int</span> Line2Visibility; <a name="l00234"></a>00234 <a name="l00235"></a>00235 <span class="comment">// Geometry of the lines</span> <a name="l00236"></a><a class="code" href="a00164.html#28e6307eef8d190c4a9e070abc3b8a16">00236</a> <a class="code" href="a00242.html" title="object to represent cell connectivity">vtkCellArray</a> *LineCells; <a name="l00237"></a><a class="code" href="a00164.html#cc487ead7146362c835a3f5d69fbf00e">00237</a> <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a> *LinePoints; <a name="l00238"></a><a class="code" href="a00164.html#8fd40930d9f07c1595719adf7bb52e79">00238</a> <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *LinePolyData; <a name="l00239"></a><a class="code" href="a00164.html#ed5bad1ac2e2c50b9ae73c9c32055d14">00239</a> <a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a> *LineMapper; <a name="l00240"></a><a class="code" href="a00164.html#227f01b7b5a3b91c39a7b7d42e796d85">00240</a> <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a> *LineActor; <a name="l00241"></a><a class="code" href="a00164.html#2328c1e65f426f60ffb22c3f16ae9684">00241</a> <a class="code" href="a01323.html" title="represent surface properties of a 2D image">vtkProperty2D</a> *LineProperty; <a name="l00242"></a><a class="code" href="a00164.html#e2c3c1acb288a31dee50ea1715e48530">00242</a> <a class="code" href="a01323.html" title="represent surface properties of a 2D image">vtkProperty2D</a> *SelectedLineProperty; <a name="l00243"></a>00243 <a name="l00244"></a>00244 <span class="comment">// The labels for the line lengths</span> <a name="l00245"></a><a class="code" href="a00164.html#ed891fadbd81b9b100e88d2b67c807b9">00245</a> <a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a> *TextProperty; <a name="l00246"></a><a class="code" href="a00164.html#4195e124cdfc8a44e048c5c9f8ae81b9">00246</a> <a class="code" href="a01691.html" title="2D text annotation">vtkTextMapper</a> *TextMapper; <a name="l00247"></a><a class="code" href="a00164.html#1688864b729cdc01c343b281ce6f059b">00247</a> <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a> *TextActor; <a name="l00248"></a>00248 <a name="l00249"></a><a class="code" href="a00164.html#853965e64fa7861cfcb0a08dac807b6b">00249</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> ID; <a name="l00250"></a><a class="code" href="a00164.html#eb0192230b983d01ce65777bb518ac60">00250</a> <span class="keywordtype">int</span> IDInitialized; <a name="l00251"></a>00251 <a name="l00252"></a>00252 <span class="comment">// Internal variables</span> <a name="l00253"></a><a class="code" href="a00164.html#2e50595078f2089115c8fa2dc85a6a5c">00253</a> <span class="keywordtype">double</span> P1World[3]; <a name="l00254"></a><a class="code" href="a00164.html#06c62ac4e005b371b04f67ec9a98f8ba">00254</a> <span class="keywordtype">double</span> P2World[3]; <a name="l00255"></a><a class="code" href="a00164.html#851e7b329072b121fd90617fc09d2176">00255</a> <span class="keywordtype">double</span> P3World[3]; <a name="l00256"></a><a class="code" href="a00164.html#42228e4e57315791caa92c0b7a230529">00256</a> <span class="keywordtype">double</span> P4World[3]; <a name="l00257"></a><a class="code" href="a00164.html#40c989e7ad383edabe64809cc38267d3">00257</a> <span class="keywordtype">double</span> P21World[3]; <a name="l00258"></a><a class="code" href="a00164.html#6224ca8ca018e3959b1b0f75d2ae202b">00258</a> <span class="keywordtype">double</span> P43World[3]; <a name="l00259"></a><a class="code" href="a00164.html#ba9a09404fee9d9c48cf72132f12a324">00259</a> <span class="keywordtype">double</span> T21; <a name="l00260"></a><a class="code" href="a00164.html#9f3f6b6f953b5e6462faf2021f262ec1">00260</a> <span class="keywordtype">double</span> T43; <a name="l00261"></a><a class="code" href="a00164.html#d252c1c0cd16da37a833038e9556be86">00261</a> <span class="keywordtype">double</span> CenterWorld[3]; <a name="l00262"></a><a class="code" href="a00164.html#8148f152cd026a5ac1bc83bb0c8af7b9">00262</a> <span class="keywordtype">double</span> StartEventPositionWorld[4]; <a name="l00263"></a>00263 <a name="l00264"></a>00264 <span class="comment">// Format for printing the distance</span> <a name="l00265"></a><a class="code" href="a00164.html#b61111db58896a9ba5fa936558fa0301">00265</a> <span class="keywordtype">char</span> *LabelFormat; <a name="l00266"></a>00266 <a name="l00267"></a>00267 <span class="comment">// toggle to determine whether to place text above or below widget</span> <a name="l00268"></a><a class="code" href="a00164.html#0343329633505bea789a150bd7f61ac9">00268</a> <span class="keywordtype">int</span> ShowLabelAboveWidget; <a name="l00269"></a>00269 <a name="l00270"></a>00270 <span class="comment">// Helper method</span> <a name="l00271"></a>00271 <span class="keywordtype">void</span> ProjectOrthogonalPoint(<span class="keywordtype">double</span> x[4], <span class="keywordtype">double</span> y[3], <span class="keywordtype">double</span> x1[3], <span class="keywordtype">double</span> x2[3], <span class="keywordtype">double</span> x21[3], <a name="l00272"></a>00272 <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210652910e0524bce5b8ec2644cad351b81">dir</a>, <span class="keywordtype">double</span> xP[3]); <a name="l00273"></a>00273 <a name="l00274"></a>00274 <span class="keyword">private</span>: <a name="l00275"></a>00275 <a class="code" href="a00164.html" title="represent the vtkBiDimensionalWidget">vtkBiDimensionalRepresentation2D</a>(<span class="keyword">const</span> <a class="code" href="a00164.html" title="represent the vtkBiDimensionalWidget">vtkBiDimensionalRepresentation2D</a>&); <span class="comment">//Not implemented</span> <a name="l00276"></a>00276 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00164.html" title="represent the vtkBiDimensionalWidget">vtkBiDimensionalRepresentation2D</a>&); <span class="comment">//Not implemented</span> <a name="l00277"></a>00277 }; <a name="l00278"></a>00278 <a name="l00279"></a>00279 <span class="preprocessor">#endif</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:52 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>