Sophie

Sophie

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

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/vtkConstrainedPointHandleRepresentation.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/vtkConstrainedPointHandleRepresentation.h</h1><a href="a03678.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: vtkConstrainedPointHandleRepresentation.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="l00039"></a>00039 <span class="preprocessor">#ifndef __vtkConstrainedPointHandleRepresentation_h</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#define __vtkConstrainedPointHandleRepresentation_h</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span>
<a name="l00042"></a>00042 <span class="preprocessor">#include "<a class="code" href="a03692.html">vtkHandleRepresentation.h</a>"</span>
<a name="l00043"></a>00043 
<a name="l00044"></a>00044 <span class="keyword">class </span><a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>;
<a name="l00045"></a>00045 <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="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="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a>;
<a name="l00048"></a>00048 <span class="keyword">class </span><a class="code" href="a00651.html" title="copy oriented and scaled glyph geometry to every input point">vtkGlyph3D</a>;
<a name="l00049"></a>00049 <span class="keyword">class </span><a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</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="a01224.html" title="perform various plane computations">vtkPlane</a>;
<a name="l00052"></a>00052 <span class="keyword">class </span><a class="code" href="a01225.html" title="maintain a list of planes">vtkPlaneCollection</a>;
<a name="l00053"></a>00053 <span class="keyword">class </span><a class="code" href="a01226.html" title="implicit function for convex set of planes">vtkPlanes</a>;
<a name="l00054"></a>00054 <span class="keyword">class </span><a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a>;
<a name="l00055"></a>00055 
<a name="l00056"></a><a class="code" href="a00319.html">00056</a> <span class="keyword">class </span><a class="code" href="a02170.html#09e5ba6764f54642494e26907662d55f">VTK_WIDGETS_EXPORT</a> <a class="code" href="a00319.html" title="point representation constrained to a 2D plane">vtkConstrainedPointHandleRepresentation</a> : <span class="keyword">public</span> <a class="code" href="a00678.html" title="abstract class for representing widget handles">vtkHandleRepresentation</a>
<a name="l00057"></a>00057 {
<a name="l00058"></a>00058 <span class="keyword">public</span>:
<a name="l00060"></a>00060   <span class="keyword">static</span> <a class="code" href="a00319.html" title="point representation constrained to a 2D plane">vtkConstrainedPointHandleRepresentation</a> *<a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>();
<a name="l00061"></a>00061 
<a name="l00063"></a>00063 
<a name="l00064"></a><a class="code" href="a00319.html#d6509fa2c87ec1071547e8e441ffca19">00064</a>   vtkTypeRevisionMacro(<a class="code" href="a00319.html" title="point representation constrained to a 2D plane">vtkConstrainedPointHandleRepresentation</a>,<a class="code" href="a00678.html" title="abstract class for representing widget handles">vtkHandleRepresentation</a>);
<a name="l00065"></a>00065   <span class="keywordtype">void</span> <a class="code" href="a00678.html#1cb17c998d1cbe60ce9a59b9663bd89c">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00067"></a>00067 
<a name="l00069"></a>00069 
<a name="l00072"></a>00072   <span class="keywordtype">void</span> SetCursorShape(<a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *cursorShape);
<a name="l00073"></a>00073   <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *GetCursorShape();
<a name="l00075"></a>00075 
<a name="l00077"></a>00077 
<a name="l00080"></a>00080   <span class="keywordtype">void</span> SetActiveCursorShape(<a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *activeShape);
<a name="l00081"></a>00081   <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *GetActiveCursorShape();
<a name="l00083"></a>00083 
<a name="l00085"></a>00085 
<a name="l00088"></a>00088   vtkSetClampMacro(ProjectionNormal,<span class="keywordtype">int</span>,
<a name="l00089"></a>00089                    <a class="code" href="a00319.html#ccf4b7e9ff46a8bebaac2259ed91147c1683e250edefdb6dfbe0bc9965515bd2">vtkConstrainedPointHandleRepresentation::XAxis</a>,
<a name="l00090"></a>00090                    <a class="code" href="a00319.html#ccf4b7e9ff46a8bebaac2259ed91147c125864b4f73236c9a59be59c6a0c7a1f">vtkConstrainedPointHandleRepresentation::Oblique</a>);
<a name="l00091"></a>00091   vtkGetMacro(ProjectionNormal,<span class="keywordtype">int</span>);
<a name="l00093"></a>00093  
<a name="l00094"></a><a class="code" href="a00319.html#d8e9ef0584ef48a64f0cf6f7095176ba">00094</a>   <span class="keywordtype">void</span> SetProjectionNormalToXAxis()
<a name="l00095"></a>00095     { this-&gt;SetProjectionNormal(<a class="code" href="a00319.html#ccf4b7e9ff46a8bebaac2259ed91147c1683e250edefdb6dfbe0bc9965515bd2">vtkConstrainedPointHandleRepresentation::XAxis</a>); }
<a name="l00096"></a><a class="code" href="a00319.html#3047bec437ccbab3362e525c77c3f4d7">00096</a>   <span class="keywordtype">void</span> SetProjectionNormalToYAxis()
<a name="l00097"></a>00097     { this-&gt;SetProjectionNormal(<a class="code" href="a00319.html#ccf4b7e9ff46a8bebaac2259ed91147c3a70e2b914e5d3a220abf2d232503b66">vtkConstrainedPointHandleRepresentation::YAxis</a>); }
<a name="l00098"></a><a class="code" href="a00319.html#fe9e8f568a029e6121025ce014c50f27">00098</a>   <span class="keywordtype">void</span> SetProjectionNormalToZAxis()
<a name="l00099"></a>00099     { this-&gt;SetProjectionNormal(<a class="code" href="a00319.html#ccf4b7e9ff46a8bebaac2259ed91147cf434fab9eb96588cfe7d486baf66926c">vtkConstrainedPointHandleRepresentation::ZAxis</a>); }
<a name="l00100"></a><a class="code" href="a00319.html#c08097cd948c835e84627c780f183c19">00100</a>   <span class="keywordtype">void</span> SetProjectionNormalToOblique()
<a name="l00101"></a>00101     { this-&gt;SetProjectionNormal(<a class="code" href="a00319.html#ccf4b7e9ff46a8bebaac2259ed91147c125864b4f73236c9a59be59c6a0c7a1f">vtkConstrainedPointHandleRepresentation::Oblique</a>); }
<a name="l00102"></a>00102 
<a name="l00104"></a>00104 
<a name="l00106"></a>00106   <span class="keywordtype">void</span> SetObliquePlane(<a class="code" href="a01224.html" title="perform various plane computations">vtkPlane</a> *);
<a name="l00107"></a>00107   vtkGetObjectMacro(ObliquePlane, <a class="code" href="a01224.html" title="perform various plane computations">vtkPlane</a>);
<a name="l00109"></a>00109 
<a name="l00111"></a>00111 
<a name="l00115"></a>00115   <span class="keywordtype">void</span> SetProjectionPosition(<span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210d43ac71820d660e3c543657c794b3d8c">position</a>);
<a name="l00116"></a>00116   vtkGetMacro(ProjectionPosition, <span class="keywordtype">double</span>);
<a name="l00118"></a>00118 
<a name="l00120"></a>00120 
<a name="l00126"></a>00126   <span class="keywordtype">void</span> AddBoundingPlane(<a class="code" href="a01224.html" title="perform various plane computations">vtkPlane</a> *plane);
<a name="l00127"></a>00127   <span class="keywordtype">void</span> RemoveBoundingPlane(<a class="code" href="a01224.html" title="perform various plane computations">vtkPlane</a> *plane);
<a name="l00128"></a>00128   <span class="keywordtype">void</span> RemoveAllBoundingPlanes();
<a name="l00129"></a>00129   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetBoundingPlanes(<a class="code" href="a01225.html" title="maintain a list of planes">vtkPlaneCollection</a>*);
<a name="l00130"></a>00130   vtkGetObjectMacro(BoundingPlanes,<a class="code" href="a01225.html" title="maintain a list of planes">vtkPlaneCollection</a>);
<a name="l00131"></a>00131   <span class="keywordtype">void</span> SetBoundingPlanes(<a class="code" href="a01226.html" title="implicit function for convex set of planes">vtkPlanes</a> *planes);
<a name="l00133"></a>00133   
<a name="l00137"></a>00137   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00678.html#c3bcbf86168075b0deb28f55f6e96df2">CheckConstraint</a>(<a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a> *renderer, <span class="keywordtype">double</span> pos[2]);
<a name="l00138"></a>00138 
<a name="l00140"></a>00140 
<a name="l00143"></a>00143   <span class="keywordtype">void</span> SetPosition(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> z);
<a name="l00144"></a>00144   <span class="keywordtype">void</span> SetPosition(<span class="keywordtype">double</span> xyz[3]);
<a name="l00145"></a>00145   <span class="keywordtype">double</span>* GetPosition();
<a name="l00146"></a>00146   <span class="keywordtype">void</span> GetPosition(<span class="keywordtype">double</span> xyz[3]);
<a name="l00148"></a>00148   
<a name="l00150"></a>00150 
<a name="l00152"></a>00152   vtkGetObjectMacro(Property,<a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>);
<a name="l00154"></a>00154   
<a name="l00156"></a>00156 
<a name="l00158"></a>00158   vtkGetObjectMacro(SelectedProperty,<a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>);
<a name="l00160"></a>00160   
<a name="l00162"></a>00162 
<a name="l00164"></a>00164   vtkGetObjectMacro(ActiveProperty,<a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>);
<a name="l00166"></a>00166   
<a name="l00168"></a>00168 
<a name="l00171"></a>00171   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00678.html#2c681dfc7b1c81e5e2a07526dae2e29c">SetRenderer</a>(<a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a> *ren);
<a name="l00172"></a>00172   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01877.html#a7dfbf5a2b39487c072266e0e1520ec7">BuildRepresentation</a>();
<a name="l00173"></a>00173   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01877.html#9aece0d7ff74c1fcfd5f427088cab77b">StartWidgetInteraction</a>(<span class="keywordtype">double</span> eventPos[2]);
<a name="l00174"></a>00174   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01877.html#73adbf84d1745e1393eda384a5f31d52">WidgetInteraction</a>(<span class="keywordtype">double</span> eventPos[2]);
<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);
<a name="l00177"></a>00177 
<a name="l00180"></a>00180   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00678.html#83befe7ccbcb67611a92111d3f2b771a">SetDisplayPosition</a>(<span class="keywordtype">double</span> pos[3]);
<a name="l00181"></a>00181 
<a name="l00183"></a>00183 
<a name="l00184"></a>00184   <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> *);
<a name="l00185"></a>00185   <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="l00186"></a>00186   <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="l00187"></a>00187   <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> *viewport);
<a name="l00188"></a>00188   <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> *viewport);
<a name="l00189"></a>00189   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01877.html#8b7761451b47996f96aacab32882ca25">HasTranslucentPolygonalGeometry</a>();
<a name="l00190"></a>00190   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00678.html#ab3a6e7619ef179430840b84d4fd8131">ShallowCopy</a>(<a class="code" href="a01317.html" title="abstract superclass for all actors, volumes and annotations">vtkProp</a>* prop);
<a name="l00192"></a>00192 
<a name="l00193"></a>00193 <span class="comment">//BTX</span>
<a name="l00194"></a><a class="code" href="a00319.html#ccf4b7e9ff46a8bebaac2259ed91147cf434fab9eb96588cfe7d486baf66926c">00194</a>   <span class="keyword">enum</span> {XAxis=0,YAxis,ZAxis,Oblique};
<a name="l00195"></a>00195 <span class="comment">//ETX</span>
<a name="l00196"></a>00196   
<a name="l00197"></a>00197 <span class="keyword">protected</span>:
<a name="l00198"></a>00198   <a class="code" href="a00319.html" title="point representation constrained to a 2D plane">vtkConstrainedPointHandleRepresentation</a>();
<a name="l00199"></a>00199   ~<a class="code" href="a00319.html" title="point representation constrained to a 2D plane">vtkConstrainedPointHandleRepresentation</a>();
<a name="l00200"></a>00200 
<a name="l00201"></a>00201   <span class="comment">// Render the cursor</span>
<a name="l00202"></a><a class="code" href="a00319.html#72a60dcd50810b5f2f6e22a067e058ea">00202</a>   <a class="code" href="a00092.html" title="represents an object (geometry &amp;amp; properties) in a rendered scene">vtkActor</a>             *Actor;
<a name="l00203"></a><a class="code" href="a00319.html#b967e316ff9f49bb6d0567d82fd7bbef">00203</a>   <a class="code" href="a01265.html" title="map vtkPolyData to graphics primitives">vtkPolyDataMapper</a>    *Mapper;
<a name="l00204"></a><a class="code" href="a00319.html#c2bbfc10e556c8e15d4e7f51b52c2aea">00204</a>   <a class="code" href="a00651.html" title="copy oriented and scaled glyph geometry to every input point">vtkGlyph3D</a>           *Glypher;
<a name="l00205"></a><a class="code" href="a00319.html#048e975e181bd8a82cb9cbe022f7db7f">00205</a>   <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a>          *CursorShape;
<a name="l00206"></a><a class="code" href="a00319.html#fb4b769c344b4cca3f2f4722c14bd766">00206</a>   <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a>          *ActiveCursorShape;
<a name="l00207"></a><a class="code" href="a00319.html#6f586eced62bf1ff579596fb7b447fe4">00207</a>   <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a>          *FocalData;
<a name="l00208"></a><a class="code" href="a00319.html#575449e116dbabd001e5081f2ca11da6">00208</a>   <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>            *FocalPoint;
<a name="l00209"></a>00209 
<a name="l00210"></a>00210   <span class="comment">// Support picking</span>
<a name="l00211"></a><a class="code" href="a00319.html#222bf9bd678ae9adea486d8f7f5ae91d">00211</a>   <span class="keywordtype">double</span> LastPickPosition[3];
<a name="l00212"></a><a class="code" href="a00319.html#b0633ee9675626a642c3e72b6ad3af5d">00212</a>   <span class="keywordtype">double</span> LastEventPosition[2];
<a name="l00213"></a>00213   
<a name="l00214"></a>00214   <span class="comment">// Methods to manipulate the cursor</span>
<a name="l00215"></a>00215   <span class="keywordtype">void</span> Translate(<span class="keywordtype">double</span> eventPos[2]);
<a name="l00216"></a>00216   <span class="keywordtype">void</span> Scale(<span class="keywordtype">double</span> eventPos[2]);
<a name="l00217"></a>00217   <span class="keywordtype">void</span> <a class="code" href="a01877.html#4bccab4646d6c0f19d8888a3db9845ff">Highlight</a>(<span class="keywordtype">int</span> highlight);
<a name="l00218"></a>00218 
<a name="l00219"></a>00219   <span class="comment">// Properties used to control the appearance of selected objects and</span>
<a name="l00220"></a>00220   <span class="comment">// the manipulator in general.</span>
<a name="l00221"></a><a class="code" href="a00319.html#c17bb5b64b9d36a27c8ee6016b38a19d">00221</a>   <a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>   *Property;
<a name="l00222"></a><a class="code" href="a00319.html#9c0df62753f1525ddf452b149422093c">00222</a>   <a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>   *SelectedProperty;
<a name="l00223"></a><a class="code" href="a00319.html#08eb223e3336d9314d18f19ab27fd86f">00223</a>   <a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>   *ActiveProperty;
<a name="l00224"></a>00224   <span class="keywordtype">void</span>           CreateDefaultProperties();
<a name="l00225"></a>00225   
<a name="l00226"></a>00226   <span class="comment">// Controlling vars</span>
<a name="l00227"></a><a class="code" href="a00319.html#368df7c769b8ebe0574465e91bcd45ef">00227</a>   <span class="keywordtype">int</span>             ProjectionNormal;
<a name="l00228"></a><a class="code" href="a00319.html#bf3ab638f1e8dcd39be833690696c99a">00228</a>   <span class="keywordtype">double</span>          ProjectionPosition;
<a name="l00229"></a><a class="code" href="a00319.html#4c80aaff328eb1d2f70e7915149ca637">00229</a>   <span class="keywordtype">int</span>             ProjectToPlane;
<a name="l00230"></a><a class="code" href="a00319.html#727512974f905b793770380f5a2afc28">00230</a>   <a class="code" href="a01224.html" title="perform various plane computations">vtkPlane</a>        *ObliquePlane;
<a name="l00231"></a>00231 
<a name="l00232"></a><a class="code" href="a00319.html#a8fef06ced6cf0151cd2d95b7da5295d">00232</a>   <a class="code" href="a01225.html" title="maintain a list of planes">vtkPlaneCollection</a> *BoundingPlanes;
<a name="l00233"></a>00233 
<a name="l00234"></a>00234   <span class="comment">// Internal method for computing 3D location from 2D screen position</span>
<a name="l00235"></a>00235   <span class="keywordtype">int</span> GetIntersectionPosition( <span class="keywordtype">double</span> eventPos[2],
<a name="l00236"></a>00236                                <span class="keywordtype">double</span> worldPos[3],
<a name="l00237"></a>00237                                <span class="keywordtype">double</span> tolerance = 0.0,
<a name="l00238"></a>00238                                <a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a> *renderer=0);
<a name="l00239"></a>00239 
<a name="l00240"></a>00240   <span class="comment">// Internal method for getting the project normal as a vector</span>
<a name="l00241"></a>00241   <span class="keywordtype">void</span> GetProjectionNormal( <span class="keywordtype">double</span> normal[3] );
<a name="l00242"></a>00242   
<a name="l00243"></a>00243   <span class="comment">// Internal method for getting the origin of the </span>
<a name="l00244"></a>00244   <span class="comment">// constraining plane as a 3-tuple</span>
<a name="l00245"></a>00245   <span class="keywordtype">void</span> GetProjectionOrigin( <span class="keywordtype">double</span> origin[3] );
<a name="l00246"></a>00246   
<a name="l00247"></a>00247   
<a name="l00248"></a>00248   
<a name="l00249"></a>00249   <span class="comment">// Distance between where the mouse event happens and where the</span>
<a name="l00250"></a>00250   <span class="comment">// widget is focused - maintain this distance during interaction.</span>
<a name="l00251"></a><a class="code" href="a00319.html#ff3d9a9eb9c959ce7b81be8aa248745e">00251</a>   <span class="keywordtype">double</span> InteractionOffset[2];
<a name="l00252"></a>00252   
<a name="l00253"></a>00253 <span class="keyword">private</span>:
<a name="l00254"></a>00254   <a class="code" href="a00319.html" title="point representation constrained to a 2D plane">vtkConstrainedPointHandleRepresentation</a>(<span class="keyword">const</span> <a class="code" href="a00319.html" title="point representation constrained to a 2D plane">vtkConstrainedPointHandleRepresentation</a>&amp;);  <span class="comment">//Not implemented</span>
<a name="l00255"></a>00255   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00319.html" title="point representation constrained to a 2D plane">vtkConstrainedPointHandleRepresentation</a>&amp;);  <span class="comment">//Not implemented</span>
<a name="l00256"></a>00256 };
<a name="l00257"></a>00257 
<a name="l00258"></a>00258 <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&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>