Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

IO/vtkEnSightGoldBinaryReader.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkEnSightGoldBinaryReader.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00044 #ifndef __vtkEnSightGoldBinaryReader_h
00045 #define __vtkEnSightGoldBinaryReader_h
00046 
00047 #include "vtkEnSightReader.h"
00048 
00049 class VTK_IO_EXPORT vtkEnSightGoldBinaryReader : public vtkEnSightReader
00050 {
00051 public:
00052   static vtkEnSightGoldBinaryReader *New();
00053   vtkTypeRevisionMacro(vtkEnSightGoldBinaryReader, vtkEnSightReader);
00054   virtual void PrintSelf(ostream& os, vtkIndent indent);
00055  
00056 protected:
00057   vtkEnSightGoldBinaryReader();
00058   ~vtkEnSightGoldBinaryReader();
00059   
00062   virtual int ReadGeometryFile(char* fileName, int timeStep);
00063 
00066   virtual int ReadMeasuredGeometryFile(char* fileName, int timeStep);
00067 
00069 
00072   virtual int ReadScalarsPerNode(char* fileName, char* description,
00073                                  int timeStep, int measured = 0,
00074                                  int numberOfComponents = 1,
00075                                  int component = 0);
00077   
00079 
00081   virtual int ReadVectorsPerNode(char* fileName, char* description,
00082                                  int timeStep, int measured = 0);
00084 
00086 
00088   virtual int ReadTensorsPerNode(char* fileName, char* description,
00089                                  int timeStep);
00091 
00093 
00096   virtual int ReadScalarsPerElement(char* fileName, char* description,
00097                                     int timeStep, int numberOfComponents = 1,
00098                                     int component = 0);
00100 
00102 
00104   virtual int ReadVectorsPerElement(char* fileName, char* description,
00105                                     int timeStep);
00107 
00109 
00111   virtual int ReadTensorsPerElement(char* fileName, char* description,
00112                                     int timeStep);
00114 
00118   virtual int CreateUnstructuredGridOutput(int partId, char line[80]);
00119   
00122   virtual int CreateStructuredGridOutput(int partId, char line[256]);
00123   
00126   int CreateRectilinearGridOutput(int partId, char line[256]);
00127   
00130   int CreateImageDataOutput(int partId, char line[80]);
00131   
00134   int ReadLine(char result[80]);
00135 
00138   int ReadInt(int *result);
00139 
00142   int ReadIntArray(int *result, int numInts);
00143 
00146   int ReadFloatArray(float *result, int numFloats);
00147 
00149 
00150   void SkipTimeStep();
00151   int SkipStructuredGrid(char line[256]);
00152   int SkipUnstructuredGrid(char line[256]);
00153   int SkipRectilinearGrid(char line[256]);
00154   int SkipImageData(char line[256]);
00156   
00157   int NodeIdsListed;
00158   int ElementIdsListed;
00159   
00160   FILE *IFile;
00161 private:
00162   vtkEnSightGoldBinaryReader(const vtkEnSightGoldBinaryReader&);  // Not implemented.
00163   void operator=(const vtkEnSightGoldBinaryReader&);  // Not implemented.
00164 };
00165 
00166 #endif