Sophie

Sophie

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

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/Rendering/vtkAbstractPicker.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/Rendering/vtkAbstractPicker.h</h1><a href="a03359.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: vtkAbstractPicker.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="l00057"></a>00057 <span class="preprocessor">#ifndef __vtkAbstractPicker_h</span>
<a name="l00058"></a>00058 <span class="preprocessor"></span><span class="preprocessor">#define __vtkAbstractPicker_h</span>
<a name="l00059"></a>00059 <span class="preprocessor"></span>
<a name="l00060"></a>00060 <span class="preprocessor">#include "<a class="code" href="a02079.html">vtkObject.h</a>"</span>
<a name="l00061"></a>00061 
<a name="l00062"></a>00062 <span class="keyword">class </span><a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a>;
<a name="l00063"></a>00063 <span class="keyword">class </span><a class="code" href="a01317.html" title="abstract superclass for all actors, volumes and annotations">vtkProp</a>;
<a name="l00064"></a>00064 <span class="keyword">class </span><a class="code" href="a01321.html" title="a list of Props">vtkPropCollection</a>;
<a name="l00065"></a>00065 
<a name="l00066"></a><a class="code" href="a00086.html">00066</a> <span class="keyword">class </span><a class="code" href="a02170.html#4019f67b2e7d601f2cf984e448308dbb">VTK_RENDERING_EXPORT</a> <a class="code" href="a00086.html" title="define API for picking subclasses">vtkAbstractPicker</a> : <span class="keyword">public</span> <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>
<a name="l00067"></a>00067 {
<a name="l00068"></a>00068 <span class="keyword">public</span>:
<a name="l00069"></a><a class="code" href="a00086.html#da5971dd0e28a38064b2cc5617370cf4">00069</a>   vtkTypeRevisionMacro(<a class="code" href="a00086.html" title="define API for picking subclasses">vtkAbstractPicker</a>,<a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>);
<a name="l00070"></a>00070   <span class="keywordtype">void</span> <a class="code" href="a01084.html#bf3dbb4154289b56a12483eee3866263">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00071"></a>00071 
<a name="l00073"></a>00073 
<a name="l00074"></a>00074   vtkGetObjectMacro(Renderer,<a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a>);
<a name="l00076"></a>00076 
<a name="l00078"></a>00078 
<a name="l00080"></a>00080   vtkGetVectorMacro(SelectionPoint,<span class="keywordtype">double</span>,3);
<a name="l00082"></a>00082 
<a name="l00084"></a>00084 
<a name="l00085"></a>00085   vtkGetVectorMacro(PickPosition,<span class="keywordtype">double</span>,3);
<a name="l00087"></a>00087 
<a name="l00089"></a>00089 
<a name="l00093"></a>00093   <span class="keyword">virtual</span> <span class="keywordtype">int</span> Pick(<span class="keywordtype">double</span> selectionX, <span class="keywordtype">double</span> selectionY, <span class="keywordtype">double</span> selectionZ, 
<a name="l00094"></a>00094                    <a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a> *renderer) = 0;
<a name="l00096"></a>00096 
<a name="l00098"></a>00098 
<a name="l00101"></a><a class="code" href="a00086.html#d63fe85335f93d041358eec7538c940c">00101</a>   <span class="keywordtype">int</span> Pick(<span class="keywordtype">double</span> selectionPt[3], <a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a> *ren)
<a name="l00102"></a>00102     {<span class="keywordflow">return</span> this-&gt;Pick(selectionPt[0],selectionPt[1],selectionPt[2],ren);};  
<a name="l00104"></a>00104 
<a name="l00106"></a>00106 
<a name="l00109"></a>00109   vtkSetMacro(PickFromList,<span class="keywordtype">int</span>);
<a name="l00110"></a>00110   vtkGetMacro(PickFromList,<span class="keywordtype">int</span>);
<a name="l00111"></a>00111   vtkBooleanMacro(PickFromList,<span class="keywordtype">int</span>);
<a name="l00113"></a>00113 
<a name="l00115"></a>00115   <span class="keywordtype">void</span> InitializePickList();
<a name="l00116"></a>00116 
<a name="l00118"></a>00118   <span class="keywordtype">void</span> AddPickList(<a class="code" href="a01317.html" title="abstract superclass for all actors, volumes and annotations">vtkProp</a> *);
<a name="l00119"></a>00119 
<a name="l00121"></a>00121   <span class="keywordtype">void</span> DeletePickList(<a class="code" href="a01317.html" title="abstract superclass for all actors, volumes and annotations">vtkProp</a> *);
<a name="l00122"></a>00122   
<a name="l00124"></a><a class="code" href="a00086.html#ca44b4895bdbdd6834789febdeeadbfd">00124</a>   <a class="code" href="a01321.html" title="a list of Props">vtkPropCollection</a> *GetPickList() {<span class="keywordflow">return</span> this-&gt;PickList;}
<a name="l00125"></a>00125 
<a name="l00126"></a>00126 <span class="keyword">protected</span>:
<a name="l00127"></a>00127   <a class="code" href="a00086.html" title="define API for picking subclasses">vtkAbstractPicker</a>();
<a name="l00128"></a>00128   ~<a class="code" href="a00086.html" title="define API for picking subclasses">vtkAbstractPicker</a>();
<a name="l00129"></a>00129 
<a name="l00130"></a>00130   <span class="keyword">virtual</span> <span class="keywordtype">void</span> Initialize();
<a name="l00131"></a>00131 
<a name="l00132"></a><a class="code" href="a00086.html#07263b8d70850eee6a4ef6c9c57286b7">00132</a>   <a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a> *Renderer; <span class="comment">//pick occurred in this renderer's viewport</span>
<a name="l00133"></a><a class="code" href="a00086.html#451dd4decb9d42c4784491eeed58c63e">00133</a>   <span class="keywordtype">double</span> SelectionPoint[3]; <span class="comment">//selection point in window (pixel) coordinates</span>
<a name="l00134"></a><a class="code" href="a00086.html#b6c64a7b863421550f59e25a30d326fb">00134</a>   <span class="keywordtype">double</span> PickPosition[3]; <span class="comment">//selection point in world coordinates</span>
<a name="l00135"></a>00135   
<a name="l00136"></a>00136   <span class="comment">// use the following to control picking from a list</span>
<a name="l00137"></a><a class="code" href="a00086.html#06c12e7ccb45024560ba36d6516d090b">00137</a>   <span class="keywordtype">int</span> PickFromList;
<a name="l00138"></a><a class="code" href="a00086.html#e264a3f7d8d77f1b507ec003b19020a7">00138</a>   <a class="code" href="a01321.html" title="a list of Props">vtkPropCollection</a> *PickList;
<a name="l00139"></a>00139 <span class="keyword">private</span>:
<a name="l00140"></a>00140   <a class="code" href="a00086.html" title="define API for picking subclasses">vtkAbstractPicker</a>(<span class="keyword">const</span> <a class="code" href="a00086.html" title="define API for picking subclasses">vtkAbstractPicker</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00141"></a>00141   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00086.html" title="define API for picking subclasses">vtkAbstractPicker</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00142"></a>00142 };
<a name="l00143"></a>00143 
<a name="l00144"></a>00144 <span class="preprocessor">#endif</span>
<a name="l00145"></a>00145 <span class="preprocessor"></span>
<a name="l00146"></a>00146 
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:44 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>