IO/vtkEnSightGoldBinaryReader.h Source File

Main Page Class Hierarchy Alphabetical List Compound List File List Compound 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 =========================================================================*/
    00054 #ifndef __vtkEnSightGoldBinaryReader_h
    00055 #define __vtkEnSightGoldBinaryReader_h
    00056
    00057 #include "vtkEnSightReader.h"
    00058
    00059 class VTK_IO_EXPORT vtkEnSightGoldBinaryReader : public vtkEnSightReader
    00060 {
    00061 public:
    00062   static vtkEnSightGoldBinaryReader *New();
    00063   vtkTypeRevisionMacro(vtkEnSightGoldBinaryReader, vtkEnSightReader);
    00064   virtual void PrintSelf(ostream& os, vtkIndent indent);
    00065
    00066 protected:
    00067   vtkEnSightGoldBinaryReader();
    00068   ~vtkEnSightGoldBinaryReader();
    00069
    00072   virtual int ReadGeometryFile(char* fileName, int timeStep);
    00073
    00076   virtual int ReadMeasuredGeometryFile(char* fileName, int timeStep);
    00077
    00079
    00082   virtual int ReadScalarsPerNode(char* fileName, char* description,
    00083                                  int timeStep, int measured = 0,
    00084                                  int numberOfComponents = 1,
    00085                                  int component = 0);
    00087
    00089
    00091   virtual int ReadVectorsPerNode(char* fileName, char* description,
    00092                                  int timeStep, int measured = 0);
    00094
    00096
    00098   virtual int ReadTensorsPerNode(char* fileName, char* description,
    00099                                  int timeStep);
    00101
    00103
    00106   virtual int ReadScalarsPerElement(char* fileName, char* description,
    00107                                     int timeStep, int numberOfComponents = 1,
    00108                                     int component = 0);
    00110
    00112
    00114   virtual int ReadVectorsPerElement(char* fileName, char* description,
    00115                                     int timeStep);
    00117
    00119
    00121   virtual int ReadTensorsPerElement(char* fileName, char* description,
    00122                                     int timeStep);
    00124
    00128   virtual int CreateUnstructuredGridOutput(int partId, char line[80]);
    00129
    00132   virtual int CreateStructuredGridOutput(int partId, char line[256]);
    00133
    00136   int CreateRectilinearGridOutput(int partId, char line[256]);
    00137
    00140   int CreateImageDataOutput(int partId, char line[80]);
    00141
    00144   int ReadLine(char result[80]);
    00145
    00148   int ReadInt(int *result);
    00149
    00152   int ReadIntArray(int *result, int numInts);
    00153
    00156   int ReadFloatArray(float *result, int numFloats);
    00157
    00159
    00160   void SkipTimeStep();
    00161   int SkipStructuredGrid(char line[256]);
    00162   int SkipUnstructuredGrid(char line[256]);
    00163   int SkipRectilinearGrid(char line[256]);
    00164   int SkipImageData(char line[256]);
    00166
    00167   int NodeIdsListed;
    00168   int ElementIdsListed;
    00169
    00170   FILE *IFile;
    00171 private:
    00172   vtkEnSightGoldBinaryReader(const vtkEnSightGoldBinaryReader&);  // Not implemented.
    00173   void operator=(const vtkEnSightGoldBinaryReader&);  // Not implemented.
    00174 };
    00175
    00176 #endif