Sophie

Sophie

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

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/vtkMINCImageReader.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/vtkMINCImageReader.h</h1><a href="a03154.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: vtkMINCImageReader.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="l00015"></a>00015 <span class="comment">/*=========================================================================</span>
<a name="l00016"></a>00016 <span class="comment"></span>
<a name="l00017"></a>00017 <span class="comment">Copyright (c) 2006 Atamai, Inc.</span>
<a name="l00018"></a>00018 <span class="comment"></span>
<a name="l00019"></a>00019 <span class="comment">Use, modification and redistribution of the software, in source or</span>
<a name="l00020"></a>00020 <span class="comment">binary forms, are permitted provided that the following terms and</span>
<a name="l00021"></a>00021 <span class="comment">conditions are met:</span>
<a name="l00022"></a>00022 <span class="comment"></span>
<a name="l00023"></a>00023 <span class="comment">1) Redistribution of the source code, in verbatim or modified</span>
<a name="l00024"></a>00024 <span class="comment">   form, must retain the above copyright notice, this license,</span>
<a name="l00025"></a>00025 <span class="comment">   the following disclaimer, and any notices that refer to this</span>
<a name="l00026"></a>00026 <span class="comment">   license and/or the following disclaimer.</span>
<a name="l00027"></a>00027 <span class="comment"></span>
<a name="l00028"></a>00028 <span class="comment">2) Redistribution in binary form must include the above copyright</span>
<a name="l00029"></a>00029 <span class="comment">   notice, a copy of this license and the following disclaimer</span>
<a name="l00030"></a>00030 <span class="comment">   in the documentation or with other materials provided with the</span>
<a name="l00031"></a>00031 <span class="comment">   distribution.</span>
<a name="l00032"></a>00032 <span class="comment"></span>
<a name="l00033"></a>00033 <span class="comment">3) Modified copies of the source code must be clearly marked as such,</span>
<a name="l00034"></a>00034 <span class="comment">   and must not be misrepresented as verbatim copies of the source code.</span>
<a name="l00035"></a>00035 <span class="comment"></span>
<a name="l00036"></a>00036 <span class="comment">THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS"</span>
<a name="l00037"></a>00037 <span class="comment">WITHOUT EXPRESSED OR IMPLIED WARRANTY INCLUDING, BUT NOT LIMITED TO,</span>
<a name="l00038"></a>00038 <span class="comment">THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR</span>
<a name="l00039"></a>00039 <span class="comment">PURPOSE.  IN NO EVENT SHALL ANY COPYRIGHT HOLDER OR OTHER PARTY WHO MAY</span>
<a name="l00040"></a>00040 <span class="comment">MODIFY AND/OR REDISTRIBUTE THE SOFTWARE UNDER THE TERMS OF THIS LICENSE</span>
<a name="l00041"></a>00041 <span class="comment">BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES</span>
<a name="l00042"></a>00042 <span class="comment">(INCLUDING, BUT NOT LIMITED TO, LOSS OF DATA OR DATA BECOMING INACCURATE</span>
<a name="l00043"></a>00043 <span class="comment">OR LOSS OF PROFIT OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF</span>
<a name="l00044"></a>00044 <span class="comment">THE USE OR INABILITY TO USE THE SOFTWARE, EVEN IF ADVISED OF THE</span>
<a name="l00045"></a>00045 <span class="comment">POSSIBILITY OF SUCH DAMAGES.</span>
<a name="l00046"></a>00046 <span class="comment"></span>
<a name="l00047"></a>00047 <span class="comment">=========================================================================*/</span>
<a name="l00073"></a>00073 <span class="preprocessor">#ifndef __vtkMINCImageReader_h</span>
<a name="l00074"></a>00074 <span class="preprocessor"></span><span class="preprocessor">#define __vtkMINCImageReader_h</span>
<a name="l00075"></a>00075 <span class="preprocessor"></span>
<a name="l00076"></a>00076 <span class="preprocessor">#include "<a class="code" href="a03136.html">vtkImageReader2.h</a>"</span>
<a name="l00077"></a>00077 
<a name="l00078"></a>00078 <span class="keyword">class </span><a class="code" href="a01619.html" title="Subclass of vtkAbstractArray that holds vtkStdStrings.">vtkStringArray</a>;
<a name="l00079"></a>00079 <span class="keyword">class </span><a class="code" href="a00722.html" title="dynamic, self-adjusting array of vtkIdType">vtkIdTypeArray</a>;
<a name="l00080"></a>00080 <span class="keyword">class </span><a class="code" href="a00436.html" title="dynamic, self-adjusting array of double">vtkDoubleArray</a>;
<a name="l00081"></a>00081 <span class="keyword">class </span><a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a>;
<a name="l00082"></a>00082 
<a name="l00083"></a>00083 <span class="comment">// A special class that holds the attributes</span>
<a name="l00084"></a>00084 <span class="keyword">class </span><a class="code" href="a01043.html" title="A container for a MINC image header.">vtkMINCImageAttributes</a>;
<a name="l00085"></a>00085 
<a name="l00086"></a><a class="code" href="a01044.html">00086</a> <span class="keyword">class </span><a class="code" href="a02170.html#aab695c81fb47ab75c91e111e17cbe2c">VTK_IO_EXPORT</a> <a class="code" href="a01044.html" title="A reader for MINC files.">vtkMINCImageReader</a> : <span class="keyword">public</span> <a class="code" href="a00815.html" title="Superclass of binary file readers.">vtkImageReader2</a>
<a name="l00087"></a>00087 {
<a name="l00088"></a>00088 <span class="keyword">public</span>:
<a name="l00089"></a><a class="code" href="a01044.html#377ddf01647201138d276682a90acbc0">00089</a>   vtkTypeRevisionMacro(<a class="code" href="a01044.html" title="A reader for MINC files.">vtkMINCImageReader</a>,<a class="code" href="a00815.html" title="Superclass of binary file readers.">vtkImageReader2</a>);
<a name="l00090"></a>00090 
<a name="l00091"></a>00091   <span class="keyword">static</span> <a class="code" href="a01044.html" title="A reader for MINC files.">vtkMINCImageReader</a> *<a class="code" href="a00815.html#25a0c83fabafbf8a658f7373ee84986b">New</a>();
<a name="l00092"></a>00092   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00815.html#75a81a26827763bb51f81dbc643da687">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00093"></a>00093 
<a name="l00095"></a>00095   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00815.html#4d5ea8f8521e941560775043236b5920">SetFileName</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>);
<a name="l00096"></a>00096 
<a name="l00098"></a>00098 
<a name="l00099"></a><a class="code" href="a01044.html#944586e27cc6975287e4a1cdda955b2f">00099</a>   <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a00815.html#2846943a7802b3a62df51e0936542abb">GetFileExtensions</a>() {
<a name="l00100"></a>00100     <span class="keywordflow">return</span> <span class="stringliteral">".mnc"</span>; }
<a name="l00102"></a>00102 
<a name="l00104"></a>00104 
<a name="l00105"></a><a class="code" href="a01044.html#9c95dd27a053bbd1b554ee4289659551">00105</a>   <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a00815.html#e83ebabf18c670a314bb32eb50371f61">GetDescriptiveName</a>() {
<a name="l00106"></a>00106     <span class="keywordflow">return</span> <span class="stringliteral">"MINC"</span>; }
<a name="l00108"></a>00108 
<a name="l00110"></a>00110   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00815.html#0a647fc647c1eb39ede334c2d2121bbe">CanReadFile</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>);
<a name="l00111"></a>00111 
<a name="l00115"></a>00115   <span class="keyword">virtual</span> <a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> *GetDirectionCosines();
<a name="l00116"></a>00116 
<a name="l00118"></a>00118 
<a name="l00121"></a>00121   <span class="keyword">virtual</span> <span class="keywordtype">double</span> GetRescaleSlope();
<a name="l00122"></a>00122   <span class="keyword">virtual</span> <span class="keywordtype">double</span> GetRescaleIntercept();
<a name="l00124"></a>00124 
<a name="l00126"></a>00126 
<a name="l00129"></a>00129   vtkSetMacro(RescaleRealValues, <span class="keywordtype">int</span>);
<a name="l00130"></a>00130   vtkBooleanMacro(RescaleRealValues, <span class="keywordtype">int</span>);
<a name="l00131"></a>00131   vtkGetMacro(RescaleRealValues, <span class="keywordtype">int</span>);
<a name="l00133"></a>00133 
<a name="l00135"></a>00135 
<a name="l00139"></a>00139   <span class="keyword">virtual</span> <span class="keywordtype">double</span> *GetDataRange();
<a name="l00140"></a><a class="code" href="a01044.html#f087792b766fb4a8ab51a490a7b0710d">00140</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> GetDataRange(<span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21076786d084c43d32f242990f932679539">range</a>[2]) {
<a name="l00141"></a>00141     <span class="keywordtype">double</span> *r = this-&gt;GetDataRange();
<a name="l00142"></a>00142     range[0] = r[0]; range[1] = r[1]; };
<a name="l00144"></a>00144 
<a name="l00146"></a>00146   <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetNumberOfTimeSteps();
<a name="l00147"></a>00147 
<a name="l00149"></a>00149 
<a name="l00150"></a>00150   vtkSetMacro(TimeStep, <span class="keywordtype">int</span>);
<a name="l00151"></a>00151   vtkGetMacro(TimeStep, <span class="keywordtype">int</span>);
<a name="l00153"></a>00153 
<a name="l00156"></a>00156   <span class="keyword">virtual</span> <a class="code" href="a01043.html" title="A container for a MINC image header.">vtkMINCImageAttributes</a> *GetImageAttributes();
<a name="l00157"></a>00157 
<a name="l00158"></a>00158 <span class="keyword">protected</span>:
<a name="l00159"></a>00159   <a class="code" href="a01044.html" title="A reader for MINC files.">vtkMINCImageReader</a>();
<a name="l00160"></a>00160   ~<a class="code" href="a01044.html" title="A reader for MINC files.">vtkMINCImageReader</a>();
<a name="l00161"></a>00161 
<a name="l00162"></a><a class="code" href="a01044.html#f01246e0cf19de8aadc40019c519c287">00162</a>   <span class="keywordtype">int</span> MINCImageType;
<a name="l00163"></a><a class="code" href="a01044.html#735476e010110275467bae63626d2825">00163</a>   <span class="keywordtype">int</span> MINCImageTypeSigned;
<a name="l00164"></a>00164 
<a name="l00165"></a><a class="code" href="a01044.html#fd5bf6c0f52d450d482be523c245e223">00165</a>   <span class="keywordtype">double</span> ValidRange[2];
<a name="l00166"></a><a class="code" href="a01044.html#4d0f4a7a3312ece9dd61ea7737e789fe">00166</a>   <span class="keywordtype">double</span> ImageRange[2];
<a name="l00167"></a><a class="code" href="a01044.html#dd68cb3659f69a0e098baa33aec1ce81">00167</a>   <span class="keywordtype">double</span> DataRange[2];
<a name="l00168"></a>00168 
<a name="l00169"></a><a class="code" href="a01044.html#8ee0ec8e0b2ac2d13e0602c5673fac47">00169</a>   <span class="keywordtype">int</span> NumberOfTimeSteps;
<a name="l00170"></a><a class="code" href="a01044.html#fdef0564d0294b5cb693999204bb4342">00170</a>   <span class="keywordtype">int</span> TimeStep;
<a name="l00171"></a><a class="code" href="a01044.html#fc7ea146a2f5ec5a3169868c9580653d">00171</a>   <a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> *DirectionCosines;
<a name="l00172"></a><a class="code" href="a01044.html#d91f6f2edaa4b1b124d33a5796a1bfe2">00172</a>   <span class="keywordtype">double</span> RescaleSlope;
<a name="l00173"></a><a class="code" href="a01044.html#76bd1931b448844db5684105d663ab13">00173</a>   <span class="keywordtype">double</span> RescaleIntercept;
<a name="l00174"></a><a class="code" href="a01044.html#b88e31d7fa9bc139e414cacfc41c9faa">00174</a>   <span class="keywordtype">int</span> RescaleRealValues;
<a name="l00175"></a><a class="code" href="a01044.html#c2aff32dc6bc45f06d71692691bd542b">00175</a>   <a class="code" href="a01043.html" title="A container for a MINC image header.">vtkMINCImageAttributes</a> *ImageAttributes;
<a name="l00176"></a>00176 
<a name="l00177"></a><a class="code" href="a01044.html#7ed307c7c5325990088769afee35cdff">00177</a>   <span class="keywordtype">int</span> FileNameHasChanged;
<a name="l00178"></a>00178 
<a name="l00179"></a>00179   <span class="keyword">virtual</span> <span class="keywordtype">int</span> OpenNetCDFFile(<span class="keyword">const</span> <span class="keywordtype">char</span> *filename, <span class="keywordtype">int</span>&amp; ncid);
<a name="l00180"></a>00180   <span class="keyword">virtual</span> <span class="keywordtype">int</span> CloseNetCDFFile(<span class="keywordtype">int</span> ncid);
<a name="l00181"></a>00181   <span class="keyword">virtual</span> <span class="keywordtype">int</span> IndexFromDimensionName(<span class="keyword">const</span> <span class="keywordtype">char</span> *dimName);
<a name="l00182"></a>00182   <span class="keyword">virtual</span> <span class="keywordtype">int</span> ReadMINCFileAttributes();
<a name="l00183"></a>00183   <span class="keyword">virtual</span> <span class="keywordtype">void</span> FindRangeAndRescaleValues();
<a name="l00184"></a>00184   <span class="keyword">static</span> <span class="keywordtype">int</span> ConvertMINCTypeToVTKType(<span class="keywordtype">int</span> minctype, <span class="keywordtype">int</span> mincsigned);
<a name="l00185"></a>00185 
<a name="l00186"></a>00186   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00815.html#e31d4865f47029d0a63da3716bae2305">ExecuteInformation</a>();
<a name="l00187"></a>00187   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00815.html#a26f5f16dd7178bea2d7608f0d5ed633">ExecuteData</a>(<a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a> *out);
<a name="l00188"></a>00188 
<a name="l00189"></a>00189 <span class="keyword">private</span>:
<a name="l00190"></a>00190   <a class="code" href="a01044.html" title="A reader for MINC files.">vtkMINCImageReader</a>(<span class="keyword">const</span> <a class="code" href="a01044.html" title="A reader for MINC files.">vtkMINCImageReader</a>&amp;); <span class="comment">// Not implemented</span>
<a name="l00191"></a>00191   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01044.html" title="A reader for MINC files.">vtkMINCImageReader</a>&amp;);  <span class="comment">// Not implemented</span>
<a name="l00192"></a>00192 
<a name="l00193"></a>00193 };
<a name="l00194"></a>00194 
<a name="l00195"></a>00195 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:40 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>