Sophie

Sophie

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

vtk-doc-5.4.2-5mdv2010.0.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>VTK: dox/Widgets/vtkSphereWidget.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="classes.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
<h1>dox/Widgets/vtkSphereWidget.h</h1><a href="a03738.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: vtkSphereWidget.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="l00059"></a>00059 <span class="preprocessor">#ifndef __vtkSphereWidget_h</span>
<a name="l00060"></a>00060 <span class="preprocessor"></span><span class="preprocessor">#define __vtkSphereWidget_h</span>
<a name="l00061"></a>00061 <span class="preprocessor"></span>
<a name="l00062"></a>00062 <span class="preprocessor">#include "<a class="code" href="a03649.html">vtk3DWidget.h</a>"</span>
<a name="l00063"></a>00063 <span class="preprocessor">#include "<a class="code" href="a02663.html">vtkSphereSource.h</a>"</span> <span class="comment">// Needed for faster access to the sphere source</span>
<a name="l00064"></a>00064 
<a name="l00065"></a>00065 <span class="keyword">class </span><a class="code" href="a00092.html" title="represents an object (geometry &amp;amp; properties) in a rendered scene">vtkActor</a>;
<a name="l00066"></a>00066 <span class="keyword">class </span><a class="code" href="a01265.html" title="map vtkPolyData to graphics primitives">vtkPolyDataMapper</a>;
<a name="l00067"></a>00067 <span class="keyword">class </span><a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>;
<a name="l00068"></a>00068 <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="l00069"></a>00069 <span class="keyword">class </span><a class="code" href="a01582.html" title="create a polygonal sphere centered at the origin">vtkSphereSource</a>;
<a name="l00070"></a>00070 <span class="keyword">class </span><a class="code" href="a01577.html" title="implicit function for a sphere">vtkSphere</a>;
<a name="l00071"></a>00071 <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="l00072"></a>00072 <span class="keyword">class </span><a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>;
<a name="l00073"></a>00073 
<a name="l00074"></a><a class="code" href="a03738.html#817030459515d79b96562319fa3a2cc5">00074</a> <span class="preprocessor">#define VTK_SPHERE_OFF 0</span>
<a name="l00075"></a><a class="code" href="a03738.html#c483af42d74bc4a1f4e1a96c9d9999bc">00075</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_SPHERE_WIREFRAME 1</span>
<a name="l00076"></a><a class="code" href="a03738.html#2841dddb4346876a3aba588817345f73">00076</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_SPHERE_SURFACE 2</span>
<a name="l00077"></a>00077 <span class="preprocessor"></span>
<a name="l00078"></a><a class="code" href="a01583.html">00078</a> <span class="keyword">class </span><a class="code" href="a02170.html#09e5ba6764f54642494e26907662d55f">VTK_WIDGETS_EXPORT</a> <a class="code" href="a01583.html" title="3D widget for manipulating a sphere">vtkSphereWidget</a> : <span class="keyword">public</span> <a class="code" href="a00075.html" title="an abstract superclass for 3D widgets">vtk3DWidget</a>
<a name="l00079"></a>00079 {
<a name="l00080"></a>00080 <span class="keyword">public</span>:
<a name="l00082"></a>00082   <span class="keyword">static</span> <a class="code" href="a01583.html" title="3D widget for manipulating a sphere">vtkSphereWidget</a> *<a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>();
<a name="l00083"></a>00083 
<a name="l00084"></a><a class="code" href="a01583.html#73bf383178528cc66b3c457f01ccb268">00084</a>   vtkTypeRevisionMacro(<a class="code" href="a01583.html" title="3D widget for manipulating a sphere">vtkSphereWidget</a>,<a class="code" href="a00075.html" title="an abstract superclass for 3D widgets">vtk3DWidget</a>);
<a name="l00085"></a>00085   <span class="keywordtype">void</span> <a class="code" href="a00075.html#132e8f748131edef14b83d9b15d603c8">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00086"></a>00086 
<a name="l00088"></a>00088 
<a name="l00089"></a>00089   <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="l00090"></a>00090   <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="l00091"></a><a class="code" href="a01583.html#1af7706dc3210c64fdebde33a6d11088">00091</a>   <span class="keywordtype">void</span> <a class="code" href="a00075.html#d6a77721ab3efb8ba994132439f53e66">PlaceWidget</a>()
<a name="l00092"></a>00092     {this-&gt;Superclass::PlaceWidget();}
<a name="l00093"></a><a class="code" href="a01583.html#9c82cd11d638001a4fad886bedf7ddb6">00093</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="l00094"></a>00094                    <span class="keywordtype">double</span> zmin, <span class="keywordtype">double</span> zmax)
<a name="l00095"></a>00095     {this-&gt;Superclass::PlaceWidget(xmin,xmax,ymin,ymax,zmin,zmax);}
<a name="l00097"></a>00097 
<a name="l00099"></a>00099 
<a name="l00101"></a>00101   vtkSetClampMacro(Representation,<span class="keywordtype">int</span>,<a class="code" href="a03737.html#817030459515d79b96562319fa3a2cc5">VTK_SPHERE_OFF</a>,<a class="code" href="a03737.html#2841dddb4346876a3aba588817345f73">VTK_SPHERE_SURFACE</a>);
<a name="l00102"></a>00102   vtkGetMacro(Representation,<span class="keywordtype">int</span>);
<a name="l00103"></a><a class="code" href="a01583.html#e211f816c540fcebc6449713e4e812f9">00103</a>   <span class="keywordtype">void</span> SetRepresentationToOff()
<a name="l00104"></a>00104     { this-&gt;SetRepresentation(<a class="code" href="a03737.html#817030459515d79b96562319fa3a2cc5">VTK_SPHERE_OFF</a>);}
<a name="l00105"></a><a class="code" href="a01583.html#d87b8116fe01e621f2bcfaba067e5b09">00105</a>   <span class="keywordtype">void</span> SetRepresentationToWireframe()
<a name="l00106"></a>00106     { this-&gt;SetRepresentation(<a class="code" href="a03737.html#c483af42d74bc4a1f4e1a96c9d9999bc">VTK_SPHERE_WIREFRAME</a>);}
<a name="l00107"></a><a class="code" href="a01583.html#c782941e47434f1e30f7e24d1b76a602">00107</a>   <span class="keywordtype">void</span> SetRepresentationToSurface()
<a name="l00108"></a>00108     { this-&gt;SetRepresentation(<a class="code" href="a03737.html#2841dddb4346876a3aba588817345f73">VTK_SPHERE_SURFACE</a>);}
<a name="l00110"></a>00110 
<a name="l00112"></a>00112 
<a name="l00113"></a><a class="code" href="a01583.html#97690cdbbc7fba9bdeaef98828f16dbf">00113</a>   <span class="keywordtype">void</span> SetThetaResolution(<span class="keywordtype">int</span> r)
<a name="l00114"></a>00114     { this-&gt;SphereSource-&gt;SetThetaResolution(r); }
<a name="l00115"></a><a class="code" href="a01583.html#50b5e4648094fd25b1e87551513ea667">00115</a>   <span class="keywordtype">int</span> GetThetaResolution()
<a name="l00116"></a>00116     { <span class="keywordflow">return</span> this-&gt;SphereSource-&gt;GetThetaResolution(); }
<a name="l00118"></a>00118 
<a name="l00120"></a>00120 
<a name="l00121"></a><a class="code" href="a01583.html#c7dace75a56105473efab62627a55234">00121</a>   <span class="keywordtype">void</span> SetPhiResolution(<span class="keywordtype">int</span> r)
<a name="l00122"></a>00122     { this-&gt;SphereSource-&gt;SetPhiResolution(r); }
<a name="l00123"></a><a class="code" href="a01583.html#950737bd6e842493b00a8e934c0c07c5">00123</a>   <span class="keywordtype">int</span> GetPhiResolution()
<a name="l00124"></a>00124     { <span class="keywordflow">return</span> this-&gt;SphereSource-&gt;GetPhiResolution(); }
<a name="l00126"></a>00126 
<a name="l00128"></a>00128 
<a name="l00129"></a><a class="code" href="a01583.html#7bb85d74675402a7221512adc134d984">00129</a>   <span class="keywordtype">void</span> SetRadius(<span class="keywordtype">double</span> r)
<a name="l00130"></a>00130     {
<a name="l00131"></a>00131     <span class="keywordflow">if</span> ( r &lt;= 0 )
<a name="l00132"></a>00132       {
<a name="l00133"></a>00133       r = .00001;
<a name="l00134"></a>00134       }
<a name="l00135"></a>00135     this-&gt;SphereSource-&gt;SetRadius(r); 
<a name="l00136"></a>00136     }
<a name="l00137"></a><a class="code" href="a01583.html#6a0e7b50f84a26f28342d04cae4d0f5c">00137</a>   <span class="keywordtype">double</span> GetRadius()
<a name="l00138"></a>00138     { <span class="keywordflow">return</span> this-&gt;SphereSource-&gt;GetRadius(); }
<a name="l00140"></a>00140 
<a name="l00142"></a>00142 
<a name="l00143"></a><a class="code" href="a01583.html#6db04fc0819dd0b31ddb8ba365b9b77c">00143</a>   <span class="keywordtype">void</span> SetCenter(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> z) 
<a name="l00144"></a>00144     {
<a name="l00145"></a>00145     this-&gt;SphereSource-&gt;SetCenter(x,y,z); 
<a name="l00146"></a>00146     }
<a name="l00147"></a><a class="code" href="a01583.html#62600032bb5d1cfa492cb436c4904a7b">00147</a>   <span class="keywordtype">void</span> SetCenter(<span class="keywordtype">double</span> x[3]) 
<a name="l00148"></a>00148     {
<a name="l00149"></a>00149     this-&gt;SetCenter(x[0], x[1], x[2]);
<a name="l00150"></a>00150     }
<a name="l00151"></a><a class="code" href="a01583.html#85dc312a3469a9316a7c489a8f2513c0">00151</a>   <span class="keywordtype">double</span>* GetCenter() 
<a name="l00152"></a>00152     {<span class="keywordflow">return</span> this-&gt;SphereSource-&gt;GetCenter();}
<a name="l00153"></a><a class="code" href="a01583.html#21fd6efd8e35aef2a30c36099a8f4d57">00153</a>   <span class="keywordtype">void</span> GetCenter(<span class="keywordtype">double</span> xyz[3]) 
<a name="l00154"></a>00154     {this-&gt;SphereSource-&gt;GetCenter(xyz);}
<a name="l00156"></a>00156 
<a name="l00158"></a>00158 
<a name="l00160"></a>00160   vtkSetMacro(Translation,<span class="keywordtype">int</span>);
<a name="l00161"></a>00161   vtkGetMacro(Translation,<span class="keywordtype">int</span>);
<a name="l00162"></a>00162   vtkBooleanMacro(Translation,<span class="keywordtype">int</span>);
<a name="l00163"></a>00163   vtkSetMacro(Scale,<span class="keywordtype">int</span>);
<a name="l00164"></a>00164   vtkGetMacro(Scale,<span class="keywordtype">int</span>);
<a name="l00165"></a>00165   vtkBooleanMacro(Scale,<span class="keywordtype">int</span>);
<a name="l00167"></a>00167 
<a name="l00169"></a>00169 
<a name="l00173"></a>00173   vtkSetMacro(HandleVisibility,<span class="keywordtype">int</span>);
<a name="l00174"></a>00174   vtkGetMacro(HandleVisibility,<span class="keywordtype">int</span>);
<a name="l00175"></a>00175   vtkBooleanMacro(HandleVisibility,<span class="keywordtype">int</span>);
<a name="l00177"></a>00177 
<a name="l00179"></a>00179 
<a name="l00182"></a>00182   vtkSetVector3Macro(HandleDirection,<span class="keywordtype">double</span>);
<a name="l00183"></a>00183   vtkGetVector3Macro(HandleDirection,<span class="keywordtype">double</span>);
<a name="l00185"></a>00185 
<a name="l00187"></a>00187 
<a name="l00188"></a>00188   vtkGetVector3Macro(HandlePosition,<span class="keywordtype">double</span>);
<a name="l00190"></a>00190   
<a name="l00197"></a>00197   <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="l00198"></a>00198 
<a name="l00203"></a>00203   <span class="keywordtype">void</span> GetSphere(<a class="code" href="a01577.html" title="implicit function for a sphere">vtkSphere</a> *sphere);
<a name="l00204"></a>00204 
<a name="l00206"></a>00206 
<a name="l00208"></a>00208   vtkGetObjectMacro(SphereProperty,<a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>);
<a name="l00209"></a>00209   vtkGetObjectMacro(SelectedSphereProperty,<a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>);
<a name="l00211"></a>00211   
<a name="l00213"></a>00213 
<a name="l00216"></a>00216   vtkGetObjectMacro(HandleProperty,<a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>);
<a name="l00217"></a>00217   vtkGetObjectMacro(SelectedHandleProperty,<a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>);
<a name="l00219"></a>00219   
<a name="l00220"></a>00220 <span class="keyword">protected</span>:
<a name="l00221"></a>00221   <a class="code" href="a01583.html" title="3D widget for manipulating a sphere">vtkSphereWidget</a>();
<a name="l00222"></a>00222   ~<a class="code" href="a01583.html" title="3D widget for manipulating a sphere">vtkSphereWidget</a>();
<a name="l00223"></a>00223 
<a name="l00224"></a>00224 <span class="comment">//BTX - manage the state of the widget</span>
<a name="l00225"></a><a class="code" href="a01583.html#ee79fc38397c6dd7c6373ae20e73c192">00225</a>   <span class="keywordtype">int</span> State;
<a name="l00226"></a><a class="code" href="a01583.html#cb9341998c72fe3ba922572c12500c47">00226</a>   <span class="keyword">enum</span> <a class="code" href="a01583.html#cb9341998c72fe3ba922572c12500c47">WidgetState</a>
<a name="l00227"></a>00227   {
<a name="l00228"></a><a class="code" href="a01583.html#cb9341998c72fe3ba922572c12500c47f8593b1d612f9b719578928fde08be36">00228</a>     Start=0,
<a name="l00229"></a><a class="code" href="a01583.html#cb9341998c72fe3ba922572c12500c4783e7c5a7a5ec2c9c1f8a6f80cc8cff0b">00229</a>     Moving,
<a name="l00230"></a><a class="code" href="a01583.html#cb9341998c72fe3ba922572c12500c4774a6d417780afab13a2879a49f245c8b">00230</a>     Scaling,
<a name="l00231"></a><a class="code" href="a01583.html#cb9341998c72fe3ba922572c12500c472f7022e07f89471b22803dc54333deeb">00231</a>     Positioning,
<a name="l00232"></a><a class="code" href="a01583.html#cb9341998c72fe3ba922572c12500c475cbf9a4bcc127dcd87ec48988ec4acb8">00232</a>     Outside
<a name="l00233"></a>00233   };
<a name="l00234"></a>00234 <span class="comment">//ETX</span>
<a name="l00235"></a>00235     
<a name="l00236"></a>00236   <span class="comment">//handles the events</span>
<a name="l00237"></a>00237   <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="l00238"></a>00238                             <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> event,
<a name="l00239"></a>00239                             <span class="keywordtype">void</span>* clientdata, 
<a name="l00240"></a>00240                             <span class="keywordtype">void</span>* calldata);
<a name="l00241"></a>00241 
<a name="l00242"></a>00242   <span class="comment">// ProcessEvents() dispatches to these methods.</span>
<a name="l00243"></a>00243   <span class="keywordtype">void</span> OnLeftButtonDown();
<a name="l00244"></a>00244   <span class="keywordtype">void</span> OnLeftButtonUp();
<a name="l00245"></a>00245   <span class="keywordtype">void</span> OnRightButtonDown();
<a name="l00246"></a>00246   <span class="keywordtype">void</span> OnRightButtonUp();
<a name="l00247"></a>00247   <span class="keywordtype">void</span> OnMouseMove();
<a name="l00248"></a>00248 
<a name="l00249"></a>00249   <span class="comment">// the sphere</span>
<a name="l00250"></a><a class="code" href="a01583.html#d5f1ee047a7eea68d52e28bc4bdc6b03">00250</a>   <a class="code" href="a00092.html" title="represents an object (geometry &amp;amp; properties) in a rendered scene">vtkActor</a>          *SphereActor;
<a name="l00251"></a><a class="code" href="a01583.html#a18b744e49eb37ae046aab7131868a08">00251</a>   <a class="code" href="a01265.html" title="map vtkPolyData to graphics primitives">vtkPolyDataMapper</a> *SphereMapper;
<a name="l00252"></a><a class="code" href="a01583.html#d9273ff28ce7ee466564d54a77a072b5">00252</a>   <a class="code" href="a01582.html" title="create a polygonal sphere centered at the origin">vtkSphereSource</a>     *SphereSource;
<a name="l00253"></a>00253   <span class="keywordtype">void</span> HighlightSphere(<span class="keywordtype">int</span> highlight);
<a name="l00254"></a>00254   <span class="keywordtype">void</span> SelectRepresentation();
<a name="l00255"></a>00255 
<a name="l00256"></a>00256   <span class="comment">// The representation of the sphere</span>
<a name="l00257"></a><a class="code" href="a01583.html#beef5e69b9b9ae0b56fb24fa34f68d7d">00257</a>   <span class="keywordtype">int</span> Representation;
<a name="l00258"></a>00258 
<a name="l00259"></a>00259   <span class="comment">// Do the picking</span>
<a name="l00260"></a><a class="code" href="a01583.html#108a9972ec128ce0443953d62846305c">00260</a>   <a class="code" href="a00251.html" title="select a cell by shooting a ray into graphics window">vtkCellPicker</a> *Picker;
<a name="l00261"></a>00261   
<a name="l00262"></a>00262   <span class="comment">// Methods to manipulate the sphere widget</span>
<a name="l00263"></a><a class="code" href="a01583.html#e6240fb7b434749a80d5f2773a36af8f">00263</a>   <span class="keywordtype">int</span> Translation;
<a name="l00264"></a><a class="code" href="a01583.html#a8d81ca8b1fc65216f5198336dc070d5">00264</a>   <span class="keywordtype">int</span> Scale;
<a name="l00265"></a>00265   <span class="keywordtype">void</span> Translate(<span class="keywordtype">double</span> *p1, <span class="keywordtype">double</span> *p2);
<a name="l00266"></a>00266   <span class="keywordtype">void</span> ScaleSphere(<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="l00267"></a>00267   <span class="keywordtype">void</span> MoveHandle(<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="l00268"></a>00268   <span class="keywordtype">void</span> PlaceHandle(<span class="keywordtype">double</span> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2107cf190fdac7e1fa1890c67ec92d414d6">center</a>, <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c88c373494669189048f82ee86af5852">radius</a>);
<a name="l00269"></a>00269   
<a name="l00270"></a>00270   <span class="comment">// Properties used to control the appearance of selected objects and</span>
<a name="l00271"></a>00271   <span class="comment">// the manipulator in general.</span>
<a name="l00272"></a><a class="code" href="a01583.html#ad3340c29264085d3244ae4f2ba5dada">00272</a>   <a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a> *SphereProperty;
<a name="l00273"></a><a class="code" href="a01583.html#280b1d065eff1472f73b1f1edcb59d55">00273</a>   <a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a> *SelectedSphereProperty;
<a name="l00274"></a><a class="code" href="a01583.html#ca16c341426c5fe95156969696df9bc7">00274</a>   <a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a> *HandleProperty;
<a name="l00275"></a><a class="code" href="a01583.html#f87c5a9b0124d08c72726c909e41c872">00275</a>   <a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a> *SelectedHandleProperty;
<a name="l00276"></a>00276   <span class="keywordtype">void</span> CreateDefaultProperties();
<a name="l00277"></a>00277 
<a name="l00278"></a>00278   <span class="comment">// Managing the handle</span>
<a name="l00279"></a><a class="code" href="a01583.html#c35a3368ae8cf0300e462ce2cfc9b669">00279</a>   <a class="code" href="a00092.html" title="represents an object (geometry &amp;amp; properties) in a rendered scene">vtkActor</a>          *HandleActor;
<a name="l00280"></a><a class="code" href="a01583.html#60b095a7f111b0d955d159f599e9a0ac">00280</a>   <a class="code" href="a01265.html" title="map vtkPolyData to graphics primitives">vtkPolyDataMapper</a> *HandleMapper;
<a name="l00281"></a><a class="code" href="a01583.html#7bcb3a596e4c08a415b9438cda4f7d93">00281</a>   <a class="code" href="a01582.html" title="create a polygonal sphere centered at the origin">vtkSphereSource</a>   *HandleSource;
<a name="l00282"></a>00282   <span class="keywordtype">void</span> HighlightHandle(<span class="keywordtype">int</span>);
<a name="l00283"></a><a class="code" href="a01583.html#f34e979fcb55053210e85ae7e9fa7ba0">00283</a>   <span class="keywordtype">int</span> HandleVisibility;
<a name="l00284"></a><a class="code" href="a01583.html#1fafd0bf273409b3c1254a242371ce62">00284</a>   <span class="keywordtype">double</span> HandleDirection[3];
<a name="l00285"></a><a class="code" href="a01583.html#085aefe7c467a3a3f5749dcdd1b3f8c3">00285</a>   <span class="keywordtype">double</span> HandlePosition[3];
<a name="l00286"></a>00286   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00075.html#ed3ed18b8949f25b6c115637a3a85ee6">SizeHandles</a>();
<a name="l00287"></a>00287 
<a name="l00288"></a>00288 <span class="keyword">private</span>:
<a name="l00289"></a>00289   <a class="code" href="a01583.html" title="3D widget for manipulating a sphere">vtkSphereWidget</a>(<span class="keyword">const</span> <a class="code" href="a01583.html" title="3D widget for manipulating a sphere">vtkSphereWidget</a>&amp;);  <span class="comment">//Not implemented</span>
<a name="l00290"></a>00290   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01583.html" title="3D widget for manipulating a sphere">vtkSphereWidget</a>&amp;);  <span class="comment">//Not implemented</span>
<a name="l00291"></a>00291 };
<a name="l00292"></a>00292 
<a name="l00293"></a>00293 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:57 2009 for VTK by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>