<!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/vtkLineWidget.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/vtkLineWidget.h</h1><a href="a03704.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: vtkLineWidget.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="l00076"></a>00076 <span class="preprocessor">#ifndef __vtkLineWidget_h</span> <a name="l00077"></a>00077 <span class="preprocessor"></span><span class="preprocessor">#define __vtkLineWidget_h</span> <a name="l00078"></a>00078 <span class="preprocessor"></span> <a name="l00079"></a>00079 <span class="preprocessor">#include "<a class="code" href="a03649.html">vtk3DWidget.h</a>"</span> <a name="l00080"></a>00080 <span class="preprocessor">#include "<a class="code" href="a02586.html">vtkLineSource.h</a>"</span> <span class="comment">// For passing calls to it</span> <a name="l00081"></a>00081 <a name="l00082"></a>00082 <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="l00083"></a>00083 <span class="keyword">class </span><a class="code" href="a01265.html" title="map vtkPolyData to graphics primitives">vtkPolyDataMapper</a>; <a name="l00084"></a>00084 <span class="keyword">class </span><a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>; <a name="l00085"></a>00085 <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="l00086"></a>00086 <span class="keyword">class </span><a class="code" href="a01317.html" title="abstract superclass for all actors, volumes and annotations">vtkProp</a>; <a name="l00087"></a>00087 <span class="keyword">class </span><a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>; <a name="l00088"></a>00088 <span class="keyword">class </span><a class="code" href="a01582.html" title="create a polygonal sphere centered at the origin">vtkSphereSource</a>; <a name="l00089"></a>00089 <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="l00090"></a>00090 <span class="keyword">class </span><a class="code" href="a01259.html" title="position a point in 3D space">vtkPointWidget</a>; <a name="l00091"></a>00091 <span class="keyword">class </span>vtkPWCallback; <a name="l00092"></a>00092 <span class="keyword">class </span>vtkPW1Callback; <a name="l00093"></a>00093 <span class="keyword">class </span>vtkPW2Callback; <a name="l00094"></a>00094 <a name="l00095"></a><a class="code" href="a00968.html">00095</a> <span class="keyword">class </span><a class="code" href="a02170.html#09e5ba6764f54642494e26907662d55f">VTK_WIDGETS_EXPORT</a> <a class="code" href="a00968.html" title="3D widget for manipulating a line">vtkLineWidget</a> : <span class="keyword">public</span> <a class="code" href="a00075.html" title="an abstract superclass for 3D widgets">vtk3DWidget</a> <a name="l00096"></a>00096 { <a name="l00097"></a>00097 <span class="keyword">public</span>: <a name="l00099"></a>00099 <span class="keyword">static</span> <a class="code" href="a00968.html" title="3D widget for manipulating a line">vtkLineWidget</a> *<a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>(); <a name="l00100"></a>00100 <a name="l00101"></a><a class="code" href="a00968.html#80b74b15c71978856c8864b6ca39f633">00101</a> vtkTypeRevisionMacro(<a class="code" href="a00968.html" title="3D widget for manipulating a line">vtkLineWidget</a>,<a class="code" href="a00075.html" title="an abstract superclass for 3D widgets">vtk3DWidget</a>); <a name="l00102"></a>00102 <span class="keywordtype">void</span> <a class="code" href="a00075.html#132e8f748131edef14b83d9b15d603c8">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00103"></a>00103 <a name="l00105"></a>00105 <a name="l00106"></a>00106 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00902.html#b43191e675e294441a76efa7e4f884d9">SetEnabled</a>(<span class="keywordtype">int</span>); <a name="l00107"></a>00107 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00075.html#d6a77721ab3efb8ba994132439f53e66">PlaceWidget</a>(<span class="keywordtype">double</span> bounds[6]); <a name="l00108"></a><a class="code" href="a00968.html#1e0144324a20a5c44193fd7ef7ae2877">00108</a> <span class="keywordtype">void</span> <a class="code" href="a00075.html#d6a77721ab3efb8ba994132439f53e66">PlaceWidget</a>() <a name="l00109"></a>00109 {this->Superclass::PlaceWidget();} <a name="l00110"></a><a class="code" href="a00968.html#a0ba2e59b80f3533f1b737702e10e109">00110</a> <span class="keywordtype">void</span> <a class="code" href="a00075.html#d6a77721ab3efb8ba994132439f53e66">PlaceWidget</a>(<span class="keywordtype">double</span> xmin, <span class="keywordtype">double</span> xmax, <span class="keywordtype">double</span> ymin, <span class="keywordtype">double</span> ymax, <a name="l00111"></a>00111 <span class="keywordtype">double</span> zmin, <span class="keywordtype">double</span> zmax) <a name="l00112"></a>00112 {this->Superclass::PlaceWidget(xmin,xmax,ymin,ymax,zmin,zmax);} <a name="l00114"></a>00114 <a name="l00116"></a>00116 <a name="l00117"></a><a class="code" href="a00968.html#f94c36eb8dc1fd8c4d5856effee5484f">00117</a> <span class="keywordtype">void</span> SetResolution(<span class="keywordtype">int</span> r) <a name="l00118"></a>00118 { this->LineSource->SetResolution(r); } <a name="l00119"></a><a class="code" href="a00968.html#d5f7c54f87ce993507dea61bb67275ad">00119</a> <span class="keywordtype">int</span> GetResolution() <a name="l00120"></a>00120 { <span class="keywordflow">return</span> this->LineSource->GetResolution(); } <a name="l00122"></a>00122 <a name="l00124"></a>00124 <a name="l00125"></a>00125 <span class="keywordtype">void</span> SetPoint1(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> z); <a name="l00126"></a><a class="code" href="a00968.html#f9502e16a0ead18fc698f37cb4062614">00126</a> <span class="keywordtype">void</span> SetPoint1(<span class="keywordtype">double</span> x[3]) <a name="l00127"></a>00127 {this->SetPoint1(x[0], x[1], x[2]); } <a name="l00128"></a><a class="code" href="a00968.html#97bf03d19b6b8aae11f5bc8ded7ea20b">00128</a> <span class="keywordtype">double</span>* GetPoint1() <a name="l00129"></a>00129 {<span class="keywordflow">return</span> this->LineSource->GetPoint1();} <a name="l00130"></a><a class="code" href="a00968.html#24f03b1dc92480c76fccc019d3a7f2e9">00130</a> <span class="keywordtype">void</span> GetPoint1(<span class="keywordtype">double</span> xyz[3]) <a name="l00131"></a>00131 {this->LineSource->GetPoint1(xyz);} <a name="l00133"></a>00133 <a name="l00135"></a>00135 <a name="l00136"></a>00136 <span class="keywordtype">void</span> SetPoint2(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> z); <a name="l00137"></a><a class="code" href="a00968.html#09e7f7397a228b41cd25368f82542d59">00137</a> <span class="keywordtype">void</span> SetPoint2(<span class="keywordtype">double</span> x[3]) <a name="l00138"></a>00138 {this->SetPoint2(x[0], x[1], x[2]);} <a name="l00139"></a><a class="code" href="a00968.html#cff19aae74eeec3839c460d650d0f69c">00139</a> <span class="keywordtype">double</span>* GetPoint2() <a name="l00140"></a>00140 {<span class="keywordflow">return</span> this->LineSource->GetPoint2();} <a name="l00141"></a><a class="code" href="a00968.html#6fe46248b193ac973840e110999846b1">00141</a> <span class="keywordtype">void</span> GetPoint2(<span class="keywordtype">double</span> xyz[3]) <a name="l00142"></a>00142 {this->LineSource->GetPoint2(xyz);} <a name="l00144"></a>00144 <a name="l00146"></a>00146 <a name="l00150"></a>00150 vtkSetClampMacro(Align, <span class="keywordtype">int</span>, XAxis, None); <a name="l00151"></a>00151 vtkGetMacro(Align, <span class="keywordtype">int</span>); <a name="l00152"></a><a class="code" href="a00968.html#aa561f1a3cc726fdc7441a485959570a">00152</a> <span class="keywordtype">void</span> SetAlignToXAxis() { this->SetAlign(XAxis); } <a name="l00153"></a><a class="code" href="a00968.html#669f7f3a4c912311b03d4c61b93d5469">00153</a> <span class="keywordtype">void</span> SetAlignToYAxis() { this->SetAlign(YAxis); } <a name="l00154"></a><a class="code" href="a00968.html#73ed44c5ba19db4c1ee99c8f259c63bd">00154</a> <span class="keywordtype">void</span> SetAlignToZAxis() { this->SetAlign(ZAxis); } <a name="l00155"></a><a class="code" href="a00968.html#859b2549864e5f7a25ece0d2217f9f68">00155</a> <span class="keywordtype">void</span> SetAlignToNone() { this->SetAlign(None); } <a name="l00157"></a>00157 <a name="l00159"></a>00159 <a name="l00163"></a>00163 vtkSetMacro(ClampToBounds,<span class="keywordtype">int</span>); <a name="l00164"></a>00164 vtkGetMacro(ClampToBounds,<span class="keywordtype">int</span>); <a name="l00165"></a>00165 vtkBooleanMacro(ClampToBounds,<span class="keywordtype">int</span>); <a name="l00167"></a>00167 <a name="l00173"></a>00173 <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="l00174"></a>00174 <a name="l00176"></a>00176 <a name="l00179"></a>00179 vtkGetObjectMacro(HandleProperty,<a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>); <a name="l00180"></a>00180 vtkGetObjectMacro(SelectedHandleProperty,<a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>); <a name="l00182"></a>00182 <a name="l00184"></a>00184 <a name="l00186"></a>00186 vtkGetObjectMacro(LineProperty,<a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>); <a name="l00187"></a>00187 vtkGetObjectMacro(SelectedLineProperty,<a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>); <a name="l00189"></a>00189 <a name="l00190"></a>00190 <span class="keyword">protected</span>: <a name="l00191"></a>00191 <a class="code" href="a00968.html" title="3D widget for manipulating a line">vtkLineWidget</a>(); <a name="l00192"></a>00192 ~<a class="code" href="a00968.html" title="3D widget for manipulating a line">vtkLineWidget</a>(); <a name="l00193"></a>00193 <a name="l00194"></a>00194 <span class="comment">//BTX - manage the state of the widget</span> <a name="l00195"></a><a class="code" href="a00968.html#734293414c9704ce8c87d6691cd42ae6">00195</a> <span class="keyword">friend</span> <span class="keyword">class </span>vtkPWCallback; <a name="l00196"></a>00196 <a name="l00197"></a><a class="code" href="a00968.html#72db50fc1ef31adfe1a6826f99e48596">00197</a> <span class="keywordtype">int</span> State; <a name="l00198"></a><a class="code" href="a00968.html#a499273a925b39e6a94d020ade15dddc">00198</a> <span class="keyword">enum</span> <a class="code" href="a00968.html#a499273a925b39e6a94d020ade15dddc">WidgetState</a> <a name="l00199"></a>00199 { <a name="l00200"></a><a class="code" href="a00968.html#a499273a925b39e6a94d020ade15dddccb85c365ac3d3398eeb11db6977a2220">00200</a> Start=0, <a name="l00201"></a><a class="code" href="a00968.html#a499273a925b39e6a94d020ade15dddca0cd92e3baac91cbe443b4f4ec7b7623">00201</a> MovingHandle, <a name="l00202"></a><a class="code" href="a00968.html#a499273a925b39e6a94d020ade15dddc7afbfae8876eefab6463810f1cddf539">00202</a> MovingLine, <a name="l00203"></a><a class="code" href="a00968.html#a499273a925b39e6a94d020ade15dddc8382b899e9f54f67929ae0801e3e0117">00203</a> Scaling, <a name="l00204"></a><a class="code" href="a00968.html#a499273a925b39e6a94d020ade15dddc49ea8b181e8f4937216d4c68a7eeec68">00204</a> Outside <a name="l00205"></a>00205 }; <a name="l00206"></a>00206 <span class="comment">//ETX</span> <a name="l00207"></a>00207 <a name="l00208"></a>00208 <span class="comment">//handles the events</span> <a name="l00209"></a>00209 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="a00902.html#1b34006a2cc7da4efa585cf81252012e">ProcessEvents</a>(<a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>* <span class="keywordtype">object</span>, <a name="l00210"></a>00210 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> event, <a name="l00211"></a>00211 <span class="keywordtype">void</span>* clientdata, <a name="l00212"></a>00212 <span class="keywordtype">void</span>* calldata); <a name="l00213"></a>00213 <a name="l00214"></a>00214 <span class="comment">// ProcessEvents() dispatches to these methods.</span> <a name="l00215"></a>00215 <span class="keywordtype">void</span> OnLeftButtonDown(); <a name="l00216"></a>00216 <span class="keywordtype">void</span> OnLeftButtonUp(); <a name="l00217"></a>00217 <span class="keywordtype">void</span> OnMiddleButtonDown(); <a name="l00218"></a>00218 <span class="keywordtype">void</span> OnMiddleButtonUp(); <a name="l00219"></a>00219 <span class="keywordtype">void</span> OnRightButtonDown(); <a name="l00220"></a>00220 <span class="keywordtype">void</span> OnRightButtonUp(); <a name="l00221"></a>00221 <span class="keyword">virtual</span> <span class="keywordtype">void</span> OnMouseMove(); <a name="l00222"></a>00222 <a name="l00223"></a>00223 <span class="comment">// controlling ivars</span> <a name="l00224"></a><a class="code" href="a00968.html#351974c08f49fddfa4efa9adc7dd7db0">00224</a> <span class="keywordtype">int</span> Align; <a name="l00225"></a>00225 <a name="l00226"></a>00226 <span class="comment">//BTX</span> <a name="l00227"></a><a class="code" href="a00968.html#b918ba412b80a9d43acb2bce982a637c">00227</a> <span class="keyword">enum</span> <a class="code" href="a00968.html#b918ba412b80a9d43acb2bce982a637c">AlignmentState</a> { <a name="l00228"></a><a class="code" href="a00968.html#b918ba412b80a9d43acb2bce982a637c4c436c4113ab91206de10bec5b2d3eee">00228</a> XAxis, <a name="l00229"></a><a class="code" href="a00968.html#b918ba412b80a9d43acb2bce982a637ca1fb0238d724547caa47571bcbe0002a">00229</a> YAxis, <a name="l00230"></a><a class="code" href="a00968.html#b918ba412b80a9d43acb2bce982a637c5daab83a77336de44c74b6b07c36d25e">00230</a> ZAxis, <a name="l00231"></a><a class="code" href="a00968.html#b918ba412b80a9d43acb2bce982a637ce3a6bc0b694a0c92fad14bd3cb2a6a0d">00231</a> None <a name="l00232"></a>00232 }; <a name="l00233"></a>00233 <span class="comment">//ETX</span> <a name="l00234"></a>00234 <a name="l00235"></a>00235 <span class="comment">// the line</span> <a name="l00236"></a><a class="code" href="a00968.html#6bfd6020ed93f25d120e9aa725a58dc3">00236</a> <a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a> *LineActor; <a name="l00237"></a><a class="code" href="a00968.html#7823f156876f78e0b36f2761c42865f2">00237</a> <a class="code" href="a01265.html" title="map vtkPolyData to graphics primitives">vtkPolyDataMapper</a> *LineMapper; <a name="l00238"></a><a class="code" href="a00968.html#df962b2e7af7cbee46e908445c83dd04">00238</a> <a class="code" href="a00966.html" title="create a line defined by two end points">vtkLineSource</a> *LineSource; <a name="l00239"></a>00239 <span class="keywordtype">void</span> HighlightLine(<span class="keywordtype">int</span> highlight); <a name="l00240"></a>00240 <a name="l00241"></a>00241 <span class="comment">// glyphs representing hot spots (e.g., handles)</span> <a name="l00242"></a><a class="code" href="a00968.html#eefc4bf74a077e6e1681fd507781be48">00242</a> <a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a> **Handle; <a name="l00243"></a><a class="code" href="a00968.html#873a9383b5281e7758d2e19fe91c7148">00243</a> <a class="code" href="a01265.html" title="map vtkPolyData to graphics primitives">vtkPolyDataMapper</a> **HandleMapper; <a name="l00244"></a><a class="code" href="a00968.html#516bd40261043f8a515a951bcb048ce6">00244</a> <a class="code" href="a01582.html" title="create a polygonal sphere centered at the origin">vtkSphereSource</a> **HandleGeometry; <a name="l00245"></a>00245 <a name="l00246"></a>00246 <span class="keywordtype">void</span> BuildRepresentation(); <a name="l00247"></a>00247 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00075.html#ed3ed18b8949f25b6c115637a3a85ee6">SizeHandles</a>(); <a name="l00248"></a>00248 <span class="keywordtype">void</span> HandlesOn(<span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21042c5d76c3275f5d17bc1b329d83ab003">length</a>); <a name="l00249"></a>00249 <span class="keywordtype">void</span> HandlesOff(); <a name="l00250"></a>00250 <span class="keywordtype">int</span> HighlightHandle(<a class="code" href="a01317.html" title="abstract superclass for all actors, volumes and annotations">vtkProp</a> *prop); <span class="comment">//returns cell id</span> <a name="l00251"></a>00251 <span class="keywordtype">void</span> HighlightHandles(<span class="keywordtype">int</span> highlight); <a name="l00252"></a>00252 <a name="l00253"></a>00253 <span class="comment">// Do the picking</span> <a name="l00254"></a><a class="code" href="a00968.html#0a837fa613f2fe9ce08195c8f50083d5">00254</a> <a class="code" href="a00251.html" title="select a cell by shooting a ray into graphics window">vtkCellPicker</a> *HandlePicker; <a name="l00255"></a><a class="code" href="a00968.html#ef8df5b610f08e2dafce77e73c143da2">00255</a> <a class="code" href="a00251.html" title="select a cell by shooting a ray into graphics window">vtkCellPicker</a> *LinePicker; <a name="l00256"></a><a class="code" href="a00968.html#1503f475a620b775a6b6c3dcd2efbc54">00256</a> <a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a> *CurrentHandle; <a name="l00257"></a><a class="code" href="a00968.html#8b1c4ec91a07d2758bff03f443957182">00257</a> <span class="keywordtype">double</span> LastPosition[3]; <a name="l00258"></a>00258 <span class="keywordtype">void</span> SetLinePosition(<span class="keywordtype">double</span> x[3]); <a name="l00259"></a>00259 <a name="l00260"></a>00260 <span class="comment">// Methods to manipulate the hexahedron.</span> <a name="l00261"></a>00261 <span class="keywordtype">void</span> Scale(<span class="keywordtype">double</span> *p1, <span class="keywordtype">double</span> *p2, <span class="keywordtype">int</span> X, <span class="keywordtype">int</span> Y); <a name="l00262"></a>00262 <a name="l00263"></a>00263 <span class="comment">// Initial bounds</span> <a name="l00264"></a><a class="code" href="a00968.html#f2ebde2d7472efa91ce1508fa8ee284d">00264</a> <span class="keywordtype">int</span> ClampToBounds; <a name="l00265"></a>00265 <span class="keywordtype">void</span> ClampPosition(<span class="keywordtype">double</span> x[3]); <a name="l00266"></a>00266 <span class="keywordtype">int</span> InBounds(<span class="keywordtype">double</span> x[3]); <a name="l00267"></a>00267 <a name="l00268"></a>00268 <span class="comment">// Properties used to control the appearance of selected objects and</span> <a name="l00269"></a>00269 <span class="comment">// the manipulator in general.</span> <a name="l00270"></a><a class="code" href="a00968.html#c403f7da2b80453f28b8f290b45451fc">00270</a> <a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a> *HandleProperty; <a name="l00271"></a><a class="code" href="a00968.html#4f6a0c4317be39e618f1af496eceb82e">00271</a> <a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a> *SelectedHandleProperty; <a name="l00272"></a><a class="code" href="a00968.html#5841a3667447545b18c12562309da2f8">00272</a> <a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a> *LineProperty; <a name="l00273"></a><a class="code" href="a00968.html#0122c7f75cb0094cb173a9efaf243aa8">00273</a> <a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a> *SelectedLineProperty; <a name="l00274"></a>00274 <span class="keywordtype">void</span> CreateDefaultProperties(); <a name="l00275"></a>00275 <a name="l00276"></a>00276 <span class="keywordtype">void</span> GenerateLine(); <a name="l00277"></a>00277 <a name="l00278"></a>00278 <span class="comment">// Methods for managing the point widgets used to control the endpoints</span> <a name="l00279"></a><a class="code" href="a00968.html#1e5c1810cebb7b25c240c81613f7b0e8">00279</a> <a class="code" href="a01259.html" title="position a point in 3D space">vtkPointWidget</a> *PointWidget; <a name="l00280"></a><a class="code" href="a00968.html#63a377699aebd19a8729df129ba2c96b">00280</a> <a class="code" href="a01259.html" title="position a point in 3D space">vtkPointWidget</a> *PointWidget1; <a name="l00281"></a><a class="code" href="a00968.html#3503ea2873712403093f0bd8172e106e">00281</a> <a class="code" href="a01259.html" title="position a point in 3D space">vtkPointWidget</a> *PointWidget2; <a name="l00282"></a><a class="code" href="a00968.html#70c22451369702f52fa3222413610e40">00282</a> vtkPWCallback *PWCallback; <a name="l00283"></a><a class="code" href="a00968.html#45064c64b78f78598d71a554732c3850">00283</a> vtkPW1Callback *PW1Callback; <a name="l00284"></a><a class="code" href="a00968.html#e658856e5537fb70efeb1a7d8d9f8250">00284</a> vtkPW2Callback *PW2Callback; <a name="l00285"></a><a class="code" href="a00968.html#0be39a7756ccdd3913d8086215e68469">00285</a> <a class="code" href="a01259.html" title="position a point in 3D space">vtkPointWidget</a> *CurrentPointWidget; <a name="l00286"></a>00286 <span class="keywordtype">void</span> EnablePointWidget(); <a name="l00287"></a>00287 <span class="keywordtype">void</span> DisablePointWidget(); <a name="l00288"></a>00288 <span class="keywordtype">int</span> ForwardEvent(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> event); <a name="l00289"></a>00289 <a name="l00290"></a>00290 <span class="keyword">private</span>: <a name="l00291"></a>00291 <a class="code" href="a00968.html" title="3D widget for manipulating a line">vtkLineWidget</a>(<span class="keyword">const</span> <a class="code" href="a00968.html" title="3D widget for manipulating a line">vtkLineWidget</a>&); <span class="comment">//Not implemented</span> <a name="l00292"></a>00292 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00968.html" title="3D widget for manipulating a line">vtkLineWidget</a>&); <span class="comment">//Not implemented</span> <a name="l00293"></a>00293 }; <a name="l00294"></a>00294 <a name="l00295"></a>00295 <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>