Sophie

Sophie

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

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/IO/vtkVolume16Reader.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/IO/vtkVolume16Reader.h</h1><a href="a03214.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: vtkVolume16Reader.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="l00050"></a>00050 <span class="preprocessor">#ifndef __vtkVolume16Reader_h</span>
<a name="l00051"></a>00051 <span class="preprocessor"></span><span class="preprocessor">#define __vtkVolume16Reader_h</span>
<a name="l00052"></a>00052 <span class="preprocessor"></span>
<a name="l00053"></a>00053 <span class="preprocessor">#include "<a class="code" href="a03215.html">vtkVolumeReader.h</a>"</span>
<a name="l00054"></a>00054 
<a name="l00055"></a>00055 <span class="keyword">class </span><a class="code" href="a01723.html" title="describes linear transformations via a 4x4 matrix">vtkTransform</a>;
<a name="l00056"></a>00056 <span class="keyword">class </span><a class="code" href="a01784.html" title="dynamic, self-adjusting array of unsigned char">vtkUnsignedCharArray</a>;
<a name="l00057"></a>00057 <span class="keyword">class </span><a class="code" href="a01788.html" title="dynamic, self-adjusting array of unsigned short">vtkUnsignedShortArray</a>;
<a name="l00058"></a>00058 
<a name="l00059"></a><a class="code" href="a03214.html#99280a3ed395250e6a9198ac32bb5d49">00059</a> <span class="preprocessor">#define VTK_FILE_BYTE_ORDER_BIG_ENDIAN 0</span>
<a name="l00060"></a><a class="code" href="a03214.html#5d017e76bc7beb1d7df49b9d4e6e9a90">00060</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_FILE_BYTE_ORDER_LITTLE_ENDIAN 1</span>
<a name="l00061"></a>00061 <span class="preprocessor"></span>
<a name="l00062"></a><a class="code" href="a01840.html">00062</a> <span class="keyword">class </span><a class="code" href="a02170.html#aab695c81fb47ab75c91e111e17cbe2c">VTK_IO_EXPORT</a> <a class="code" href="a01840.html" title="read 16 bit image files">vtkVolume16Reader</a> : <span class="keyword">public</span> <a class="code" href="a01853.html" title="read image files">vtkVolumeReader</a>
<a name="l00063"></a>00063 {
<a name="l00064"></a>00064 <span class="keyword">public</span>:
<a name="l00065"></a><a class="code" href="a01840.html#d3ff5cc7a9d78af809d591d84826d847">00065</a>   vtkTypeRevisionMacro(<a class="code" href="a01840.html" title="read 16 bit image files">vtkVolume16Reader</a>,<a class="code" href="a01853.html" title="read image files">vtkVolumeReader</a>);
<a name="l00066"></a>00066   <span class="keywordtype">void</span> <a class="code" href="a01853.html#bcb59b5e3efdeb7be104dd769e174051">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="l00071"></a>00071   <span class="keyword">static</span> <a class="code" href="a01840.html" title="read 16 bit image files">vtkVolume16Reader</a> *<a class="code" href="a00101.html#06d80d8d4aa1a4856135fa003845be82">New</a>();
<a name="l00072"></a>00072 
<a name="l00074"></a>00074 
<a name="l00075"></a>00075   vtkSetVector2Macro(DataDimensions,<span class="keywordtype">int</span>);
<a name="l00076"></a>00076   vtkGetVectorMacro(DataDimensions,<span class="keywordtype">int</span>,2);
<a name="l00078"></a>00078 
<a name="l00080"></a>00080 
<a name="l00082"></a>00082   vtkSetMacro(DataMask,<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span>);
<a name="l00083"></a>00083   vtkGetMacro(DataMask,<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span>);
<a name="l00085"></a>00085 
<a name="l00087"></a>00087 
<a name="l00088"></a>00088   vtkSetMacro(HeaderSize,<span class="keywordtype">int</span>);
<a name="l00089"></a>00089   vtkGetMacro(HeaderSize,<span class="keywordtype">int</span>);
<a name="l00091"></a>00091 
<a name="l00093"></a>00093 
<a name="l00103"></a>00103   <span class="keywordtype">void</span> SetDataByteOrderToBigEndian();
<a name="l00104"></a>00104   <span class="keywordtype">void</span> SetDataByteOrderToLittleEndian();
<a name="l00105"></a>00105   <span class="keywordtype">int</span> GetDataByteOrder();
<a name="l00106"></a>00106   <span class="keywordtype">void</span> SetDataByteOrder(<span class="keywordtype">int</span>);
<a name="l00107"></a>00107   <span class="keyword">const</span> <span class="keywordtype">char</span> *GetDataByteOrderAsString();
<a name="l00109"></a>00109 
<a name="l00111"></a>00111 
<a name="l00112"></a>00112   vtkSetMacro(SwapBytes,<span class="keywordtype">int</span>);
<a name="l00113"></a>00113   vtkGetMacro(SwapBytes,<span class="keywordtype">int</span>);
<a name="l00114"></a>00114   vtkBooleanMacro(SwapBytes,<span class="keywordtype">int</span>);
<a name="l00116"></a>00116 
<a name="l00118"></a>00118 
<a name="l00121"></a>00121   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetTransform(<a class="code" href="a01723.html" title="describes linear transformations via a 4x4 matrix">vtkTransform</a>*);
<a name="l00122"></a>00122   vtkGetObjectMacro(<a class="code" href="a03761.html#88ade42854f67d6297898362e17a515fff3c18ad1157bfb059d04b59dd18eae9">Transform</a>,<a class="code" href="a01723.html" title="describes linear transformations via a 4x4 matrix">vtkTransform</a>);
<a name="l00124"></a>00124 
<a name="l00126"></a>00126   <a class="code" href="a00751.html" title="topologically and geometrically regular array of data">vtkImageData</a> *<a class="code" href="a01853.html#602cb7cc40baec95875ec249a046294f">GetImage</a>(<span class="keywordtype">int</span> ImageNumber);
<a name="l00127"></a>00127 
<a name="l00128"></a>00128 <span class="keyword">protected</span>:
<a name="l00129"></a>00129   <a class="code" href="a01840.html" title="read 16 bit image files">vtkVolume16Reader</a>();
<a name="l00130"></a>00130   ~<a class="code" href="a01840.html" title="read 16 bit image files">vtkVolume16Reader</a>();
<a name="l00131"></a>00131 
<a name="l00132"></a>00132   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00727.html#ddc9f91ebe9386c31617c3e12166e10e">RequestData</a>(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *, <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> **, <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *);
<a name="l00133"></a>00133   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00727.html#b739abd84881f7e31a8a382bf5a06a91">RequestInformation</a>(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *, <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> **, <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *);
<a name="l00134"></a><a class="code" href="a01840.html#8a6647508c98716a86e94ed85acdfbd2">00134</a>   <span class="keywordtype">int</span>   DataDimensions[2];
<a name="l00135"></a><a class="code" href="a01840.html#c7ff6b9d4ea3a7c402626b87bb552520">00135</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> DataMask;
<a name="l00136"></a><a class="code" href="a01840.html#4be172d6c131d445ba5cd7da02c8ea92">00136</a>   <span class="keywordtype">int</span>   SwapBytes;
<a name="l00137"></a><a class="code" href="a01840.html#6a9759b10b422cf0e74e563bc417e11a">00137</a>   <span class="keywordtype">int</span>   HeaderSize;
<a name="l00138"></a><a class="code" href="a01840.html#634c94ff7ae4faa926bac8e3624d2f89">00138</a>   <a class="code" href="a01723.html" title="describes linear transformations via a 4x4 matrix">vtkTransform</a> *<a class="code" href="a03761.html#88ade42854f67d6297898362e17a515fff3c18ad1157bfb059d04b59dd18eae9">Transform</a>;
<a name="l00139"></a>00139 
<a name="l00140"></a>00140   <span class="keywordtype">void</span> TransformSlice (<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> *slice, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> *pixels, <span class="keywordtype">int</span> k, <span class="keywordtype">int</span> dimensions[3], <span class="keywordtype">int</span> bounds[3]);
<a name="l00141"></a>00141   <span class="keywordtype">void</span> ComputeTransformedDimensions(<span class="keywordtype">int</span> dimensions[3]);
<a name="l00142"></a>00142   <span class="keywordtype">void</span> ComputeTransformedBounds(<span class="keywordtype">int</span> bounds[6]);
<a name="l00143"></a>00143   <span class="keywordtype">void</span> ComputeTransformedSpacing(<span class="keywordtype">double</span> Spacing[3]);
<a name="l00144"></a>00144   <span class="keywordtype">void</span> ComputeTransformedOrigin(<span class="keywordtype">double</span> origin[3]);
<a name="l00145"></a>00145   <span class="keywordtype">void</span> AdjustSpacingAndOrigin(<span class="keywordtype">int</span> dimensions[3], <span class="keywordtype">double</span> Spacing[3], <span class="keywordtype">double</span> origin[3]);
<a name="l00146"></a>00146   <span class="keywordtype">void</span> ReadImage(<span class="keywordtype">int</span> ImageNumber, <a class="code" href="a01788.html" title="dynamic, self-adjusting array of unsigned short">vtkUnsignedShortArray</a> *);
<a name="l00147"></a>00147   <span class="keywordtype">void</span> ReadVolume(<span class="keywordtype">int</span> FirstImage, <span class="keywordtype">int</span> LastImage, <a class="code" href="a01788.html" title="dynamic, self-adjusting array of unsigned short">vtkUnsignedShortArray</a> *);
<a name="l00148"></a>00148   <span class="keywordtype">int</span> Read16BitImage(FILE *fp, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> *pixels, <span class="keywordtype">int</span> xsize, <span class="keywordtype">int</span> ysize, 
<a name="l00149"></a>00149                      <span class="keywordtype">int</span> skip, <span class="keywordtype">int</span> swapBytes);
<a name="l00150"></a>00150 
<a name="l00151"></a>00151 <span class="keyword">private</span>:
<a name="l00152"></a>00152   <a class="code" href="a01840.html" title="read 16 bit image files">vtkVolume16Reader</a>(<span class="keyword">const</span> <a class="code" href="a01840.html" title="read 16 bit image files">vtkVolume16Reader</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00153"></a>00153   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01840.html" title="read 16 bit image files">vtkVolume16Reader</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00154"></a>00154 };
<a name="l00155"></a>00155 
<a name="l00156"></a>00156 <span class="preprocessor">#endif</span>
<a name="l00157"></a>00157 <span class="preprocessor"></span>
<a name="l00158"></a>00158 
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:41 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>