Sophie

Sophie

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

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/vtkRectilinearWipeRepresentation.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/vtkRectilinearWipeRepresentation.h</h1><a href="a03726.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: vtkRectilinearWipeRepresentation.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="l00041"></a>00041 <span class="preprocessor">#ifndef __vtkRectilinearWipeRepresentation_h</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span><span class="preprocessor">#define __vtkRectilinearWipeRepresentation_h</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span>
<a name="l00044"></a>00044 <span class="preprocessor">#include "<a class="code" href="a03750.html">vtkWidgetRepresentation.h</a>"</span>
<a name="l00045"></a>00045 
<a name="l00046"></a>00046 <span class="keyword">class </span><a class="code" href="a00818.html" title="make a rectilinear combination of two images.">vtkImageRectilinearWipe</a>;
<a name="l00047"></a>00047 <span class="keyword">class </span><a class="code" href="a00725.html" title="draw an image (data &amp;amp; properties) in a rendered 3D scene">vtkImageActor</a>;
<a name="l00048"></a>00048 <span class="keyword">class </span><a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>;
<a name="l00049"></a>00049 <span class="keyword">class </span><a class="code" href="a00242.html" title="object to represent cell connectivity">vtkCellArray</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="a01323.html" title="represent surface properties of a 2D image">vtkProperty2D</a>;
<a name="l00052"></a>00052 <span class="keyword">class </span><a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a>;
<a name="l00053"></a>00053 <span class="keyword">class </span><a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a>;
<a name="l00054"></a>00054 
<a name="l00055"></a>00055 
<a name="l00056"></a><a class="code" href="a01471.html">00056</a> <span class="keyword">class </span><a class="code" href="a02170.html#09e5ba6764f54642494e26907662d55f">VTK_WIDGETS_EXPORT</a> <a class="code" href="a01471.html" title="represent a vtkRectilinearWipeWidget">vtkRectilinearWipeRepresentation</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="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="a01471.html" title="represent a vtkRectilinearWipeWidget">vtkRectilinearWipeRepresentation</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="a01471.html#a41d67a1853d4006dd1c66cf562b5eaf">00064</a>   vtkTypeRevisionMacro(<a class="code" href="a01471.html" title="represent a vtkRectilinearWipeWidget">vtkRectilinearWipeRepresentation</a>,<a class="code" href="a01877.html" title="abstract class defines interface between the widget and widget representation classes...">vtkWidgetRepresentation</a>);
<a name="l00065"></a>00065   <span class="keywordtype">void</span> <a class="code" href="a01877.html#dea6d0138ff965f86cac0a91553ad78f">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="l00070"></a>00070   <span class="keywordtype">void</span> SetRectilinearWipe(<a class="code" href="a00818.html" title="make a rectilinear combination of two images.">vtkImageRectilinearWipe</a> *wipe);
<a name="l00071"></a>00071   vtkGetObjectMacro(RectilinearWipe,<a class="code" href="a00818.html" title="make a rectilinear combination of two images.">vtkImageRectilinearWipe</a>);
<a name="l00073"></a>00073 
<a name="l00075"></a>00075 
<a name="l00076"></a>00076   <span class="keywordtype">void</span> SetImageActor(<a class="code" href="a00725.html" title="draw an image (data &amp;amp; properties) in a rendered 3D scene">vtkImageActor</a> *imageActor);
<a name="l00077"></a>00077   vtkGetObjectMacro(ImageActor,<a class="code" href="a00725.html" title="draw an image (data &amp;amp; properties) in a rendered 3D scene">vtkImageActor</a>);
<a name="l00079"></a>00079   
<a name="l00081"></a>00081 
<a name="l00084"></a>00084   vtkSetClampMacro(Tolerance,<span class="keywordtype">int</span>,1,10);
<a name="l00085"></a>00085   vtkGetMacro(Tolerance,<span class="keywordtype">int</span>);
<a name="l00087"></a>00087 
<a name="l00089"></a>00089 
<a name="l00091"></a>00091   vtkGetObjectMacro(Property,<a class="code" href="a01323.html" title="represent surface properties of a 2D image">vtkProperty2D</a>);
<a name="l00093"></a>00093 
<a name="l00095"></a>00095 
<a name="l00098"></a>00098   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01877.html#a7dfbf5a2b39487c072266e0e1520ec7">BuildRepresentation</a>();
<a name="l00099"></a>00099   <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="l00100"></a>00100   <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="l00101"></a>00101   <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="l00103"></a>00103 
<a name="l00104"></a>00104 <span class="comment">//BTX</span>
<a name="l00105"></a>00105   <span class="comment">// Enums define the state of the prop relative to the mouse pointer</span>
<a name="l00106"></a>00106   <span class="comment">// position. Used by ComputeInteractionState() to communicate with the</span>
<a name="l00107"></a>00107   <span class="comment">// widget.</span>
<a name="l00108"></a><a class="code" href="a01471.html#955011a6b97822405e19a8d547f7fc9d">00108</a>   <span class="keyword">enum</span> <a class="code" href="a01471.html#955011a6b97822405e19a8d547f7fc9d">_InteractionState</a>
<a name="l00109"></a>00109   {
<a name="l00110"></a><a class="code" href="a01471.html#955011a6b97822405e19a8d547f7fc9de6920cae775e64733185f7101c046cc8">00110</a>     Outside=0,
<a name="l00111"></a><a class="code" href="a01471.html#955011a6b97822405e19a8d547f7fc9d2108194320ab97e89e538318076af9c5">00111</a>     MovingHPane,
<a name="l00112"></a><a class="code" href="a01471.html#955011a6b97822405e19a8d547f7fc9d5573e3f962c888237755eaec81d016f2">00112</a>     MovingVPane,
<a name="l00113"></a><a class="code" href="a01471.html#955011a6b97822405e19a8d547f7fc9d6381770177e55a6701795f2ce1f4f033">00113</a>     MovingCenter
<a name="l00114"></a>00114   };
<a name="l00115"></a>00115 <span class="comment">//ETX</span>
<a name="l00116"></a>00116 
<a name="l00118"></a>00118 
<a name="l00119"></a>00119   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01877.html#deb781ee0b2e05240de3b1d099346714">GetActors2D</a>(<a class="code" href="a01321.html" title="a list of Props">vtkPropCollection</a> *);
<a name="l00120"></a>00120   <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="l00121"></a>00121   <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="l00122"></a>00122   <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="l00123"></a>00123   <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="l00124"></a>00124   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01877.html#8b7761451b47996f96aacab32882ca25">HasTranslucentPolygonalGeometry</a>();
<a name="l00126"></a>00126   
<a name="l00127"></a>00127 <span class="keyword">protected</span>:
<a name="l00128"></a>00128   <a class="code" href="a01471.html" title="represent a vtkRectilinearWipeWidget">vtkRectilinearWipeRepresentation</a>();
<a name="l00129"></a>00129   ~<a class="code" href="a01471.html" title="represent a vtkRectilinearWipeWidget">vtkRectilinearWipeRepresentation</a>();
<a name="l00130"></a>00130 
<a name="l00131"></a>00131   <span class="comment">// Instances that this class manipulates</span>
<a name="l00132"></a><a class="code" href="a01471.html#3d4d89e9433a5955ff592e26bba195d0">00132</a>   <a class="code" href="a00818.html" title="make a rectilinear combination of two images.">vtkImageRectilinearWipe</a> *RectilinearWipe;
<a name="l00133"></a><a class="code" href="a01471.html#94bb9cfb084f0fd77cc654ff589ec50c">00133</a>   <a class="code" href="a00725.html" title="draw an image (data &amp;amp; properties) in a rendered 3D scene">vtkImageActor</a>           *ImageActor;
<a name="l00134"></a>00134 
<a name="l00135"></a>00135   <span class="comment">// The pick tolerance of the widget in pixels</span>
<a name="l00136"></a><a class="code" href="a01471.html#53008ed7a8ce0bb0d7f55a96ab991dfa">00136</a>   <span class="keywordtype">int</span> Tolerance;
<a name="l00137"></a>00137   
<a name="l00138"></a>00138   <span class="comment">// This is used to track the beginning of interaction with the prop</span>
<a name="l00139"></a><a class="code" href="a01471.html#494f295ca62f27d7644a5df44ec2d5fb">00139</a>   <span class="keywordtype">double</span> StartWipePosition[2];
<a name="l00140"></a>00140 
<a name="l00141"></a>00141   <span class="comment">// Indicates which part of widget is currently active based on the</span>
<a name="l00142"></a>00142   <span class="comment">// state of the instance of the vtkImageRectilinearWipe.</span>
<a name="l00143"></a><a class="code" href="a01471.html#dc8a19380cc40fee2d3dd1d0af769763">00143</a>   <span class="keywordtype">int</span>  ActiveParts; 
<a name="l00144"></a>00144 
<a name="l00145"></a>00145   <span class="comment">// Geometric structure of widget</span>
<a name="l00146"></a><a class="code" href="a01471.html#bdd2d0b32ad9ff1b2606ea397e8da0ed">00146</a>   <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>           *Points; <span class="comment">// The nine points defining the widget geometry</span>
<a name="l00147"></a><a class="code" href="a01471.html#c7f4ef6c41d848354337fd3d3d5d148e">00147</a>   <a class="code" href="a00242.html" title="object to represent cell connectivity">vtkCellArray</a>        *Lines;  <span class="comment">// lines defining the boundary</span>
<a name="l00148"></a><a class="code" href="a01471.html#a31b207efdf66a494654bfc0291b06bb">00148</a>   <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a>         *Wipe;
<a name="l00149"></a><a class="code" href="a01471.html#405bee26b559d5a023b479710bf846c3">00149</a>   <a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a> *WipeMapper;
<a name="l00150"></a><a class="code" href="a01471.html#6379d715a4c172a8a462d076e5ead81d">00150</a>   <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a>          *WipeActor;
<a name="l00151"></a><a class="code" href="a01471.html#2838bcb5eafb7c01fb42aa4c0b211c4e">00151</a>   <a class="code" href="a01323.html" title="represent surface properties of a 2D image">vtkProperty2D</a>       *Property;
<a name="l00152"></a>00152 
<a name="l00153"></a>00153   <span class="comment">// These are used to track the coordinates (in display coordinate system)</span>
<a name="l00154"></a>00154   <span class="comment">// of the mid-edge and center point of the widget</span>
<a name="l00155"></a><a class="code" href="a01471.html#a28a153041c3564e5bdeab5aeb0502c2">00155</a>   <span class="keywordtype">double</span> DP4[3];
<a name="l00156"></a><a class="code" href="a01471.html#ae5c417a2b91415faf235a483fef9e08">00156</a>   <span class="keywordtype">double</span> DP5[3];
<a name="l00157"></a><a class="code" href="a01471.html#97749810ef36ae4d8125ad0d30663e47">00157</a>   <span class="keywordtype">double</span> DP6[3];
<a name="l00158"></a><a class="code" href="a01471.html#5cc0565c662d782b11273c1b55df08e5">00158</a>   <span class="keywordtype">double</span> DP7[3];
<a name="l00159"></a><a class="code" href="a01471.html#259591c6e36864777ff9fadf4431775e">00159</a>   <span class="keywordtype">double</span> DP8[3];
<a name="l00160"></a>00160 
<a name="l00161"></a><a class="code" href="a01471.html#11151f86a25aa511d63b3b9436ea4272">00161</a>   <span class="keywordtype">int</span> Dims[3]; <span class="comment">// Dimensions of the input image to the wipe</span>
<a name="l00162"></a><a class="code" href="a01471.html#fb97b36f8999f75b7b68dcd8bf3a4c87">00162</a>   <span class="keywordtype">int</span> I; <span class="comment">//the i-j define the plane that is being displayed</span>
<a name="l00163"></a><a class="code" href="a01471.html#ccac5eb95c9994a2f5f750126f2afa70">00163</a>   <span class="keywordtype">int</span> J;
<a name="l00164"></a>00164   
<a name="l00165"></a>00165 <span class="keyword">private</span>:
<a name="l00166"></a>00166   <a class="code" href="a01471.html" title="represent a vtkRectilinearWipeWidget">vtkRectilinearWipeRepresentation</a>(<span class="keyword">const</span> <a class="code" href="a01471.html" title="represent a vtkRectilinearWipeWidget">vtkRectilinearWipeRepresentation</a>&amp;);  <span class="comment">//Not implemented</span>
<a name="l00167"></a>00167   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01471.html" title="represent a vtkRectilinearWipeWidget">vtkRectilinearWipeRepresentation</a>&amp;);  <span class="comment">//Not implemented</span>
<a name="l00168"></a>00168 };
<a name="l00169"></a>00169 
<a name="l00170"></a>00170 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:54 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>