<!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/vtkLineRepresentation.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/vtkLineRepresentation.h</h1><a href="a03703.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: vtkLineRepresentation.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 __vtkLineRepresentation_h</span> <a name="l00041"></a>00041 <span class="preprocessor"></span><span class="preprocessor">#define __vtkLineRepresentation_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="a00966.html" title="create a line defined by two end points">vtkLineSource</a>; <a name="l00048"></a>00048 <span class="keyword">class </span><a class="code" href="a01582.html" title="create a polygonal sphere centered at the origin">vtkSphereSource</a>; <a name="l00049"></a>00049 <span class="keyword">class </span><a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>; <a name="l00050"></a>00050 <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="l00051"></a>00051 <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="l00052"></a>00052 <span class="keyword">class </span><a class="code" href="a01245.html" title="represent the position of a point in 3D space">vtkPointHandleRepresentation3D</a>; <a name="l00053"></a>00053 <span class="keyword">class </span><a class="code" href="a00195.html" title="implicit function for a bounding box">vtkBox</a>; <a name="l00054"></a>00054 <span class="keyword">class </span><a class="code" href="a00561.html" title="a subclass of actor that always faces the camera">vtkFollower</a>; <a name="l00055"></a>00055 <span class="keyword">class </span><a class="code" href="a01819.html" title="create polygonal text">vtkVectorText</a>; <a name="l00056"></a>00056 <span class="keyword">class </span><a class="code" href="a01265.html" title="map vtkPolyData to graphics primitives">vtkPolyDataMapper</a>; <a name="l00057"></a>00057 <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="l00058"></a>00058 <a name="l00059"></a><a class="code" href="a00965.html">00059</a> <span class="keyword">class </span><a class="code" href="a02170.html#09e5ba6764f54642494e26907662d55f">VTK_WIDGETS_EXPORT</a> <a class="code" href="a00965.html" title="a class defining the representation for a vtkLineWidget2">vtkLineRepresentation</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="a00965.html" title="a class defining the representation for a vtkLineWidget2">vtkLineRepresentation</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="a00965.html#577477d06373c77575d4525737f60109">00067</a> vtkTypeRevisionMacro(<a class="code" href="a00965.html" title="a class defining the representation for a vtkLineWidget2">vtkLineRepresentation</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="keywordtype">void</span> GetPoint1WorldPosition(<span class="keywordtype">double</span> pos[3]); <a name="l00076"></a>00076 <span class="keywordtype">double</span>* GetPoint1WorldPosition(); <a name="l00077"></a>00077 <span class="keywordtype">void</span> GetPoint1DisplayPosition(<span class="keywordtype">double</span> pos[3]); <a name="l00078"></a>00078 <span class="keywordtype">double</span>* GetPoint1DisplayPosition(); <a name="l00079"></a>00079 <span class="keywordtype">void</span> SetPoint1WorldPosition(<span class="keywordtype">double</span> pos[3]); <a name="l00080"></a>00080 <span class="keywordtype">void</span> SetPoint1DisplayPosition(<span class="keywordtype">double</span> pos[3]); <a name="l00081"></a>00081 <span class="keywordtype">void</span> GetPoint2DisplayPosition(<span class="keywordtype">double</span> pos[3]); <a name="l00082"></a>00082 <span class="keywordtype">double</span>* GetPoint2DisplayPosition(); <a name="l00083"></a>00083 <span class="keywordtype">void</span> GetPoint2WorldPosition(<span class="keywordtype">double</span> pos[3]); <a name="l00084"></a>00084 <span class="keywordtype">double</span>* GetPoint2WorldPosition(); <a name="l00085"></a>00085 <span class="keywordtype">void</span> SetPoint2WorldPosition(<span class="keywordtype">double</span> pos[3]); <a name="l00086"></a>00086 <span class="keywordtype">void</span> SetPoint2DisplayPosition(<span class="keywordtype">double</span> pos[3]); <a name="l00088"></a>00088 <a name="l00090"></a>00090 <a name="l00098"></a>00098 <span class="keywordtype">void</span> SetHandleRepresentation(<a class="code" href="a01245.html" title="represent the position of a point in 3D space">vtkPointHandleRepresentation3D</a> *handle); <a name="l00099"></a>00099 <span class="keywordtype">void</span> InstantiateHandleRepresentation(); <a name="l00101"></a>00101 <a name="l00103"></a>00103 <a name="l00104"></a>00104 vtkGetObjectMacro(Point1Representation,<a class="code" href="a01245.html" title="represent the position of a point in 3D space">vtkPointHandleRepresentation3D</a>); <a name="l00105"></a>00105 vtkGetObjectMacro(Point2Representation,<a class="code" href="a01245.html" title="represent the position of a point in 3D space">vtkPointHandleRepresentation3D</a>); <a name="l00106"></a>00106 vtkGetObjectMacro(LineHandleRepresentation,<a class="code" href="a01245.html" title="represent the position of a point in 3D space">vtkPointHandleRepresentation3D</a>); <a name="l00108"></a>00108 <a name="l00110"></a>00110 <a name="l00112"></a>00112 vtkGetObjectMacro(EndPointProperty,<a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>); <a name="l00113"></a>00113 vtkGetObjectMacro(SelectedEndPointProperty,<a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>); <a name="l00115"></a>00115 <a name="l00117"></a>00117 <a name="l00119"></a>00119 vtkGetObjectMacro(LineProperty,<a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>); <a name="l00120"></a>00120 vtkGetObjectMacro(SelectedLineProperty,<a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>); <a name="l00122"></a>00122 <a name="l00124"></a>00124 <a name="l00127"></a>00127 vtkSetClampMacro(Tolerance,<span class="keywordtype">int</span>,1,100); <a name="l00128"></a>00128 vtkGetMacro(Tolerance,<span class="keywordtype">int</span>); <a name="l00130"></a>00130 <a name="l00132"></a>00132 <a name="l00135"></a>00135 <span class="keywordtype">void</span> SetResolution(<span class="keywordtype">int</span> res); <a name="l00136"></a>00136 <span class="keywordtype">int</span> GetResolution(); <a name="l00138"></a>00138 <a name="l00145"></a>00145 <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="l00146"></a>00146 <a name="l00148"></a>00148 <a name="l00149"></a>00149 <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="l00150"></a>00150 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01877.html#a7dfbf5a2b39487c072266e0e1520ec7">BuildRepresentation</a>(); <a name="l00151"></a>00151 <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="l00152"></a>00152 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01877.html#9aece0d7ff74c1fcfd5f427088cab77b">StartWidgetInteraction</a>(<span class="keywordtype">double</span> e[2]); <a name="l00153"></a>00153 <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="l00154"></a>00154 <span class="keyword">virtual</span> <span class="keywordtype">double</span> *<a class="code" href="a01877.html#32efe13a1f1627c90bde36414bd9df9a">GetBounds</a>(); <a name="l00156"></a>00156 <a name="l00158"></a>00158 <a name="l00159"></a>00159 <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="l00160"></a>00160 <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="l00161"></a>00161 <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="l00162"></a>00162 <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="l00163"></a>00163 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01877.html#8b7761451b47996f96aacab32882ca25">HasTranslucentPolygonalGeometry</a>(); <a name="l00165"></a>00165 <a name="l00166"></a>00166 <span class="comment">//BTX - manage the state of the widget</span> <a name="l00167"></a><a class="code" href="a00965.html#30a9c6fa44a8e9e96f16669ac340dec04201954be69454b1eeb91f62ec6f26aa">00167</a> <span class="keyword">enum</span> {Outside=0,OnP1,OnP2,TranslatingP1,TranslatingP2,OnLine,Scaling}; <a name="l00168"></a>00168 <span class="comment">//ETX</span> <a name="l00169"></a>00169 <a name="l00171"></a>00171 <a name="l00178"></a>00178 vtkSetClampMacro(InteractionState,<span class="keywordtype">int</span>,Outside,Scaling); <a name="l00180"></a>00180 <a name="l00182"></a>00182 <a name="l00184"></a>00184 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetRepresentationState(<span class="keywordtype">int</span>); <a name="l00185"></a>00185 vtkGetMacro(RepresentationState, <span class="keywordtype">int</span>); <a name="l00187"></a>00187 <a name="l00190"></a>00190 <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="a01084.html#8137c0551b29bb996f0dd2f886bcd2da">GetMTime</a>(); <a name="l00191"></a>00191 <a name="l00193"></a>00193 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01877.html#5154e053614a4f996c64e522abb6cbb8">SetRenderer</a>(<a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a> *ren); <a name="l00194"></a>00194 <a name="l00196"></a>00196 <a name="l00197"></a>00197 vtkSetMacro( DistanceAnnotationVisibility, <span class="keywordtype">int</span> ); <a name="l00198"></a>00198 vtkGetMacro( DistanceAnnotationVisibility, <span class="keywordtype">int</span> ); <a name="l00199"></a>00199 vtkBooleanMacro( DistanceAnnotationVisibility, <span class="keywordtype">int</span> ); <a name="l00201"></a>00201 <a name="l00203"></a>00203 <a name="l00206"></a>00206 vtkSetStringMacro(DistanceAnnotationFormat); <a name="l00207"></a>00207 vtkGetStringMacro(DistanceAnnotationFormat); <a name="l00209"></a>00209 <a name="l00211"></a>00211 <a name="l00212"></a>00212 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetDistanceAnnotationScale( <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210733bd1e54b6acd59b06105c91204401e">scale</a>[3] ); <a name="l00213"></a>00213 <span class="keyword">virtual</span> <span class="keywordtype">double</span> * GetDistanceAnnotationScale(); <a name="l00215"></a>00215 <a name="l00217"></a>00217 <span class="keywordtype">double</span> GetDistance(); <a name="l00218"></a>00218 <a name="l00219"></a>00219 <span class="keyword">protected</span>: <a name="l00220"></a>00220 <a class="code" href="a00965.html" title="a class defining the representation for a vtkLineWidget2">vtkLineRepresentation</a>(); <a name="l00221"></a>00221 ~<a class="code" href="a00965.html" title="a class defining the representation for a vtkLineWidget2">vtkLineRepresentation</a>(); <a name="l00222"></a>00222 <a name="l00223"></a>00223 <span class="comment">// The handle and the rep used to close the handles</span> <a name="l00224"></a><a class="code" href="a00965.html#d0386962ed6a0645a9e6dfc0f4699d3f">00224</a> <a class="code" href="a01245.html" title="represent the position of a point in 3D space">vtkPointHandleRepresentation3D</a> *HandleRepresentation; <a name="l00225"></a><a class="code" href="a00965.html#56546bc8303d71f7d23e5d5d351a8cf4">00225</a> <a class="code" href="a01245.html" title="represent the position of a point in 3D space">vtkPointHandleRepresentation3D</a> *Point1Representation; <a name="l00226"></a><a class="code" href="a00965.html#c6773271ba45674ccc290a732d9ef073">00226</a> <a class="code" href="a01245.html" title="represent the position of a point in 3D space">vtkPointHandleRepresentation3D</a> *Point2Representation; <a name="l00227"></a><a class="code" href="a00965.html#6f3f54cd69d068a7e7448be4d5bbd657">00227</a> <a class="code" href="a01245.html" title="represent the position of a point in 3D space">vtkPointHandleRepresentation3D</a> *LineHandleRepresentation; <a name="l00228"></a>00228 <a name="l00229"></a>00229 <span class="comment">// Manage how the representation appears</span> <a name="l00230"></a><a class="code" href="a00965.html#e5d0030635f25189ffcd2e009df142c1">00230</a> <span class="keywordtype">int</span> RepresentationState; <a name="l00231"></a>00231 <a name="l00232"></a>00232 <span class="comment">// the line</span> <a name="l00233"></a><a class="code" href="a00965.html#d97b4c0a3e45304567a4f2b22a3fddcb">00233</a> <a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a> *LineActor; <a name="l00234"></a><a class="code" href="a00965.html#6bb65674c65ae0ba77c8f764fb5af17b">00234</a> <a class="code" href="a01265.html" title="map vtkPolyData to graphics primitives">vtkPolyDataMapper</a> *LineMapper; <a name="l00235"></a><a class="code" href="a00965.html#499cd8cf047d8fcde1c7db152324a0c0">00235</a> <a class="code" href="a00966.html" title="create a line defined by two end points">vtkLineSource</a> *LineSource; <a name="l00236"></a>00236 <a name="l00237"></a>00237 <span class="comment">// glyphs representing hot spots (e.g., handles)</span> <a name="l00238"></a><a class="code" href="a00965.html#abfc89ae36b563400b05db50892e7f95">00238</a> <a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a> **Handle; <a name="l00239"></a><a class="code" href="a00965.html#e0224b7e8646a3467f6ffe96b01e03eb">00239</a> <a class="code" href="a01265.html" title="map vtkPolyData to graphics primitives">vtkPolyDataMapper</a> **HandleMapper; <a name="l00240"></a><a class="code" href="a00965.html#84b0986739b688a53982101d5f16d443">00240</a> <a class="code" href="a01582.html" title="create a polygonal sphere centered at the origin">vtkSphereSource</a> **HandleGeometry; <a name="l00241"></a>00241 <a name="l00242"></a>00242 <span class="comment">// Properties used to control the appearance of selected objects and</span> <a name="l00243"></a>00243 <span class="comment">// the manipulator in general.</span> <a name="l00244"></a><a class="code" href="a00965.html#d22e14b2f4ac12915205a05935e7bc42">00244</a> <a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a> *EndPointProperty; <a name="l00245"></a><a class="code" href="a00965.html#52e1febebf6d0842008b98a662fc58f7">00245</a> <a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a> *SelectedEndPointProperty; <a name="l00246"></a><a class="code" href="a00965.html#2f3dafdb97ffee3d10fcc446baeb32df">00246</a> <a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a> *LineProperty; <a name="l00247"></a><a class="code" href="a00965.html#f417a4d00b9f9518595bdbe1b22405b8">00247</a> <a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a> *SelectedLineProperty; <a name="l00248"></a>00248 <span class="keywordtype">void</span> CreateDefaultProperties(); <a name="l00249"></a>00249 <a name="l00250"></a>00250 <span class="comment">// Selection tolerance for the handles and the line</span> <a name="l00251"></a><a class="code" href="a00965.html#5cd704fb50c3f6ef813278a65cf640da">00251</a> <span class="keywordtype">int</span> Tolerance; <a name="l00252"></a>00252 <a name="l00253"></a>00253 <span class="comment">// Helper members</span> <a name="l00254"></a><a class="code" href="a00965.html#58f1397ebe6fce09325dc7a6cbd243e8">00254</a> <span class="keywordtype">int</span> ClampToBounds; <a name="l00255"></a>00255 <span class="keywordtype">void</span> ClampPosition(<span class="keywordtype">double</span> x[3]); <a name="l00256"></a>00256 <span class="keywordtype">void</span> HighlightPoint(<span class="keywordtype">int</span> ptId, <span class="keywordtype">int</span> highlight); <a name="l00257"></a>00257 <span class="keywordtype">void</span> HighlightLine(<span class="keywordtype">int</span> highlight); <a name="l00258"></a>00258 <span class="keywordtype">int</span> InBounds(<span class="keywordtype">double</span> x[3]); <a name="l00259"></a>00259 <span class="keywordtype">void</span> SizeHandles(); <a name="l00260"></a>00260 <a name="l00261"></a>00261 <span class="comment">// Ivars used during widget interaction to hold initial positions</span> <a name="l00262"></a><a class="code" href="a00965.html#967da47df93c984da61ecde3d5de5584">00262</a> <span class="keywordtype">double</span> StartP1[3]; <a name="l00263"></a><a class="code" href="a00965.html#ecce1a99ed7ab9565146b3ad92138323">00263</a> <span class="keywordtype">double</span> StartP2[3]; <a name="l00264"></a><a class="code" href="a00965.html#abceb594226e6f993eb7faf5686f201e">00264</a> <span class="keywordtype">double</span> StartLineHandle[3]; <a name="l00265"></a><a class="code" href="a00965.html#ed00da5c012fa69f7700baf3494b0fcd">00265</a> <span class="keywordtype">double</span> Length; <a name="l00266"></a><a class="code" href="a00965.html#858de5af1bbf900a84e5c2eea664ccf2">00266</a> <span class="keywordtype">double</span> LastEventPosition[3]; <a name="l00267"></a>00267 <a name="l00268"></a>00268 <span class="comment">// Support GetBounds() method</span> <a name="l00269"></a><a class="code" href="a00965.html#2b9545ad4874e7d49d0bbfe8b8b42451">00269</a> <a class="code" href="a00195.html" title="implicit function for a bounding box">vtkBox</a> *BoundingBox; <a name="l00270"></a>00270 <a name="l00271"></a>00271 <span class="comment">// Need to keep track if we have successfully initialized the display position. </span> <a name="l00272"></a>00272 <span class="comment">// The widget tends to do stuff in world coordinates, put if the renderer has</span> <a name="l00273"></a>00273 <span class="comment">// not been assigned, then certain operations do not properly update the display</span> <a name="l00274"></a>00274 <span class="comment">// position.</span> <a name="l00275"></a><a class="code" href="a00965.html#e32780cc812ac4aa592cde2d5f5d13ce">00275</a> <span class="keywordtype">int</span> InitializedDisplayPosition; <a name="l00276"></a>00276 <a name="l00277"></a>00277 <span class="comment">// Format for the label</span> <a name="l00278"></a><a class="code" href="a00965.html#63793e16baccbf7bbe9ff5d5518de5d3">00278</a> <span class="keywordtype">int</span> DistanceAnnotationVisibility; <a name="l00279"></a><a class="code" href="a00965.html#5c965f915244ef3506be64f7050a7be6">00279</a> <span class="keywordtype">char</span> *DistanceAnnotationFormat; <a name="l00280"></a>00280 <a name="l00281"></a><a class="code" href="a00965.html#e45ab8860a9cbcbcf737604fba9ff82f">00281</a> <a class="code" href="a00561.html" title="a subclass of actor that always faces the camera">vtkFollower</a> *TextActor; <a name="l00282"></a><a class="code" href="a00965.html#23e0233c515c3720e2d0ff996a161f89">00282</a> <a class="code" href="a01265.html" title="map vtkPolyData to graphics primitives">vtkPolyDataMapper</a> *TextMapper; <a name="l00283"></a><a class="code" href="a00965.html#d07e676bce4dcf674ba3fab8a5266cfa">00283</a> <a class="code" href="a01819.html" title="create polygonal text">vtkVectorText</a> *TextInput; <a name="l00284"></a><a class="code" href="a00965.html#a0b7d211931ad8ffe25b81e53d5e4cd7">00284</a> <span class="keywordtype">double</span> Distance; <a name="l00285"></a><a class="code" href="a00965.html#5720ce9e0d4af0dc170807ac1b96e527">00285</a> <span class="keywordtype">bool</span> AnnotationTextScaleInitialized; <a name="l00286"></a>00286 <a name="l00287"></a><a class="code" href="a00965.html#58545bf0a1682c7c3f9ec5d9f2ea1c95">00287</a> <a class="code" href="a00251.html" title="select a cell by shooting a ray into graphics window">vtkCellPicker</a> *LinePicker; <a name="l00288"></a>00288 <a name="l00289"></a>00289 <span class="keyword">private</span>: <a name="l00290"></a>00290 <a class="code" href="a00965.html" title="a class defining the representation for a vtkLineWidget2">vtkLineRepresentation</a>(<span class="keyword">const</span> <a class="code" href="a00965.html" title="a class defining the representation for a vtkLineWidget2">vtkLineRepresentation</a>&); <span class="comment">//Not implemented</span> <a name="l00291"></a>00291 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00965.html" title="a class defining the representation for a vtkLineWidget2">vtkLineRepresentation</a>&); <span class="comment">//Not implemented</span> <a name="l00292"></a>00292 }; <a name="l00293"></a>00293 <a name="l00294"></a>00294 <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>