Sophie

Sophie

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

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/vtkXMLWriter.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/vtkXMLWriter.h</h1><a href="a03269.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: vtkXMLWriter.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="l00024"></a>00024 <span class="preprocessor">#ifndef __vtkXMLWriter_h</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define __vtkXMLWriter_h</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include "<a class="code" href="a02189.html">vtkAlgorithm.h</a>"</span>
<a name="l00028"></a>00028 
<a name="l00029"></a>00029 <span class="keyword">class </span><a class="code" href="a00081.html" title="Abstract superclass for all arrays.">vtkAbstractArray</a>;
<a name="l00030"></a>00030 <span class="keyword">class </span><a class="code" href="a00131.html" title="Abstract superclass to iterate over elements in an vtkAbstractArray.">vtkArrayIterator</a>;
<a name="l00031"></a>00031 <span class="comment">//BTX</span>
<a name="l00032"></a>00032 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt; <span class="keyword">class </span><a class="code" href="a00133.html" title="Implementation template for a array iterator.">vtkArrayIteratorTemplate</a>;
<a name="l00033"></a>00033 <span class="comment">//ETX</span>
<a name="l00034"></a>00034 <span class="keyword">class </span><a class="code" href="a00245.html" title="represent and manipulate cell attribute data">vtkCellData</a>;
<a name="l00035"></a>00035 <span class="keyword">class </span><a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>;
<a name="l00036"></a>00036 <span class="keyword">class </span><a class="code" href="a00361.html" title="Abstract interface for data compression classes.">vtkDataCompressor</a>;
<a name="l00037"></a>00037 <span class="keyword">class </span><a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a>;
<a name="l00038"></a>00038 <span class="keyword">class </span><a class="code" href="a00376.html" title="represent and manipulate attribute data in a dataset">vtkDataSetAttributes</a>;
<a name="l00039"></a>00039 <span class="keyword">class </span><a class="code" href="a01143.html" title="Wraps a binary output stream with a VTK interface.">vtkOutputStream</a>;
<a name="l00040"></a>00040 <span class="keyword">class </span><a class="code" href="a01242.html" title="represent and manipulate point attribute data">vtkPointData</a>;
<a name="l00041"></a>00041 <span class="keyword">class </span><a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>;
<a name="l00042"></a>00042 <span class="keyword">class </span><a class="code" href="a00538.html" title="represent and manipulate fields of data">vtkFieldData</a>;
<a name="l00043"></a>00043 <span class="comment">//BTX</span>
<a name="l00044"></a>00044 <span class="keyword">class </span><a class="code" href="a01607.html" title="Wrapper around vtkstd::string to keep symbols short.">vtkStdString</a>;
<a name="l00045"></a>00045 <span class="keyword">class </span><a class="code" href="a00032.html" title="Helper class due to PIMPL excess.">OffsetsManager</a>;      <span class="comment">// one per piece/per time</span>
<a name="l00046"></a>00046 <span class="keyword">class </span><a class="code" href="a00034.html">OffsetsManagerGroup</a>; <span class="comment">// array of OffsetsManager</span>
<a name="l00047"></a>00047 <span class="keyword">class </span><a class="code" href="a00033.html">OffsetsManagerArray</a>; <span class="comment">// array of OffsetsManagerGroup</span>
<a name="l00048"></a>00048 <span class="comment">//ETX</span>
<a name="l00049"></a>00049 
<a name="l00050"></a><a class="code" href="a01957.html">00050</a> <span class="keyword">class </span><a class="code" href="a02170.html#aab695c81fb47ab75c91e111e17cbe2c">VTK_IO_EXPORT</a> <a class="code" href="a01957.html" title="Superclass for VTK&amp;#39;s XML file writers.">vtkXMLWriter</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="l00051"></a>00051 {
<a name="l00052"></a>00052 <span class="keyword">public</span>:
<a name="l00053"></a><a class="code" href="a01957.html#a69a8b0d33755d2184db045825693146">00053</a>   vtkTypeRevisionMacro(<a class="code" href="a01957.html" title="Superclass for VTK&amp;#39;s XML file writers.">vtkXMLWriter</a>,<a class="code" href="a00101.html" title="Superclass for all sources, filters, and sinks in VTK.">vtkAlgorithm</a>);
<a name="l00054"></a>00054   <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="l00055"></a>00055  
<a name="l00056"></a>00056   <span class="comment">//BTX</span>
<a name="l00058"></a>00058 <span class="comment"></span>
<a name="l00059"></a><a class="code" href="a01957.html#b87bf7804ca8b6c2ea1fbb230a10abba0bd73eede65e9692d78f46d0f049c945">00059</a>   <span class="keyword">enum</span> { BigEndian, LittleEndian };
<a name="l00060"></a>00060   <span class="comment">//ETX</span>
<a name="l00062"></a>00062 <span class="comment"></span>
<a name="l00063"></a>00063   <span class="comment">//BTX</span>
<a name="l00065"></a>00065 <span class="comment"></span>
<a name="l00069"></a><a class="code" href="a01957.html#5c8dd9eef8dfe7d6fef1f0993745cbaa">00069</a>   <span class="keyword">typedef</span> <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> OffsetType;
<a name="l00070"></a>00070   <span class="comment">//ETX</span>
<a name="l00072"></a>00072 <span class="comment"></span>
<a name="l00073"></a>00073   <span class="comment">//BTX</span>
<a name="l00075"></a>00075 <span class="comment"></span>
<a name="l00078"></a><a class="code" href="a01957.html#2f0af224f4581dd0edb4f24456ccb72f5674a01af879f2bc74152f3a59b6c751">00078</a>   <span class="keyword">enum</span> { Ascii, Binary, Appended };
<a name="l00079"></a>00079   <span class="comment">//ETX</span>
<a name="l00081"></a>00081 <span class="comment"></span>  
<a name="l00082"></a>00082   <span class="comment">//BTX</span>
<a name="l00084"></a>00084 <span class="comment"></span>
<a name="l00087"></a><a class="code" href="a01957.html#cd1c5341e6c73afebfde8a552183834c95568ef851988e5078561e01e0406cf2">00087</a>   <span class="keyword">enum</span> { Int32=32, Int64=64 };
<a name="l00088"></a>00088   <span class="comment">//ETX</span>
<a name="l00090"></a>00090 <span class="comment"></span>  
<a name="l00092"></a>00092 
<a name="l00094"></a>00094   vtkSetMacro(ByteOrder, <span class="keywordtype">int</span>);
<a name="l00095"></a>00095   vtkGetMacro(ByteOrder, <span class="keywordtype">int</span>);
<a name="l00096"></a>00096   <span class="keywordtype">void</span> SetByteOrderToBigEndian();
<a name="l00097"></a>00097   <span class="keywordtype">void</span> SetByteOrderToLittleEndian();
<a name="l00099"></a>00099   
<a name="l00101"></a>00101 
<a name="l00103"></a>00103   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetIdType(<span class="keywordtype">int</span>);
<a name="l00104"></a>00104   vtkGetMacro(IdType, <span class="keywordtype">int</span>);
<a name="l00105"></a>00105   <span class="keywordtype">void</span> SetIdTypeToInt32();
<a name="l00106"></a>00106   <span class="keywordtype">void</span> SetIdTypeToInt64();
<a name="l00108"></a>00108   
<a name="l00110"></a>00110 
<a name="l00111"></a>00111   vtkSetStringMacro(FileName);
<a name="l00112"></a>00112   vtkGetStringMacro(FileName);
<a name="l00114"></a>00114   
<a name="l00116"></a>00116 
<a name="l00118"></a>00118   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetCompressor(<a class="code" href="a00361.html" title="Abstract interface for data compression classes.">vtkDataCompressor</a>*);
<a name="l00119"></a>00119   vtkGetObjectMacro(Compressor, <a class="code" href="a00361.html" title="Abstract interface for data compression classes.">vtkDataCompressor</a>);
<a name="l00121"></a>00121   
<a name="l00123"></a>00123 
<a name="l00127"></a>00127   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetBlockSize(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> blockSize);
<a name="l00128"></a>00128   vtkGetMacro(BlockSize, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>);
<a name="l00130"></a>00130   
<a name="l00132"></a>00132 
<a name="l00135"></a>00135   vtkSetMacro(DataMode, <span class="keywordtype">int</span>);
<a name="l00136"></a>00136   vtkGetMacro(DataMode, <span class="keywordtype">int</span>);
<a name="l00137"></a>00137   <span class="keywordtype">void</span> SetDataModeToAscii();
<a name="l00138"></a>00138   <span class="keywordtype">void</span> SetDataModeToBinary();
<a name="l00139"></a>00139   <span class="keywordtype">void</span> SetDataModeToAppended();
<a name="l00141"></a>00141   
<a name="l00143"></a>00143 
<a name="l00148"></a>00148   vtkSetMacro(EncodeAppendedData, <span class="keywordtype">int</span>);
<a name="l00149"></a>00149   vtkGetMacro(EncodeAppendedData, <span class="keywordtype">int</span>);
<a name="l00150"></a>00150   vtkBooleanMacro(EncodeAppendedData, <span class="keywordtype">int</span>);
<a name="l00152"></a>00152   
<a name="l00154"></a>00154 
<a name="l00156"></a>00156   <span class="keywordtype">void</span> SetInput(<a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a> *);
<a name="l00157"></a>00157   <span class="keywordtype">void</span> SetInput(<span class="keywordtype">int</span>, <a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>*);
<a name="l00158"></a>00158   <a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a> *GetInput(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210710cb6d12e418b21e8fb3d79ac32f51c">port</a>);
<a name="l00159"></a><a class="code" href="a01957.html#2e1b69520ea45eb5a3e90f52bbeb1f19">00159</a>   <a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a> *GetInput() { <span class="keywordflow">return</span> this-&gt;GetInput(0); };
<a name="l00161"></a>00161 
<a name="l00163"></a>00163   <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* GetDefaultFileExtension()=0;
<a name="l00164"></a>00164   
<a name="l00166"></a>00166   <span class="keywordtype">int</span> Write();
<a name="l00167"></a>00167 
<a name="l00168"></a>00168   <span class="comment">// See the vtkAlgorithm for a description of what these do</span>
<a name="l00169"></a>00169   <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="l00170"></a>00170                              <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a>** inputVector,
<a name="l00171"></a>00171                              <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a>* outputVector);
<a name="l00172"></a>00172 
<a name="l00174"></a>00174 
<a name="l00175"></a>00175   vtkSetMacro(TimeStep, <span class="keywordtype">int</span>);
<a name="l00176"></a>00176   vtkGetMacro(TimeStep, <span class="keywordtype">int</span>);
<a name="l00178"></a>00178 
<a name="l00180"></a>00180 
<a name="l00181"></a>00181   vtkGetVector2Macro(TimeStepRange, <span class="keywordtype">int</span>);
<a name="l00182"></a>00182   vtkSetVector2Macro(TimeStepRange, <span class="keywordtype">int</span>);
<a name="l00184"></a>00184 
<a name="l00186"></a>00186 
<a name="l00187"></a>00187   vtkGetMacro(NumberOfTimeSteps,<span class="keywordtype">int</span>);
<a name="l00188"></a>00188   vtkSetMacro(NumberOfTimeSteps,<span class="keywordtype">int</span>);
<a name="l00190"></a>00190 
<a name="l00192"></a>00192 
<a name="l00193"></a>00193   <span class="keywordtype">void</span> Start();
<a name="l00194"></a>00194   <span class="keywordtype">void</span> Stop();
<a name="l00195"></a>00195   <span class="keywordtype">void</span> WriteNextTime(<span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2107b83992a2109ab18b82ba0228887498e">time</a>);
<a name="l00197"></a>00197 
<a name="l00198"></a>00198 <span class="keyword">protected</span>:
<a name="l00199"></a>00199   <a class="code" href="a01957.html" title="Superclass for VTK&amp;#39;s XML file writers.">vtkXMLWriter</a>();
<a name="l00200"></a>00200   ~<a class="code" href="a01957.html" title="Superclass for VTK&amp;#39;s XML file writers.">vtkXMLWriter</a>();
<a name="l00201"></a>00201 
<a name="l00202"></a>00202   <span class="keyword">virtual</span> <span class="keywordtype">int</span> RequestInformation(
<a name="l00203"></a>00203                           <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a>* request,
<a name="l00204"></a>00204                           <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a>** inputVector,
<a name="l00205"></a>00205                           <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a>* outputVector);
<a name="l00206"></a>00206   <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="l00207"></a>00207                           <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a>** inputVector,
<a name="l00208"></a>00208                           <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a>* outputVector);
<a name="l00209"></a>00209 
<a name="l00210"></a>00210   <span class="comment">// The name of the output file.</span>
<a name="l00211"></a><a class="code" href="a01957.html#43372d158ed7ac68fa2784e695c503fd">00211</a>   <span class="keywordtype">char</span>* FileName;
<a name="l00212"></a>00212   
<a name="l00213"></a>00213   <span class="comment">// The output stream to which the XML is written.</span>
<a name="l00214"></a><a class="code" href="a01957.html#a8b89e7b73305db94fb87538c28aff97">00214</a>   ostream* Stream;  
<a name="l00215"></a>00215   
<a name="l00216"></a>00216   <span class="comment">// The output byte order.</span>
<a name="l00217"></a><a class="code" href="a01957.html#62ff5113d0f8fe58030a29dd0b15aae4">00217</a>   <span class="keywordtype">int</span> ByteOrder;
<a name="l00218"></a>00218   
<a name="l00219"></a>00219   <span class="comment">// The output vtkIdType.</span>
<a name="l00220"></a><a class="code" href="a01957.html#860f8dcc9a0594156fcdff88d539b243">00220</a>   <span class="keywordtype">int</span> IdType;
<a name="l00221"></a>00221   
<a name="l00222"></a>00222   <span class="comment">// The form of binary data to write.  Used by subclasses to choose</span>
<a name="l00223"></a>00223   <span class="comment">// how to write data.</span>
<a name="l00224"></a><a class="code" href="a01957.html#a186f54be88aac2ae48cbc993970b82f">00224</a>   <span class="keywordtype">int</span> DataMode;
<a name="l00225"></a>00225   
<a name="l00226"></a>00226   <span class="comment">// Whether to base64-encode the appended data section.</span>
<a name="l00227"></a><a class="code" href="a01957.html#7bff3f8f8ffb44f752cecec419373052">00227</a>   <span class="keywordtype">int</span> EncodeAppendedData;
<a name="l00228"></a>00228   
<a name="l00229"></a>00229   <span class="comment">// The stream position at which appended data starts.</span>
<a name="l00230"></a><a class="code" href="a01957.html#e0d4bcfde287eeb71821b4845d6c518c">00230</a>   OffsetType AppendedDataPosition;
<a name="l00231"></a>00231 
<a name="l00232"></a>00232   <span class="comment">// appended data offsets for field data</span>
<a name="l00233"></a><a class="code" href="a01957.html#aa1f48cfe79bdf1a4fb84c3cf3914ca7">00233</a>   <a class="code" href="a00034.html">OffsetsManagerGroup</a> *FieldDataOM;  <span class="comment">//one per array</span>
<a name="l00234"></a>00234 
<a name="l00235"></a>00235   <span class="comment">//BTX</span>
<a name="l00236"></a>00236   <span class="comment">// We need a 32 bit unsigned integer type for platform-independent</span>
<a name="l00237"></a>00237   <span class="comment">// binary headers.  Note that this is duplicated in</span>
<a name="l00238"></a>00238   <span class="comment">// vtkXMLDataParser.h.</span>
<a name="l00239"></a>00239 <span class="preprocessor">#if VTK_SIZEOF_SHORT == 4</span>
<a name="l00240"></a>00240 <span class="preprocessor"></span>  <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> HeaderType;
<a name="l00241"></a>00241 <span class="preprocessor">#elif VTK_SIZEOF_INT == 4</span>
<a name="l00242"></a>00242 <span class="preprocessor"></span>  <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> HeaderType;
<a name="l00243"></a>00243 <span class="preprocessor">#elif VTK_SIZEOF_LONG == 4</span>
<a name="l00244"></a>00244 <span class="preprocessor"></span>  <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> HeaderType;
<a name="l00245"></a>00245 <span class="preprocessor">#else</span>
<a name="l00246"></a>00246 <span class="preprocessor"></span><span class="preprocessor"># error "No native data type can represent an unsigned 32-bit integer."</span>
<a name="l00247"></a>00247 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00248"></a>00248 <span class="preprocessor"></span>  <span class="comment">//ETX</span>
<a name="l00249"></a>00249 
<a name="l00250"></a>00250   <span class="comment">//BTX</span>
<a name="l00251"></a>00251   <span class="comment">// We need a 32 bit signed integer type to which vtkIdType will be</span>
<a name="l00252"></a>00252   <span class="comment">// converted if Int32 is specified for the IdType parameter to this</span>
<a name="l00253"></a>00253   <span class="comment">// writer.</span>
<a name="l00254"></a>00254 <span class="preprocessor"># if VTK_SIZEOF_SHORT == 4</span>
<a name="l00255"></a>00255 <span class="preprocessor"></span>  <span class="keyword">typedef</span> <span class="keywordtype">short</span> Int32IdType;
<a name="l00256"></a>00256 <span class="preprocessor"># elif VTK_SIZEOF_INT == 4</span>
<a name="l00257"></a>00257 <span class="preprocessor"></span>  <span class="keyword">typedef</span> <span class="keywordtype">int</span> Int32IdType;
<a name="l00258"></a>00258 <span class="preprocessor"># elif VTK_SIZEOF_LONG == 4</span>
<a name="l00259"></a>00259 <span class="preprocessor"></span>  <span class="keyword">typedef</span> <span class="keywordtype">long</span> Int32IdType;
<a name="l00260"></a>00260 <span class="preprocessor"># else</span>
<a name="l00261"></a>00261 <span class="preprocessor"></span><span class="preprocessor">#  error "No native data type can represent a signed 32-bit integer."</span>
<a name="l00262"></a>00262 <span class="preprocessor"></span><span class="preprocessor"># endif  </span>
<a name="l00263"></a>00263 <span class="preprocessor"></span>  <span class="comment">//ETX</span>
<a name="l00264"></a>00264   
<a name="l00265"></a>00265   <span class="comment">// Buffer for vtkIdType conversion.</span>
<a name="l00266"></a><a class="code" href="a01957.html#6df9da33700f9818cf2ba98171af4970">00266</a>   Int32IdType* Int32IdTypeBuffer;
<a name="l00267"></a>00267   
<a name="l00268"></a>00268   <span class="comment">// The byte swapping buffer.</span>
<a name="l00269"></a><a class="code" href="a01957.html#217215d0dcd3063594b52265d669fc47">00269</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* ByteSwapBuffer;
<a name="l00270"></a>00270   
<a name="l00271"></a>00271   <span class="comment">// Compression information.</span>
<a name="l00272"></a><a class="code" href="a01957.html#b6c85d232063ea6e406075fc1835d679">00272</a>   <a class="code" href="a00361.html" title="Abstract interface for data compression classes.">vtkDataCompressor</a>* Compressor;
<a name="l00273"></a><a class="code" href="a01957.html#2ee02f1bd1354704288473bc11af61e9">00273</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>   BlockSize;  
<a name="l00274"></a><a class="code" href="a01957.html#6acda6b54083104ad1ab1b61ed67c03f">00274</a>   OffsetType  CompressionBlockNumber;
<a name="l00275"></a><a class="code" href="a01957.html#4c0cc55c011b0a1d2532c4e0a738c152">00275</a>   HeaderType*    CompressionHeader;
<a name="l00276"></a><a class="code" href="a01957.html#d542f7eba582290b0aaf8a7e57ea787e">00276</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>   CompressionHeaderLength;
<a name="l00277"></a><a class="code" href="a01957.html#21549f743300647f1a1f92142d146d04">00277</a>   OffsetType  CompressionHeaderPosition;
<a name="l00278"></a>00278   
<a name="l00279"></a>00279   <span class="comment">// The output stream used to write binary and appended data.  May</span>
<a name="l00280"></a>00280   <span class="comment">// transparently encode the data.</span>
<a name="l00281"></a><a class="code" href="a01957.html#938c0b7c8ddc05884e212fff2ccbeb6d">00281</a>   <a class="code" href="a01143.html" title="Wraps a binary output stream with a VTK interface.">vtkOutputStream</a>* DataStream;
<a name="l00282"></a>00282   
<a name="l00283"></a>00283   <span class="comment">// Allow subclasses to set the data stream.</span>
<a name="l00284"></a>00284   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetDataStream(<a class="code" href="a01143.html" title="Wraps a binary output stream with a VTK interface.">vtkOutputStream</a>*);
<a name="l00285"></a>00285   vtkGetObjectMacro(DataStream, <a class="code" href="a01143.html" title="Wraps a binary output stream with a VTK interface.">vtkOutputStream</a>);  
<a name="l00286"></a>00286   
<a name="l00287"></a>00287   <span class="comment">// Method to drive most of actual writing.</span>
<a name="l00288"></a>00288   <span class="keyword">virtual</span> <span class="keywordtype">int</span> WriteInternal();
<a name="l00289"></a>00289   
<a name="l00290"></a>00290   <span class="comment">// Method defined by subclasses to write data.  Return 1 for</span>
<a name="l00291"></a>00291   <span class="comment">// success, 0 for failure.</span>
<a name="l00292"></a><a class="code" href="a01957.html#595eed2d39e586f50a03ad0763b6ef15">00292</a>   <span class="keyword">virtual</span> <span class="keywordtype">int</span> WriteData() {<span class="keywordflow">return</span> 1;};
<a name="l00293"></a>00293   
<a name="l00294"></a>00294   <span class="comment">// Method defined by subclasses to specify the data set's type name.</span>
<a name="l00295"></a>00295   <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* GetDataSetName()=0;
<a name="l00296"></a>00296   
<a name="l00297"></a>00297   <span class="comment">// Methods to define the file's major and minor version numbers.</span>
<a name="l00298"></a>00298   <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetDataSetMajorVersion();
<a name="l00299"></a>00299   <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetDataSetMinorVersion();
<a name="l00300"></a>00300   
<a name="l00301"></a>00301   <span class="comment">// Utility methods for subclasses.</span>
<a name="l00302"></a>00302   <a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a>* GetInputAsDataSet();  
<a name="l00303"></a>00303   <span class="keywordtype">int</span> StartFile();
<a name="l00304"></a>00304   <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteFileAttributes();
<a name="l00305"></a>00305   <span class="keywordtype">int</span> EndFile();
<a name="l00306"></a>00306   <span class="keywordtype">void</span> DeleteAFile();
<a name="l00307"></a>00307   <span class="keywordtype">void</span> DeleteAFile(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>);
<a name="l00308"></a>00308 
<a name="l00309"></a>00309   <span class="keyword">virtual</span> <span class="keywordtype">int</span> WritePrimaryElement(ostream &amp;os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00310"></a>00310   <span class="keyword">virtual</span> <span class="keywordtype">void</span> WritePrimaryElementAttributes(ostream &amp;os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00311"></a>00311   <span class="keywordtype">void</span> StartAppendedData();
<a name="l00312"></a>00312   <span class="keywordtype">void</span> EndAppendedData();
<a name="l00313"></a>00313 
<a name="l00314"></a>00314   <span class="comment">// Write enough space to go back and write the given attribute with</span>
<a name="l00315"></a>00315   <span class="comment">// at most "length" characters in the value.  Returns the stream</span>
<a name="l00316"></a>00316   <span class="comment">// position at which attribute should be later written.  The default</span>
<a name="l00317"></a>00317   <span class="comment">// length of 20 is enough for a 64-bit integer written in decimal or</span>
<a name="l00318"></a>00318   <span class="comment">// a double-precision floating point value written to 13 digits of</span>
<a name="l00319"></a>00319   <span class="comment">// precision (the other 7 come from a minus sign, decimal place, and</span>
<a name="l00320"></a>00320   <span class="comment">// a big exponent like "e+300").</span>
<a name="l00321"></a>00321   OffsetType ReserveAttributeSpace(<span class="keyword">const</span> <span class="keywordtype">char</span>* attr, <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21042c5d76c3275f5d17bc1b329d83ab003">length</a>=20);
<a name="l00322"></a>00322 
<a name="l00323"></a>00323   OffsetType GetAppendedDataOffset();
<a name="l00324"></a>00324   OffsetType WriteAppendedDataOffset(OffsetType streamPos,
<a name="l00325"></a>00325                                         OffsetType &amp;lastoffset,
<a name="l00326"></a>00326                                         <span class="keyword">const</span> <span class="keywordtype">char</span>* attr=0);
<a name="l00327"></a>00327   OffsetType ForwardAppendedDataOffset(OffsetType streamPos,
<a name="l00328"></a>00328                                          OffsetType <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e69c3ea0b66a4036cbb0c6648abb252d">offset</a>,
<a name="l00329"></a>00329                                          <span class="keyword">const</span> <span class="keywordtype">char</span>* attr=0);
<a name="l00330"></a>00330   OffsetType ForwardAppendedDataDouble(OffsetType streamPos,
<a name="l00331"></a>00331                                           <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2106bf5e5151797630e91167caab3f22b9a">value</a>,
<a name="l00332"></a>00332                                           <span class="keyword">const</span> <span class="keywordtype">char</span>* attr);
<a name="l00333"></a>00333 
<a name="l00334"></a>00334   <span class="keywordtype">int</span> WriteScalarAttribute(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>, <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210eb708a412c0730a6b5f3215b36474a1e">data</a>);
<a name="l00335"></a>00335   <span class="keywordtype">int</span> WriteScalarAttribute(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>, <span class="keywordtype">float</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210eb708a412c0730a6b5f3215b36474a1e">data</a>);
<a name="l00336"></a>00336   <span class="keywordtype">int</span> WriteScalarAttribute(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>, <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210eb708a412c0730a6b5f3215b36474a1e">data</a>);
<a name="l00337"></a>00337 <span class="preprocessor">#ifdef VTK_USE_64BIT_IDS</span>
<a name="l00338"></a>00338 <span class="preprocessor"></span>  <span class="keywordtype">int</span> WriteScalarAttribute(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210eb708a412c0730a6b5f3215b36474a1e">data</a>);
<a name="l00339"></a>00339 <span class="preprocessor">#endif</span>
<a name="l00340"></a>00340 <span class="preprocessor"></span>  
<a name="l00341"></a>00341   <span class="keywordtype">int</span> WriteVectorAttribute(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>, <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21042c5d76c3275f5d17bc1b329d83ab003">length</a>, <span class="keywordtype">int</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210eb708a412c0730a6b5f3215b36474a1e">data</a>);
<a name="l00342"></a>00342   <span class="keywordtype">int</span> WriteVectorAttribute(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>, <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21042c5d76c3275f5d17bc1b329d83ab003">length</a>, <span class="keywordtype">float</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210eb708a412c0730a6b5f3215b36474a1e">data</a>);
<a name="l00343"></a>00343   <span class="keywordtype">int</span> WriteVectorAttribute(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>, <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21042c5d76c3275f5d17bc1b329d83ab003">length</a>, <span class="keywordtype">double</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210eb708a412c0730a6b5f3215b36474a1e">data</a>);
<a name="l00344"></a>00344 <span class="preprocessor">#ifdef VTK_USE_64BIT_IDS</span>
<a name="l00345"></a>00345 <span class="preprocessor"></span>  <span class="keywordtype">int</span> WriteVectorAttribute(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>, <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21042c5d76c3275f5d17bc1b329d83ab003">length</a>, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210eb708a412c0730a6b5f3215b36474a1e">data</a>);
<a name="l00346"></a>00346 <span class="preprocessor">#endif</span>
<a name="l00347"></a>00347 <span class="preprocessor"></span>  
<a name="l00348"></a>00348   <span class="keywordtype">int</span> WriteDataModeAttribute(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>);
<a name="l00349"></a>00349   <span class="keywordtype">int</span> WriteWordTypeAttribute(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>, <span class="keywordtype">int</span> dataType);
<a name="l00350"></a>00350   <span class="keywordtype">int</span> WriteStringAttribute(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>, <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2106bf5e5151797630e91167caab3f22b9a">value</a>);
<a name="l00351"></a>00351   
<a name="l00352"></a>00352   <span class="keywordtype">void</span> WriteArrayHeader(<a class="code" href="a00081.html" title="Abstract superclass for all arrays.">vtkAbstractArray</a>* a, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent,
<a name="l00353"></a>00353     <span class="keyword">const</span> <span class="keywordtype">char</span>* alternateName, <span class="keywordtype">int</span> writeNumTuples, <span class="keywordtype">int</span> timestep);
<a name="l00354"></a>00354   <span class="keywordtype">void</span> WriteArrayFooter(ostream &amp;os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent, <a class="code" href="a00081.html" title="Abstract superclass for all arrays.">vtkAbstractArray</a> *a, <span class="keywordtype">int</span> shortFormat);
<a name="l00355"></a>00355   <span class="keywordtype">void</span> WriteArrayInline(<a class="code" href="a00081.html" title="Abstract superclass for all arrays.">vtkAbstractArray</a>* a, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent,
<a name="l00356"></a>00356     <span class="keyword">const</span> <span class="keywordtype">char</span>* alternateName=0, <span class="keywordtype">int</span> writeNumTuples=0);
<a name="l00357"></a>00357   <span class="keywordtype">void</span> WriteInlineData(<a class="code" href="a00081.html" title="Abstract superclass for all arrays.">vtkAbstractArray</a>* a, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00358"></a>00358   
<a name="l00359"></a>00359   <span class="keywordtype">void</span> WriteArrayAppended(<a class="code" href="a00081.html" title="Abstract superclass for all arrays.">vtkAbstractArray</a>* a, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent,
<a name="l00360"></a>00360     <a class="code" href="a00032.html" title="Helper class due to PIMPL excess.">OffsetsManager</a> &amp;offs, <span class="keyword">const</span> <span class="keywordtype">char</span>* alternateName=0,  <span class="keywordtype">int</span> writeNumTuples=0, 
<a name="l00361"></a>00361     <span class="keywordtype">int</span> timestep=0);
<a name="l00362"></a>00362   <span class="keywordtype">int</span> WriteAsciiData(<a class="code" href="a00081.html" title="Abstract superclass for all arrays.">vtkAbstractArray</a>* a, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00363"></a>00363   <span class="keywordtype">int</span> WriteBinaryData(<a class="code" href="a00081.html" title="Abstract superclass for all arrays.">vtkAbstractArray</a>* a);
<a name="l00364"></a>00364   <span class="keywordtype">int</span> WriteBinaryDataInternal(<a class="code" href="a00081.html" title="Abstract superclass for all arrays.">vtkAbstractArray</a>* a, OffsetType data_size);
<a name="l00365"></a>00365   <span class="keywordtype">void</span> WriteArrayAppendedData(<a class="code" href="a00081.html" title="Abstract superclass for all arrays.">vtkAbstractArray</a>* a, OffsetType pos, 
<a name="l00366"></a>00366     OffsetType &amp;lastoffset);
<a name="l00367"></a>00367   
<a name="l00368"></a>00368   <span class="comment">// Methods for writing points, point data, and cell data.</span>
<a name="l00369"></a>00369   <span class="keywordtype">void</span> WriteFieldData(<a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00370"></a>00370   <span class="keywordtype">void</span> WriteFieldDataInline(<a class="code" href="a00538.html" title="represent and manipulate fields of data">vtkFieldData</a>* fd, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00371"></a>00371   <span class="keywordtype">void</span> WritePointDataInline(<a class="code" href="a01242.html" title="represent and manipulate point attribute data">vtkPointData</a>* pd, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00372"></a>00372   <span class="keywordtype">void</span> WriteCellDataInline(<a class="code" href="a00245.html" title="represent and manipulate cell attribute data">vtkCellData</a>* cd, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00373"></a>00373   <span class="keywordtype">void</span> WriteFieldDataAppended(<a class="code" href="a00538.html" title="represent and manipulate fields of data">vtkFieldData</a>* fd, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent,
<a name="l00374"></a>00374                               <a class="code" href="a00034.html">OffsetsManagerGroup</a> *fdManager);
<a name="l00375"></a>00375   <span class="keywordtype">void</span> WriteFieldDataAppendedData(<a class="code" href="a00538.html" title="represent and manipulate fields of data">vtkFieldData</a>* fd, <span class="keywordtype">int</span> timestep,
<a name="l00376"></a>00376                                   <a class="code" href="a00034.html">OffsetsManagerGroup</a> *fdManager);
<a name="l00377"></a>00377   <span class="keywordtype">void</span>  WritePointDataAppended(<a class="code" href="a01242.html" title="represent and manipulate point attribute data">vtkPointData</a>* pd, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent, 
<a name="l00378"></a>00378                                <a class="code" href="a00034.html">OffsetsManagerGroup</a> *pdManager);
<a name="l00379"></a>00379   <span class="keywordtype">void</span> WritePointDataAppendedData(<a class="code" href="a01242.html" title="represent and manipulate point attribute data">vtkPointData</a>* pd, <span class="keywordtype">int</span> timestep,
<a name="l00380"></a>00380                                   <a class="code" href="a00034.html">OffsetsManagerGroup</a> *pdManager);
<a name="l00381"></a>00381   <span class="keywordtype">void</span> WriteCellDataAppended(<a class="code" href="a00245.html" title="represent and manipulate cell attribute data">vtkCellData</a>* cd, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent, 
<a name="l00382"></a>00382                              <a class="code" href="a00034.html">OffsetsManagerGroup</a> *cdManager);
<a name="l00383"></a>00383   <span class="keywordtype">void</span> WriteCellDataAppendedData(<a class="code" href="a00245.html" title="represent and manipulate cell attribute data">vtkCellData</a>* cd, <span class="keywordtype">int</span> timestep,
<a name="l00384"></a>00384                                  <a class="code" href="a00034.html">OffsetsManagerGroup</a> *cdManager);
<a name="l00385"></a>00385   <span class="keywordtype">void</span> WriteAttributeIndices(<a class="code" href="a00376.html" title="represent and manipulate attribute data in a dataset">vtkDataSetAttributes</a>* dsa, <span class="keywordtype">char</span>** names);
<a name="l00386"></a>00386   <span class="keywordtype">void</span> WritePointsAppended(<a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2100fd9718c29b22570d5b02fa5c8de94f7">points</a>, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent, <a class="code" href="a00032.html" title="Helper class due to PIMPL excess.">OffsetsManager</a> *manager);
<a name="l00387"></a>00387   <span class="keywordtype">void</span> WritePointsAppendedData(<a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2100fd9718c29b22570d5b02fa5c8de94f7">points</a>, <span class="keywordtype">int</span> timestep, <a class="code" href="a00032.html" title="Helper class due to PIMPL excess.">OffsetsManager</a> *pdManager);
<a name="l00388"></a>00388   <span class="keywordtype">void</span> WritePointsInline(<a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2100fd9718c29b22570d5b02fa5c8de94f7">points</a>, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00389"></a>00389   <span class="keywordtype">void</span> WriteCoordinatesInline(<a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>* xc, <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>* yc,
<a name="l00390"></a>00390                               <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>* zc, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00391"></a>00391   <span class="keywordtype">void</span> WriteCoordinatesAppended(<a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>* xc, <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>* yc,
<a name="l00392"></a>00392                                 <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>* zc, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent, 
<a name="l00393"></a>00393                                 <a class="code" href="a00034.html">OffsetsManagerGroup</a> *coordManager);
<a name="l00394"></a>00394   <span class="keywordtype">void</span> WriteCoordinatesAppendedData(<a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>* xc, <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>* yc,
<a name="l00395"></a>00395                                     <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>* zc, <span class="keywordtype">int</span> timestep,
<a name="l00396"></a>00396                                     <a class="code" href="a00034.html">OffsetsManagerGroup</a> *coordManager);
<a name="l00397"></a>00397   <span class="keyword">virtual</span> <a class="code" href="a00081.html" title="Abstract superclass for all arrays.">vtkAbstractArray</a>* CreateArrayForPoints(<a class="code" href="a00081.html" title="Abstract superclass for all arrays.">vtkAbstractArray</a>* inArray);
<a name="l00398"></a>00398   <span class="keyword">virtual</span> <a class="code" href="a00081.html" title="Abstract superclass for all arrays.">vtkAbstractArray</a>* CreateArrayForCells(<a class="code" href="a00081.html" title="Abstract superclass for all arrays.">vtkAbstractArray</a>* inArray);
<a name="l00399"></a>00399   <span class="keyword">virtual</span> <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>* CreateExactCoordinates(<a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>* inArray, <span class="keywordtype">int</span> xyz);
<a name="l00400"></a>00400   <span class="keywordtype">void</span> WritePPointData(<a class="code" href="a01242.html" title="represent and manipulate point attribute data">vtkPointData</a>* pd, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00401"></a>00401   <span class="keywordtype">void</span> WritePCellData(<a class="code" href="a00245.html" title="represent and manipulate cell attribute data">vtkCellData</a>* cd, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00402"></a>00402   <span class="keywordtype">void</span> WritePPoints(<a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2100fd9718c29b22570d5b02fa5c8de94f7">points</a>, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00403"></a>00403   <span class="keywordtype">void</span> WritePArray(<a class="code" href="a00081.html" title="Abstract superclass for all arrays.">vtkAbstractArray</a>* a, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent, 
<a name="l00404"></a>00404     <span class="keyword">const</span> <span class="keywordtype">char</span>* alternateName=0);
<a name="l00405"></a>00405   <span class="keywordtype">void</span> WritePCoordinates(<a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>* xc, <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>* yc,
<a name="l00406"></a>00406                          <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>* zc, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00407"></a>00407   
<a name="l00408"></a>00408   <span class="comment">// Internal utility methods.</span>
<a name="l00409"></a>00409   <span class="keywordtype">int</span> WriteBinaryDataInternal(<span class="keywordtype">void</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210eb708a412c0730a6b5f3215b36474a1e">data</a>, OffsetType numWords, <span class="keywordtype">int</span> wordType);
<a name="l00410"></a>00410   <span class="keywordtype">int</span> WriteBinaryDataBlock(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* in_data, OffsetType numWords, <span class="keywordtype">int</span> wordType);
<a name="l00411"></a>00411   <span class="keywordtype">void</span> PerformByteSwap(<span class="keywordtype">void</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210eb708a412c0730a6b5f3215b36474a1e">data</a>, OffsetType numWords, <span class="keywordtype">int</span> wordSize);
<a name="l00412"></a>00412   <span class="keywordtype">int</span> CreateCompressionHeader(OffsetType <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e3d5e7c015dff08d8daf72a0102e1444">size</a>);
<a name="l00413"></a>00413   <span class="keywordtype">int</span> WriteCompressionBlock(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210eb708a412c0730a6b5f3215b36474a1e">data</a>, OffsetType <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e3d5e7c015dff08d8daf72a0102e1444">size</a>);
<a name="l00414"></a>00414   <span class="keywordtype">int</span> WriteCompressionHeader();
<a name="l00415"></a>00415   OffsetType GetWordTypeSize(<span class="keywordtype">int</span> dataType);
<a name="l00416"></a>00416   <span class="keyword">const</span> <span class="keywordtype">char</span>* GetWordTypeName(<span class="keywordtype">int</span> dataType);
<a name="l00417"></a>00417   OffsetType GetOutputWordTypeSize(<span class="keywordtype">int</span> dataType);
<a name="l00418"></a>00418   
<a name="l00419"></a>00419   <span class="keywordtype">char</span>** CreateStringArray(<span class="keywordtype">int</span> numStrings);
<a name="l00420"></a>00420   <span class="keywordtype">void</span> DestroyStringArray(<span class="keywordtype">int</span> numStrings, <span class="keywordtype">char</span>** strings);
<a name="l00421"></a>00421   
<a name="l00422"></a>00422   <span class="comment">// The current range over which progress is moving.  This allows for</span>
<a name="l00423"></a>00423   <span class="comment">// incrementally fine-tuned progress updates.</span>
<a name="l00424"></a>00424   <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="l00425"></a>00425   <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="l00426"></a>00426   <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="l00427"></a>00427   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetProgressPartial(<span class="keywordtype">float</span> fraction);
<a name="l00428"></a>00428   <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="l00429"></a><a class="code" href="a01957.html#c4148703688f523e88306b12de044596">00429</a>   <span class="keywordtype">float</span> ProgressRange[2];
<a name="l00430"></a>00430 
<a name="l00431"></a><a class="code" href="a01957.html#793d0740bd520d6b3242a8d069dc1008">00431</a>   ofstream* OutFile;
<a name="l00432"></a>00432 
<a name="l00433"></a>00433   <span class="keywordtype">int</span> OpenFile();
<a name="l00434"></a>00434   <span class="keywordtype">void</span> CloseFile();
<a name="l00435"></a>00435 
<a name="l00436"></a>00436   <span class="comment">// The timestep currently being written</span>
<a name="l00437"></a><a class="code" href="a01957.html#c58c14ac0792d8e47396cf54f874f846">00437</a>   <span class="keywordtype">int</span> TimeStep;
<a name="l00438"></a><a class="code" href="a01957.html#0d73377c327e79dfbf29e0ec92ced558">00438</a>   <span class="keywordtype">int</span> CurrentTimeIndex;
<a name="l00439"></a><a class="code" href="a01957.html#3e5f12315057145956c6ebb5eed7b6eb">00439</a>   <span class="keywordtype">int</span> NumberOfTimeSteps;
<a name="l00440"></a>00440   <span class="comment">// Store the range of time steps</span>
<a name="l00441"></a><a class="code" href="a01957.html#e30627f23edcae5723707c5312916bdd">00441</a>   <span class="keywordtype">int</span> TimeStepRange[2];
<a name="l00442"></a>00442 
<a name="l00443"></a>00443   <span class="comment">// Dummy boolean var to start/stop the continue executing:</span>
<a name="l00444"></a>00444   <span class="comment">// when using the Start/Stop/WriteNextTime API</span>
<a name="l00445"></a><a class="code" href="a01957.html#2626cc5cdcfa47041360a4ec9267a6cc">00445</a>   <span class="keywordtype">int</span> UserContinueExecuting; <span class="comment">//can only be -1 = invalid, 0 = stop, 1 = start</span>
<a name="l00446"></a>00446 
<a name="l00447"></a><a class="code" href="a01957.html#5ece13c8b96d37ddaac84ede03694e3d">00447</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> *NumberOfTimeValues; <span class="comment">//one per piece / per timestep</span>
<a name="l00448"></a>00448   <span class="comment">//BTX</span>
<a name="l00449"></a><a class="code" href="a01957.html#18b69663f3250202c066984bc3f66284">00449</a>   <span class="keyword">friend</span> <span class="keyword">class </span>vtkXMLWriterHelper;
<a name="l00450"></a>00450   <span class="comment">//ETX</span>
<a name="l00451"></a>00451 
<a name="l00452"></a>00452 <span class="keyword">private</span>:
<a name="l00453"></a>00453   <a class="code" href="a01957.html" title="Superclass for VTK&amp;#39;s XML file writers.">vtkXMLWriter</a>(<span class="keyword">const</span> <a class="code" href="a01957.html" title="Superclass for VTK&amp;#39;s XML file writers.">vtkXMLWriter</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00454"></a>00454   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01957.html" title="Superclass for VTK&amp;#39;s XML file writers.">vtkXMLWriter</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00455"></a>00455 };
<a name="l00456"></a>00456 
<a name="l00457"></a>00457 <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>