Sophie

Sophie

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

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/vtkXMLReader.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/vtkXMLReader.h</h1><a href="a03256.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: vtkXMLReader.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="l00023"></a>00023 <span class="preprocessor">#ifndef __vtkXMLReader_h</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#define __vtkXMLReader_h</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span>
<a name="l00026"></a>00026 <span class="preprocessor">#include "<a class="code" href="a02189.html">vtkAlgorithm.h</a>"</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="keyword">class </span><a class="code" href="a00081.html" title="Abstract superclass for all arrays.">vtkAbstractArray</a>;
<a name="l00029"></a>00029 <span class="keyword">class </span><a class="code" href="a00226.html" title="supports function callbacks">vtkCallbackCommand</a>;
<a name="l00030"></a>00030 <span class="keyword">class </span><a class="code" href="a00359.html" title="Store on/off settings for data arrays for a vtkSource.">vtkDataArraySelection</a>;
<a name="l00031"></a>00031 <span class="keyword">class </span><a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a>;
<a name="l00032"></a>00032 <span class="keyword">class </span><a class="code" href="a00376.html" title="represent and manipulate attribute data in a dataset">vtkDataSetAttributes</a>;
<a name="l00033"></a>00033 <span class="keyword">class </span><a class="code" href="a01902.html" title="Represents an XML element and those nested inside.">vtkXMLDataElement</a>;
<a name="l00034"></a>00034 <span class="keyword">class </span><a class="code" href="a01903.html" title="Used by vtkXMLReader to parse VTK XML files.">vtkXMLDataParser</a>;
<a name="l00035"></a>00035 <span class="keyword">class </span><a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a>;
<a name="l00036"></a>00036 <span class="keyword">class </span><a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a>;
<a name="l00037"></a>00037 
<a name="l00038"></a><a class="code" href="a01943.html">00038</a> <span class="keyword">class </span><a class="code" href="a02170.html#aab695c81fb47ab75c91e111e17cbe2c">VTK_IO_EXPORT</a> <a class="code" href="a01943.html" title="Superclass for VTK&amp;#39;s XML format readers.">vtkXMLReader</a> : <span class="keyword">public</span> <a class="code" href="a00101.html" title="Superclass for all sources, filters, and sinks in VTK.">vtkAlgorithm</a>
<a name="l00039"></a>00039 {
<a name="l00040"></a>00040 <span class="keyword">public</span>:
<a name="l00041"></a><a class="code" href="a01943.html#423932c12612392f5f4a2a653882d89a">00041</a>   vtkTypeRevisionMacro(<a class="code" href="a01943.html" title="Superclass for VTK&amp;#39;s XML format readers.">vtkXMLReader</a>,<a class="code" href="a00101.html" title="Superclass for all sources, filters, and sinks in VTK.">vtkAlgorithm</a>);
<a name="l00042"></a>00042   <span class="keywordtype">void</span> <a class="code" href="a00101.html#0d96908767dcf284576ebdee795ee23a">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00043"></a>00043   
<a name="l00045"></a>00045 
<a name="l00046"></a>00046   vtkSetStringMacro(FileName);
<a name="l00047"></a>00047   vtkGetStringMacro(FileName);
<a name="l00049"></a>00049   
<a name="l00051"></a>00051   <span class="keyword">virtual</span> <span class="keywordtype">int</span> CanReadFile(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>);
<a name="l00052"></a>00052   
<a name="l00054"></a>00054 
<a name="l00055"></a>00055   <a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a>* GetOutputAsDataSet();
<a name="l00056"></a>00056   <a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a>* GetOutputAsDataSet(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e519c5019582479480124c44722a451f">index</a>);
<a name="l00058"></a>00058   
<a name="l00060"></a>00060 
<a name="l00062"></a>00062   vtkGetObjectMacro(PointDataArraySelection, <a class="code" href="a00359.html" title="Store on/off settings for data arrays for a vtkSource.">vtkDataArraySelection</a>);
<a name="l00063"></a>00063   vtkGetObjectMacro(CellDataArraySelection, <a class="code" href="a00359.html" title="Store on/off settings for data arrays for a vtkSource.">vtkDataArraySelection</a>);
<a name="l00065"></a>00065   
<a name="l00067"></a>00067 
<a name="l00068"></a>00068   <span class="keywordtype">int</span> GetNumberOfPointArrays();
<a name="l00069"></a>00069   <span class="keywordtype">int</span> GetNumberOfCellArrays();
<a name="l00071"></a>00071   
<a name="l00073"></a>00073 
<a name="l00075"></a>00075   <span class="keyword">const</span> <span class="keywordtype">char</span>* GetPointArrayName(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e519c5019582479480124c44722a451f">index</a>);
<a name="l00076"></a>00076   <span class="keyword">const</span> <span class="keywordtype">char</span>* GetCellArrayName(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e519c5019582479480124c44722a451f">index</a>);
<a name="l00078"></a>00078   
<a name="l00080"></a>00080 
<a name="l00082"></a>00082   <span class="keywordtype">int</span> GetPointArrayStatus(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>);
<a name="l00083"></a>00083   <span class="keywordtype">int</span> GetCellArrayStatus(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>);
<a name="l00084"></a>00084   <span class="keywordtype">void</span> SetPointArrayStatus(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>, <span class="keywordtype">int</span> status);  
<a name="l00085"></a>00085   <span class="keywordtype">void</span> SetCellArrayStatus(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>, <span class="keywordtype">int</span> status);  
<a name="l00087"></a>00087 
<a name="l00088"></a>00088   <span class="comment">// For the specified port, copy the information this reader sets up in</span>
<a name="l00089"></a>00089   <span class="comment">// SetupOutputInformation to outInfo</span>
<a name="l00090"></a><a class="code" href="a01943.html#f35d09b55ab024c9c28323e06f2d7da1">00090</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> CopyOutputInformation(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *vtkNotUsed(outInfo),
<a name="l00091"></a>00091                                    <span class="keywordtype">int</span> vtkNotUsed(<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210710cb6d12e418b21e8fb3d79ac32f51c">port</a>)) {}
<a name="l00092"></a>00092 
<a name="l00094"></a>00094 
<a name="l00095"></a>00095   vtkSetMacro(TimeStep, <span class="keywordtype">int</span>);
<a name="l00096"></a>00096   vtkGetMacro(TimeStep, <span class="keywordtype">int</span>);
<a name="l00098"></a>00098  
<a name="l00099"></a>00099   vtkGetMacro(NumberOfTimeSteps, <span class="keywordtype">int</span>);
<a name="l00101"></a>00101 
<a name="l00102"></a>00102   vtkGetVector2Macro(TimeStepRange, <span class="keywordtype">int</span>);
<a name="l00103"></a>00103   vtkSetVector2Macro(TimeStepRange, <span class="keywordtype">int</span>);
<a name="l00105"></a>00105 
<a name="l00106"></a>00106 <span class="keyword">protected</span>:
<a name="l00107"></a>00107   <a class="code" href="a01943.html" title="Superclass for VTK&amp;#39;s XML format readers.">vtkXMLReader</a>();
<a name="l00108"></a>00108   ~<a class="code" href="a01943.html" title="Superclass for VTK&amp;#39;s XML format readers.">vtkXMLReader</a>();
<a name="l00109"></a>00109    
<a name="l00110"></a>00110   <span class="comment">// Pipeline execution methods to be defined by subclass.  Called by</span>
<a name="l00111"></a>00111   <span class="comment">// corresponding RequestData methods after appropriate setup has been</span>
<a name="l00112"></a>00112   <span class="comment">// done.</span>
<a name="l00113"></a>00113   <span class="keyword">virtual</span> <span class="keywordtype">int</span> ReadXMLInformation();
<a name="l00114"></a>00114   <span class="keyword">virtual</span> <span class="keywordtype">void</span> ReadXMLData();
<a name="l00115"></a>00115   
<a name="l00116"></a>00116   <span class="comment">// Get the name of the data set being read.</span>
<a name="l00117"></a>00117   <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* GetDataSetName()=0;
<a name="l00118"></a>00118   
<a name="l00119"></a>00119   <span class="comment">// Test if the reader can read a file with the given version number.</span>
<a name="l00120"></a>00120   <span class="keyword">virtual</span> <span class="keywordtype">int</span> CanReadFileVersion(<span class="keywordtype">int</span> major, <span class="keywordtype">int</span> minor);
<a name="l00121"></a>00121   
<a name="l00122"></a>00122   <span class="comment">// Setup the output with no data available.  Used in error cases.</span>
<a name="l00123"></a>00123   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetupEmptyOutput()=0;
<a name="l00124"></a>00124   
<a name="l00125"></a>00125   <span class="comment">// Setup the output's information.</span>
<a name="l00126"></a><a class="code" href="a01943.html#509baca377e5c9adb123c71f28f757a6">00126</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetupOutputInformation(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *vtkNotUsed(outInfo)) {}
<a name="l00127"></a>00127   
<a name="l00128"></a>00128   <span class="comment">// Setup the output's information for the update extent</span>
<a name="l00129"></a>00129   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetupUpdateExtentInformation
<a name="l00130"></a><a class="code" href="a01943.html#7abf82e844a0dddb55ee5a232ace10d8">00130</a>   (<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *vtkNotUsed(outInfo)) {}
<a name="l00131"></a>00131 
<a name="l00132"></a>00132   <span class="comment">// Setup the output's data with allocation.</span>
<a name="l00133"></a>00133   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetupOutputData();
<a name="l00134"></a>00134   
<a name="l00135"></a>00135   <span class="comment">// Read the primary element from the file.  This is the element</span>
<a name="l00136"></a>00136   <span class="comment">// whose name is the value returned by GetDataSetName().</span>
<a name="l00137"></a>00137   <span class="keyword">virtual</span> <span class="keywordtype">int</span> ReadPrimaryElement(<a class="code" href="a01902.html" title="Represents an XML element and those nested inside.">vtkXMLDataElement</a>* ePrimary);
<a name="l00138"></a>00138   
<a name="l00139"></a>00139   <span class="comment">// Read the top-level element from the file.  This is always the</span>
<a name="l00140"></a>00140   <span class="comment">// VTKFile element.</span>
<a name="l00141"></a>00141   <span class="keywordtype">int</span> ReadVTKFile(<a class="code" href="a01902.html" title="Represents an XML element and those nested inside.">vtkXMLDataElement</a>* eVTKFile);  
<a name="l00142"></a>00142   
<a name="l00143"></a>00143   <span class="comment">// Create a vtkAbstractArray from its cooresponding XML representation.</span>
<a name="l00144"></a>00144   <span class="comment">// Does not allocate.</span>
<a name="l00145"></a>00145   <a class="code" href="a00081.html" title="Abstract superclass for all arrays.">vtkAbstractArray</a>* CreateArray(<a class="code" href="a01902.html" title="Represents an XML element and those nested inside.">vtkXMLDataElement</a>* da);
<a name="l00146"></a>00146 
<a name="l00147"></a>00147   <span class="comment">// Create a vtkInformationKey from its coresponding XML representation.</span>
<a name="l00148"></a>00148   <span class="comment">// Stores it in the instance of vtkInformationProvided. Does not allocate.</span>
<a name="l00149"></a>00149   <span class="keywordtype">int</span> CreateInformationKey(<a class="code" href="a01902.html" title="Represents an XML element and those nested inside.">vtkXMLDataElement</a> *eInfoKey, <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21023da246d4a744e861548382bb79fad81">info</a>);
<a name="l00150"></a>00150 
<a name="l00151"></a>00151   <span class="comment">// Internal utility methods.</span>
<a name="l00152"></a>00152   <span class="keyword">virtual</span> <span class="keywordtype">int</span> OpenVTKFile();
<a name="l00153"></a>00153   <span class="keyword">virtual</span> <span class="keywordtype">void</span> CloseVTKFile();
<a name="l00154"></a>00154   <span class="keyword">virtual</span> <span class="keywordtype">void</span> CreateXMLParser();
<a name="l00155"></a>00155   <span class="keyword">virtual</span> <span class="keywordtype">void</span> DestroyXMLParser();
<a name="l00156"></a>00156   <span class="keywordtype">void</span> SetupCompressor(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2108e7f81709ed57920a45c02a954726847">type</a>);
<a name="l00157"></a>00157   <span class="keywordtype">int</span> CanReadFileVersionString(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210a34363027e5242e49afb825fc16ea70f">version</a>);
<a name="l00158"></a>00158 
<a name="l00159"></a>00159   <span class="comment">// Returns the major version for the file being read. -1 when invalid.</span>
<a name="l00160"></a>00160   vtkGetMacro(FileMajorVersion, <span class="keywordtype">int</span>);
<a name="l00161"></a>00161 
<a name="l00162"></a>00162   <span class="comment">// Returns the minor version for the file being read. -1 when invalid.</span>
<a name="l00163"></a>00163   vtkGetMacro(FileMinorVersion, <span class="keywordtype">int</span>);
<a name="l00164"></a>00164   
<a name="l00165"></a>00165   <span class="comment">// Utility methods for subclasses.</span>
<a name="l00166"></a>00166   <span class="keywordtype">int</span> IntersectExtents(<span class="keywordtype">int</span>* extent1, <span class="keywordtype">int</span>* extent2, <span class="keywordtype">int</span>* result);
<a name="l00167"></a>00167   <span class="keywordtype">int</span> Min(<span class="keywordtype">int</span> a, <span class="keywordtype">int</span> b);
<a name="l00168"></a>00168   <span class="keywordtype">int</span> Max(<span class="keywordtype">int</span> a, <span class="keywordtype">int</span> b);
<a name="l00169"></a>00169   <span class="keywordtype">void</span> ComputePointDimensions(<span class="keywordtype">int</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21083c65ff97d39562e6981dc3e2041b09f">extent</a>, <span class="keywordtype">int</span>* dimensions);
<a name="l00170"></a>00170   <span class="keywordtype">void</span> ComputePointIncrements(<span class="keywordtype">int</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21083c65ff97d39562e6981dc3e2041b09f">extent</a>, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a>* increments);
<a name="l00171"></a>00171   <span class="keywordtype">void</span> ComputeCellDimensions(<span class="keywordtype">int</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21083c65ff97d39562e6981dc3e2041b09f">extent</a>, <span class="keywordtype">int</span>* dimensions);
<a name="l00172"></a>00172   <span class="keywordtype">void</span> ComputeCellIncrements(<span class="keywordtype">int</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21083c65ff97d39562e6981dc3e2041b09f">extent</a>, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a>* increments);
<a name="l00173"></a>00173   <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> GetStartTuple(<span class="keywordtype">int</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21083c65ff97d39562e6981dc3e2041b09f">extent</a>, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a>* increments,
<a name="l00174"></a>00174                           <span class="keywordtype">int</span> i, <span class="keywordtype">int</span> j, <span class="keywordtype">int</span> k);
<a name="l00175"></a>00175   <span class="keywordtype">void</span> ReadAttributeIndices(<a class="code" href="a01902.html" title="Represents an XML element and those nested inside.">vtkXMLDataElement</a>* eDSA,
<a name="l00176"></a>00176                             <a class="code" href="a00376.html" title="represent and manipulate attribute data in a dataset">vtkDataSetAttributes</a>* dsa);
<a name="l00177"></a>00177   <span class="keywordtype">char</span>** CreateStringArray(<span class="keywordtype">int</span> numStrings);
<a name="l00178"></a>00178   <span class="keywordtype">void</span> DestroyStringArray(<span class="keywordtype">int</span> numStrings, <span class="keywordtype">char</span>** strings);  
<a name="l00179"></a>00179   
<a name="l00180"></a>00180   <span class="comment">// Setup the data array selections for the input's set of arrays.</span>
<a name="l00181"></a>00181   <span class="keywordtype">void</span> SetDataArraySelections(<a class="code" href="a01902.html" title="Represents an XML element and those nested inside.">vtkXMLDataElement</a>* eDSA,
<a name="l00182"></a>00182                               <a class="code" href="a00359.html" title="Store on/off settings for data arrays for a vtkSource.">vtkDataArraySelection</a>* sel);
<a name="l00183"></a>00183 
<a name="l00184"></a>00184 <span class="comment">//BTX</span>
<a name="l00185"></a>00185   <span class="keywordtype">int</span> SetFieldDataInfo(<a class="code" href="a01902.html" title="Represents an XML element and those nested inside.">vtkXMLDataElement</a> *eDSA, <span class="keywordtype">int</span> association,  
<a name="l00186"></a>00186   <span class="keywordtype">int</span> numTuples, <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *(&amp;infoVector));
<a name="l00187"></a>00187 <span class="comment">//ETX</span>
<a name="l00188"></a>00188 
<a name="l00189"></a>00189   <span class="comment">// Check whether the given array element is an enabled array.</span>
<a name="l00190"></a>00190   <span class="keywordtype">int</span> PointDataArrayIsEnabled(<a class="code" href="a01902.html" title="Represents an XML element and those nested inside.">vtkXMLDataElement</a>* ePDA);
<a name="l00191"></a>00191   <span class="keywordtype">int</span> CellDataArrayIsEnabled(<a class="code" href="a01902.html" title="Represents an XML element and those nested inside.">vtkXMLDataElement</a>* eCDA);
<a name="l00192"></a>00192   
<a name="l00193"></a>00193   <span class="comment">// Callback registered with the SelectionObserver.</span>
<a name="l00194"></a>00194   <span class="keyword">static</span> <span class="keywordtype">void</span> SelectionModifiedCallback(<a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>* caller, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> eid,
<a name="l00195"></a>00195                                         <span class="keywordtype">void</span>* clientdata, <span class="keywordtype">void</span>* calldata);
<a name="l00196"></a>00196   
<a name="l00197"></a>00197   <span class="comment">// The vtkXMLDataParser instance used to hide XML reading details.</span>
<a name="l00198"></a><a class="code" href="a01943.html#5a0d75c50ba6c6155b543c2853d4b7cb">00198</a>   <a class="code" href="a01903.html" title="Used by vtkXMLReader to parse VTK XML files.">vtkXMLDataParser</a>* XMLParser;
<a name="l00199"></a>00199 
<a name="l00200"></a>00200   <span class="comment">// The FieldData element representation.</span>
<a name="l00201"></a><a class="code" href="a01943.html#0a790f9dbf50820d7ac6dcfc50842051">00201</a>   <a class="code" href="a01902.html" title="Represents an XML element and those nested inside.">vtkXMLDataElement</a>* FieldDataElement;
<a name="l00202"></a>00202 
<a name="l00203"></a>00203   <span class="comment">// The input file's name.</span>
<a name="l00204"></a><a class="code" href="a01943.html#c2d46f5579175aec15195ade9de91541">00204</a>   <span class="keywordtype">char</span>* FileName;
<a name="l00205"></a>00205   
<a name="l00206"></a>00206   <span class="comment">// The stream used to read the input.</span>
<a name="l00207"></a><a class="code" href="a01943.html#19cd0f8387842331bf9162262ce1c5d4">00207</a>   istream* Stream;
<a name="l00208"></a>00208   
<a name="l00209"></a>00209   <span class="comment">// The array selections.</span>
<a name="l00210"></a><a class="code" href="a01943.html#efd41f46d734a426563886db321eb563">00210</a>   <a class="code" href="a00359.html" title="Store on/off settings for data arrays for a vtkSource.">vtkDataArraySelection</a>* PointDataArraySelection;
<a name="l00211"></a><a class="code" href="a01943.html#2a5d41e04811129e49cc66c38e8d8fad">00211</a>   <a class="code" href="a00359.html" title="Store on/off settings for data arrays for a vtkSource.">vtkDataArraySelection</a>* CellDataArraySelection;
<a name="l00212"></a>00212   
<a name="l00213"></a>00213   <span class="comment">// The observer to modify this object when the array selections are</span>
<a name="l00214"></a>00214   <span class="comment">// modified.</span>
<a name="l00215"></a><a class="code" href="a01943.html#0afbbb3abf5a7dcd9afbd254f03a84c0">00215</a>   <a class="code" href="a00226.html" title="supports function callbacks">vtkCallbackCommand</a>* SelectionObserver;
<a name="l00216"></a>00216   
<a name="l00217"></a>00217   <span class="comment">// Whether there was an error reading the file in RequestInformation.</span>
<a name="l00218"></a><a class="code" href="a01943.html#557771a8805c56a147464f0a477a538c">00218</a>   <span class="keywordtype">int</span> InformationError;
<a name="l00219"></a>00219   
<a name="l00220"></a>00220   <span class="comment">// Whether there was an error reading the file in RequestData.</span>
<a name="l00221"></a><a class="code" href="a01943.html#41dd8cbbfb79e27975fbb03cbc532e6f">00221</a>   <span class="keywordtype">int</span> DataError;
<a name="l00222"></a>00222   
<a name="l00223"></a>00223   <span class="comment">// incrementally fine-tuned progress updates.</span>
<a name="l00224"></a>00224   <span class="keyword">virtual</span> <span class="keywordtype">void</span> GetProgressRange(<span class="keywordtype">float</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21076786d084c43d32f242990f932679539">range</a>);
<a name="l00225"></a>00225   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetProgressRange(<span class="keywordtype">float</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21076786d084c43d32f242990f932679539">range</a>, <span class="keywordtype">int</span> curStep, <span class="keywordtype">int</span> numSteps);
<a name="l00226"></a>00226   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetProgressRange(<span class="keywordtype">float</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21076786d084c43d32f242990f932679539">range</a>, <span class="keywordtype">int</span> curStep, <span class="keywordtype">float</span>* fractions);
<a name="l00227"></a>00227   <span class="keyword">virtual</span> <span class="keywordtype">void</span> UpdateProgressDiscrete(<span class="keywordtype">float</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e850461313a8b22067e7325e737a4f74">progress</a>);
<a name="l00228"></a><a class="code" href="a01943.html#509616298ef5073066e44013e535d347">00228</a>   <span class="keywordtype">float</span> ProgressRange[2];
<a name="l00229"></a>00229 
<a name="l00230"></a>00230   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00101.html#99651784a97d309c0cc90072dca29542">ProcessRequest</a>(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *request,
<a name="l00231"></a>00231                              <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> **inputVector,
<a name="l00232"></a>00232                              <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *outputVector);
<a name="l00233"></a>00233   <span class="keyword">virtual</span> <span class="keywordtype">int</span> RequestData(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *request,
<a name="l00234"></a>00234                           <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> **inputVector,
<a name="l00235"></a>00235                           <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *outputVector);
<a name="l00236"></a><a class="code" href="a01943.html#8b929bd61b2d63d707e2eb42e2000384">00236</a>   <span class="keyword">virtual</span> <span class="keywordtype">int</span> RequestDataObject(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *vtkNotUsed(request),
<a name="l00237"></a>00237                                 <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> **vtkNotUsed(inputVector),
<a name="l00238"></a>00238                                 <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *vtkNotUsed(outputVector))
<a name="l00239"></a>00239     { <span class="keywordflow">return</span> 1; }
<a name="l00240"></a>00240   <span class="keyword">virtual</span> <span class="keywordtype">int</span> RequestInformation(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *request,
<a name="l00241"></a>00241                                  <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> **inputVector,
<a name="l00242"></a>00242                                  <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *outputVector);
<a name="l00243"></a>00243   <span class="keyword">virtual</span> <span class="keywordtype">int</span> RequestUpdateExtentInformation
<a name="l00244"></a>00244   (<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *request,
<a name="l00245"></a>00245    <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> **inputVector,
<a name="l00246"></a>00246    <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *outputVector);
<a name="l00247"></a>00247 
<a name="l00248"></a><a class="code" href="a01943.html#79b050e0b5e2dd5f078137d7e1248537">00248</a>   <a class="code" href="a01719.html" title="record modification and/or execution time">vtkTimeStamp</a> ReadMTime;
<a name="l00249"></a>00249 
<a name="l00250"></a>00250   <span class="comment">// Whether there was an error reading the XML.</span>
<a name="l00251"></a><a class="code" href="a01943.html#4de0f158be184f80158948ac0f8a41e9">00251</a>   <span class="keywordtype">int</span> ReadError;
<a name="l00252"></a>00252 
<a name="l00253"></a>00253   <span class="comment">// For structured data keep track of dimensions empty of cells.  For</span>
<a name="l00254"></a>00254   <span class="comment">// unstructured data these are always zero.  This is used to support</span>
<a name="l00255"></a>00255   <span class="comment">// 1-D and 2-D cell data.</span>
<a name="l00256"></a><a class="code" href="a01943.html#c34d8a1ccb2f17799ef8683a07fde798">00256</a>   <span class="keywordtype">int</span> AxesEmpty[3];
<a name="l00257"></a>00257 
<a name="l00258"></a>00258   <span class="comment">// The timestep currently being read.</span>
<a name="l00259"></a><a class="code" href="a01943.html#a96446506356b9895c954d72e9efd767">00259</a>   <span class="keywordtype">int</span> TimeStep;
<a name="l00260"></a><a class="code" href="a01943.html#4bf29816b186421093b1b0bb826f0909">00260</a>   <span class="keywordtype">int</span> CurrentTimeStep;
<a name="l00261"></a><a class="code" href="a01943.html#163310dd9aec48f630ffd8d6867c708e">00261</a>   <span class="keywordtype">int</span> NumberOfTimeSteps;
<a name="l00262"></a>00262   <span class="keywordtype">void</span> SetNumberOfTimeSteps(<span class="keywordtype">int</span> num);
<a name="l00263"></a>00263   <span class="comment">// buffer for reading timestep from the XML file the lenght is of </span>
<a name="l00264"></a>00264   <span class="comment">// NumberOfTimeSteps and therefore is always long enough</span>
<a name="l00265"></a><a class="code" href="a01943.html#751d181d021f616ece09e1c0187755ab">00265</a>   <span class="keywordtype">int</span> *TimeSteps; 
<a name="l00266"></a>00266   <span class="comment">// Store the range of time steps</span>
<a name="l00267"></a><a class="code" href="a01943.html#b366a36f5dbfc5c46d2507c9d9af6be1">00267</a>   <span class="keywordtype">int</span> TimeStepRange[2];
<a name="l00268"></a>00268 
<a name="l00269"></a>00269   <span class="comment">// Now we need to save what was the last time read for each kind of </span>
<a name="l00270"></a>00270   <span class="comment">// data to avoid rereading it that is to say we need a var for </span>
<a name="l00271"></a>00271   <span class="comment">// e.g. PointData/CellData/Points/Cells...</span>
<a name="l00272"></a>00272   <span class="comment">// See SubClass for details with member vars like PointsTimeStep/PointsOffset</span>
<a name="l00273"></a>00273 
<a name="l00274"></a>00274   <span class="comment">// Helper function usefull to know if a timestep is found in an array of timestep</span>
<a name="l00275"></a>00275   <span class="keyword">static</span> <span class="keywordtype">int</span> IsTimeStepInArray(<span class="keywordtype">int</span> timestep, <span class="keywordtype">int</span>* timesteps, <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21042c5d76c3275f5d17bc1b329d83ab003">length</a>);
<a name="l00276"></a>00276 
<a name="l00277"></a>00277   <a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>* GetCurrentOutput();
<a name="l00278"></a>00278   <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a>* GetCurrentOutputInformation();
<a name="l00279"></a>00279   
<a name="l00280"></a>00280 <span class="keyword">private</span>:
<a name="l00281"></a>00281   <span class="comment">// The stream used to read the input if it is in a file.</span>
<a name="l00282"></a>00282   ifstream* FileStream;  
<a name="l00283"></a>00283   <span class="keywordtype">int</span> TimeStepWasReadOnce;
<a name="l00284"></a>00284 
<a name="l00285"></a>00285   <span class="keywordtype">int</span> FileMajorVersion;
<a name="l00286"></a>00286   <span class="keywordtype">int</span> FileMinorVersion;
<a name="l00287"></a>00287   
<a name="l00288"></a>00288   <a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>* CurrentOutput;
<a name="l00289"></a>00289   <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a>* CurrentOutputInformation;
<a name="l00290"></a>00290   
<a name="l00291"></a>00291 <span class="keyword">private</span>:
<a name="l00292"></a>00292   <a class="code" href="a01943.html" title="Superclass for VTK&amp;#39;s XML format readers.">vtkXMLReader</a>(<span class="keyword">const</span> <a class="code" href="a01943.html" title="Superclass for VTK&amp;#39;s XML format readers.">vtkXMLReader</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00293"></a>00293   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01943.html" title="Superclass for VTK&amp;#39;s XML format readers.">vtkXMLReader</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00294"></a>00294 };
<a name="l00295"></a>00295 
<a name="l00296"></a>00296 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:42 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>