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 =========================================================================*/
00056 #ifndef __vtkEnSightGoldBinaryReader_h
00057 #define __vtkEnSightGoldBinaryReader_h
00058 
00059 #include "vtkEnSightReader.h"
00060 
00061 class VTK_IO_EXPORT vtkEnSightGoldBinaryReader : public vtkEnSightReader
00062 {
00063 public:
00064   static vtkEnSightGoldBinaryReader *New();
00065   vtkTypeRevisionMacro(vtkEnSightGoldBinaryReader, vtkEnSightReader);
00066   virtual void PrintSelf(ostream& os, vtkIndent indent);
00067  
00068 protected:
00069   vtkEnSightGoldBinaryReader();
00070   ~vtkEnSightGoldBinaryReader();
00071   
00074   virtual int ReadGeometryFile(char* fileName, int timeStep);
00075 
00078   virtual int ReadMeasuredGeometryFile(char* fileName, int timeStep);
00079 
00081 
00084   virtual int ReadScalarsPerNode(char* fileName, char* description,
00085                                  int timeStep, int measured = 0,
00086                                  int numberOfComponents = 1,
00087                                  int component = 0);
00089   
00091 
00093   virtual int ReadVectorsPerNode(char* fileName, char* description,
00094                                  int timeStep, int measured = 0);
00096 
00098 
00100   virtual int ReadTensorsPerNode(char* fileName, char* description,
00101                                  int timeStep);
00103 
00105 
00108   virtual int ReadScalarsPerElement(char* fileName, char* description,
00109                                     int timeStep, int numberOfComponents = 1,
00110                                     int component = 0);
00112 
00114 
00116   virtual int ReadVectorsPerElement(char* fileName, char* description,
00117                                     int timeStep);
00119 
00121 
00123   virtual int ReadTensorsPerElement(char* fileName, char* description,
00124                                     int timeStep);
00126 
00130   virtual int CreateUnstructuredGridOutput(int partId, char line[80]);
00131   
00134   virtual int CreateStructuredGridOutput(int partId, char line[256]);
00135   
00138   int CreateRectilinearGridOutput(int partId, char line[256]);
00139   
00142   int CreateImageDataOutput(int partId, char line[80]);
00143   
00146   int ReadLine(char result[80]);
00147 
00150   int ReadInt(int *result);
00151 
00154   int ReadIntArray(int *result, int numInts);
00155 
00158   int ReadFloatArray(float *result, int numFloats);
00159 
00161 
00162   void SkipTimeStep();
00163   int SkipStructuredGrid(char line[256]);
00164   int SkipUnstructuredGrid(char line[256]);
00165   int SkipRectilinearGrid(char line[256]);
00166   int SkipImageData(char line[256]);
00168   
00169   int NodeIdsListed;
00170   int ElementIdsListed;
00171   
00172   FILE *IFile;
00173 private:
00174   vtkEnSightGoldBinaryReader(const vtkEnSightGoldBinaryReader&);  // Not implemented.
00175   void operator=(const vtkEnSightGoldBinaryReader&);  // Not implemented.
00176 };
00177 
00178 #endif