Sophie

Sophie

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

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/vtkImageViewer2.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/vtkImageViewer2.h</h1><a href="a03419.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: vtkImageViewer2.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 __vtkImageViewer2_h</span>
<a name="l00060"></a>00060 <span class="preprocessor"></span><span class="preprocessor">#define __vtkImageViewer2_h</span>
<a name="l00061"></a>00061 <span class="preprocessor"></span>
<a name="l00062"></a>00062 <span class="preprocessor">#include "<a class="code" href="a02079.html">vtkObject.h</a>"</span>
<a name="l00063"></a>00063 
<a name="l00064"></a>00064 <span class="keyword">class </span><a class="code" href="a00102.html" title="Proxy object to connect input/output ports.">vtkAlgorithmOutput</a>;
<a name="l00065"></a>00065 <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="l00066"></a>00066 <span class="keyword">class </span><a class="code" href="a00751.html" title="topologically and geometrically regular array of data">vtkImageData</a>;
<a name="l00067"></a>00067 <span class="keyword">class </span><a class="code" href="a00794.html" title="map the input image through a lookup table and window / level it">vtkImageMapToWindowLevelColors</a>;
<a name="l00068"></a>00068 <span class="keyword">class </span><a class="code" href="a00906.html" title="interactive manipulation of the camera specialized for images">vtkInteractorStyleImage</a>;
<a name="l00069"></a>00069 <span class="keyword">class </span><a class="code" href="a01489.html" title="create a window for renderers to draw into">vtkRenderWindow</a>;
<a name="l00070"></a>00070 <span class="keyword">class </span><a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a>;
<a name="l00071"></a>00071 <span class="keyword">class </span><a class="code" href="a01491.html" title="platform-independent render window interaction including picking and frame rate control...">vtkRenderWindowInteractor</a>;
<a name="l00072"></a>00072 
<a name="l00073"></a><a class="code" href="a00848.html">00073</a> <span class="keyword">class </span><a class="code" href="a02170.html#4019f67b2e7d601f2cf984e448308dbb">VTK_RENDERING_EXPORT</a> <a class="code" href="a00848.html" title="Display a 2D image.">vtkImageViewer2</a> : <span class="keyword">public</span> <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a> 
<a name="l00074"></a>00074 {
<a name="l00075"></a>00075 <span class="keyword">public</span>:
<a name="l00076"></a>00076   <span class="keyword">static</span> <a class="code" href="a00848.html" title="Display a 2D image.">vtkImageViewer2</a> *<a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>();
<a name="l00077"></a><a class="code" href="a00848.html#df14e83000bdc0f9a9a1d72860efeba1">00077</a>   vtkTypeRevisionMacro(<a class="code" href="a00848.html" title="Display a 2D image.">vtkImageViewer2</a>,<a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>);
<a name="l00078"></a>00078   <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="l00079"></a>00079 
<a name="l00081"></a>00081   <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *GetWindowName();
<a name="l00082"></a>00082 
<a name="l00084"></a>00084   <span class="keyword">virtual</span> <span class="keywordtype">void</span> Render(<span class="keywordtype">void</span>);
<a name="l00085"></a>00085   
<a name="l00087"></a>00087 
<a name="l00088"></a>00088   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetInput(<a class="code" href="a00751.html" title="topologically and geometrically regular array of data">vtkImageData</a> *in);
<a name="l00089"></a>00089   <span class="keyword">virtual</span> <a class="code" href="a00751.html" title="topologically and geometrically regular array of data">vtkImageData</a> *GetInput();
<a name="l00090"></a>00090   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetInputConnection(<a class="code" href="a00102.html" title="Proxy object to connect input/output ports.">vtkAlgorithmOutput</a>* input);
<a name="l00092"></a>00092   
<a name="l00094"></a>00094 
<a name="l00095"></a>00095   <span class="keyword">enum</span>
<a name="l00096"></a>00096   {
<a name="l00097"></a><a class="code" href="a00848.html#9f9355b3aa31f9601d3c069185051b4b15648d7eb21825f3382dbec35e76d305">00097</a>     SLICE_ORIENTATION_YZ = 0,
<a name="l00098"></a><a class="code" href="a00848.html#9f9355b3aa31f9601d3c069185051b4b57053851d5f5f05778eebe377cb08df6">00098</a>     SLICE_ORIENTATION_XZ = 1,
<a name="l00099"></a><a class="code" href="a00848.html#9f9355b3aa31f9601d3c069185051b4b60833e1655cccd2cb29f591999696016">00099</a>     SLICE_ORIENTATION_XY = 2
<a name="l00100"></a>00100   };
<a name="l00101"></a>00101   <span class="comment">//ETX</span>
<a name="l00102"></a>00102   vtkGetMacro(SliceOrientation, <span class="keywordtype">int</span>);
<a name="l00103"></a>00103   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetSliceOrientation(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2104c110580c6100be1551bd4fdb4518204">orientation</a>);
<a name="l00104"></a><a class="code" href="a00848.html#b77cc4fb9c78fd0a9db30dc30c4c4b6b">00104</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetSliceOrientationToXY()
<a name="l00105"></a>00105     { this-&gt;SetSliceOrientation(<a class="code" href="a00848.html#9f9355b3aa31f9601d3c069185051b4b60833e1655cccd2cb29f591999696016">vtkImageViewer2::SLICE_ORIENTATION_XY</a>); };
<a name="l00106"></a><a class="code" href="a00848.html#7884e143a3a308e0f76b31bcab22b83d">00106</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetSliceOrientationToYZ()
<a name="l00107"></a>00107     { this-&gt;SetSliceOrientation(<a class="code" href="a00848.html#9f9355b3aa31f9601d3c069185051b4b15648d7eb21825f3382dbec35e76d305">vtkImageViewer2::SLICE_ORIENTATION_YZ</a>); };
<a name="l00108"></a><a class="code" href="a00848.html#572e9c20897f50281b8abfb49ae67f17">00108</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetSliceOrientationToXZ()
<a name="l00109"></a>00109     { this-&gt;SetSliceOrientation(<a class="code" href="a00848.html#9f9355b3aa31f9601d3c069185051b4b57053851d5f5f05778eebe377cb08df6">vtkImageViewer2::SLICE_ORIENTATION_XZ</a>); };
<a name="l00111"></a>00111 
<a name="l00113"></a>00113 
<a name="l00115"></a>00115   vtkGetMacro(Slice, <span class="keywordtype">int</span>);
<a name="l00116"></a>00116   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetSlice(<span class="keywordtype">int</span> s);
<a name="l00118"></a>00118 
<a name="l00128"></a>00128   <span class="keyword">virtual</span> <span class="keywordtype">void</span> UpdateDisplayExtent();
<a name="l00129"></a>00129   
<a name="l00131"></a>00131 
<a name="l00133"></a>00133   <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetSliceMin();
<a name="l00134"></a>00134   <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetSliceMax();
<a name="l00135"></a><a class="code" href="a00848.html#7e3cb63b63ad1d1750e7d56b715538fe">00135</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> GetSliceRange(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21076786d084c43d32f242990f932679539">range</a>[2])
<a name="l00136"></a>00136     { this-&gt;GetSliceRange(range[0], range[1]); }
<a name="l00137"></a>00137   <span class="keyword">virtual</span> <span class="keywordtype">void</span> GetSliceRange(<span class="keywordtype">int</span> &amp;min, <span class="keywordtype">int</span> &amp;<a class="code" href="a02864.html#ffe776513b24d84b39af8ab0930fef7f">max</a>);
<a name="l00138"></a>00138   <span class="keyword">virtual</span> <span class="keywordtype">int</span>* GetSliceRange();
<a name="l00140"></a>00140   
<a name="l00142"></a>00142 
<a name="l00143"></a>00143   <span class="keyword">virtual</span> <span class="keywordtype">double</span> GetColorWindow();
<a name="l00144"></a>00144   <span class="keyword">virtual</span> <span class="keywordtype">double</span> GetColorLevel();
<a name="l00145"></a>00145   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetColorWindow(<span class="keywordtype">double</span> s);
<a name="l00146"></a>00146   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetColorLevel(<span class="keywordtype">double</span> s);
<a name="l00148"></a>00148 
<a name="l00150"></a>00150 
<a name="l00151"></a>00151   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetDisplayId(<span class="keywordtype">void</span> *a);
<a name="l00152"></a>00152   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetWindowId(<span class="keywordtype">void</span> *a);
<a name="l00153"></a>00153   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetParentId(<span class="keywordtype">void</span> *a);
<a name="l00155"></a>00155   
<a name="l00157"></a>00157 
<a name="l00158"></a>00158   <span class="keyword">virtual</span> <span class="keywordtype">int</span>* GetPosition();
<a name="l00159"></a>00159   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetPosition(<span class="keywordtype">int</span> a,<span class="keywordtype">int</span> b);
<a name="l00160"></a><a class="code" href="a00848.html#6d9a9bcd8feea546aaac58054e58d4ef">00160</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetPosition(<span class="keywordtype">int</span> a[2]) { this-&gt;SetPosition(a[0],a[1]); }
<a name="l00162"></a>00162   
<a name="l00164"></a>00164 
<a name="l00165"></a>00165   <span class="keyword">virtual</span> <span class="keywordtype">int</span>* GetSize();
<a name="l00166"></a>00166   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetSize(<span class="keywordtype">int</span> a, <span class="keywordtype">int</span> b);
<a name="l00167"></a><a class="code" href="a00848.html#69586f94c1b8641dc6f8b5839e2ef01f">00167</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetSize(<span class="keywordtype">int</span> a[2]) { this-&gt;SetSize(a[0],a[1]); }
<a name="l00169"></a>00169   
<a name="l00171"></a>00171 
<a name="l00173"></a>00173   vtkGetObjectMacro(RenderWindow,<a class="code" href="a01489.html" title="create a window for renderers to draw into">vtkRenderWindow</a>);
<a name="l00174"></a>00174   vtkGetObjectMacro(Renderer, <a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a>);
<a name="l00175"></a>00175   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="l00176"></a>00176   vtkGetObjectMacro(WindowLevel,<a class="code" href="a00794.html" title="map the input image through a lookup table and window / level it">vtkImageMapToWindowLevelColors</a>);
<a name="l00177"></a>00177   vtkGetObjectMacro(InteractorStyle,<a class="code" href="a00906.html" title="interactive manipulation of the camera specialized for images">vtkInteractorStyleImage</a>);
<a name="l00179"></a>00179   
<a name="l00181"></a>00181 
<a name="l00182"></a>00182   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetRenderWindow(<a class="code" href="a01489.html" title="create a window for renderers to draw into">vtkRenderWindow</a> *arg);
<a name="l00183"></a>00183   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetRenderer(<a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a> *arg);
<a name="l00185"></a>00185 
<a name="l00187"></a>00187   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetupInteractor(<a class="code" href="a01491.html" title="platform-independent render window interaction including picking and frame rate control...">vtkRenderWindowInteractor</a>*);
<a name="l00188"></a>00188   
<a name="l00190"></a>00190 
<a name="l00193"></a>00193   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetOffScreenRendering(<span class="keywordtype">int</span>);
<a name="l00194"></a>00194   <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetOffScreenRendering();
<a name="l00195"></a>00195   vtkBooleanMacro(OffScreenRendering,<span class="keywordtype">int</span>);
<a name="l00197"></a>00197 
<a name="l00199"></a>00199   VTK_LEGACY(<span class="keywordtype">int</span> GetWholeZMin());
<a name="l00200"></a>00200 
<a name="l00202"></a>00202   VTK_LEGACY(<span class="keywordtype">int</span> GetWholeZMax());
<a name="l00203"></a>00203 
<a name="l00205"></a>00205   VTK_LEGACY(<span class="keywordtype">int</span> GetZSlice());
<a name="l00206"></a>00206 
<a name="l00208"></a>00208   VTK_LEGACY(<span class="keywordtype">void</span> SetZSlice(<span class="keywordtype">int</span>));
<a name="l00209"></a>00209 
<a name="l00210"></a>00210 <span class="keyword">protected</span>:
<a name="l00211"></a>00211   <a class="code" href="a00848.html" title="Display a 2D image.">vtkImageViewer2</a>();
<a name="l00212"></a>00212   ~<a class="code" href="a00848.html" title="Display a 2D image.">vtkImageViewer2</a>();
<a name="l00213"></a>00213 
<a name="l00214"></a>00214   <span class="keyword">virtual</span> <span class="keywordtype">void</span> InstallPipeline();
<a name="l00215"></a>00215   <span class="keyword">virtual</span> <span class="keywordtype">void</span> UnInstallPipeline();
<a name="l00216"></a>00216 
<a name="l00217"></a><a class="code" href="a00848.html#de53cc483cac40d66d52c6f7ab96a4aa">00217</a>   <a class="code" href="a00794.html" title="map the input image through a lookup table and window / level it">vtkImageMapToWindowLevelColors</a>  *WindowLevel;
<a name="l00218"></a><a class="code" href="a00848.html#990a138d19a390dcdc8e7299a23f6d34">00218</a>   <a class="code" href="a01489.html" title="create a window for renderers to draw into">vtkRenderWindow</a>                 *RenderWindow;
<a name="l00219"></a><a class="code" href="a00848.html#4f12c89ccd01a620138a95d4cd088846">00219</a>   <a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a>                     *Renderer;
<a name="l00220"></a><a class="code" href="a00848.html#688399a9c082ff3b11ce5a0ab5d6d740">00220</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="l00221"></a><a class="code" href="a00848.html#b6c19e808198ae45f0b7afe2b6504540">00221</a>   <a class="code" href="a01491.html" title="platform-independent render window interaction including picking and frame rate control...">vtkRenderWindowInteractor</a>       *Interactor;
<a name="l00222"></a><a class="code" href="a00848.html#dfa946d6a69e7e56ec45713bb8f4e8c8">00222</a>   <a class="code" href="a00906.html" title="interactive manipulation of the camera specialized for images">vtkInteractorStyleImage</a>         *InteractorStyle;
<a name="l00223"></a>00223 
<a name="l00224"></a><a class="code" href="a00848.html#2d33e09e64b3345c52765d61a1c480e7">00224</a>   <span class="keywordtype">int</span> SliceOrientation;
<a name="l00225"></a><a class="code" href="a00848.html#e3cc2fb263e41840b09cfe8d8f1ea5db">00225</a>   <span class="keywordtype">int</span> FirstRender;
<a name="l00226"></a><a class="code" href="a00848.html#f1b8be1b055057c229af9a4d32caf3cd">00226</a>   <span class="keywordtype">int</span> Slice;
<a name="l00227"></a>00227 
<a name="l00228"></a>00228   <span class="keyword">virtual</span> <span class="keywordtype">void</span> UpdateOrientation();
<a name="l00229"></a>00229 
<a name="l00230"></a>00230 <span class="keyword">private</span>:
<a name="l00231"></a>00231   <a class="code" href="a00848.html" title="Display a 2D image.">vtkImageViewer2</a>(<span class="keyword">const</span> <a class="code" href="a00848.html" title="Display a 2D image.">vtkImageViewer2</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00232"></a>00232   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00848.html" title="Display a 2D image.">vtkImageViewer2</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00233"></a>00233 };
<a name="l00234"></a>00234 
<a name="l00235"></a>00235 <span class="preprocessor">#endif</span>
<a name="l00236"></a>00236 <span class="preprocessor"></span>
<a name="l00237"></a>00237 
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:46 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>