VTK
dox/IO/vtkEnSight6Reader.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkEnSight6Reader.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00037 #ifndef __vtkEnSight6Reader_h
00038 #define __vtkEnSight6Reader_h
00039 
00040 #include "vtkEnSightReader.h"
00041 
00042 class vtkMultiBlockDataSet;
00043 class vtkIdTypeArray;
00044 class vtkPoints;
00045 
00046 class VTK_IO_EXPORT vtkEnSight6Reader : public vtkEnSightReader
00047 {
00048 public:
00049   static vtkEnSight6Reader *New();
00050   vtkTypeMacro(vtkEnSight6Reader, vtkEnSightReader);
00051   virtual void PrintSelf(ostream& os, vtkIndent indent);
00052   
00053 protected:
00054   vtkEnSight6Reader();
00055   ~vtkEnSight6Reader();
00056   
00058 
00060   virtual int ReadGeometryFile(const char* fileName, int timeStep,
00061                                vtkMultiBlockDataSet *output);
00063 
00065 
00067   virtual int ReadMeasuredGeometryFile(const char* fileName, int timeStep,
00068                                        vtkMultiBlockDataSet *output);
00070 
00072 
00076   virtual int ReadScalarsPerNode(const char* fileName, const char* description,
00077                                  int timeStep, vtkMultiBlockDataSet *output,
00078                                  int measured = 0,
00079                                  int numberOfComponents = 1,
00080                                  int component = 0);
00082   
00084 
00086   virtual int ReadVectorsPerNode(const char* fileName, const char* description,
00087                                  int timeStep, vtkMultiBlockDataSet *output,
00088                                  int measured = 0);
00090 
00092 
00094   virtual int ReadTensorsPerNode(const char* fileName, const char* description,
00095                                  int timeStep, vtkMultiBlockDataSet *output);
00097 
00099 
00103   virtual int ReadScalarsPerElement(const char* fileName, const char* description,
00104                                     int timeStep, vtkMultiBlockDataSet *output,
00105                                     int numberOfComponents = 1,
00106                                     int component = 0);
00108 
00110 
00112   virtual int ReadVectorsPerElement(const char* fileName, const char* description,
00113                                     int timeStep, vtkMultiBlockDataSet *output);
00115 
00117 
00119   virtual int ReadTensorsPerElement(const char* fileName, const char* description,
00120                                     int timeStep, vtkMultiBlockDataSet *output);
00122 
00124 
00126   virtual int CreateUnstructuredGridOutput(int partId, 
00127                                            char line[256], 
00128                                            const char* name,
00129                                            vtkMultiBlockDataSet *output);
00131   
00133 
00135   virtual int CreateStructuredGridOutput(int partId, 
00136                                          char line[256],
00137                                          const char* name,
00138                                          vtkMultiBlockDataSet *output);
00140   
00141   // global list of points for the unstructured parts of the model
00142   int NumberOfUnstructuredPoints;
00143   vtkPoints* UnstructuredPoints;
00144   vtkIdTypeArray* UnstructuredNodeIds; // matching of node ids to point ids
00145 private:
00146   vtkEnSight6Reader(const vtkEnSight6Reader&);  // Not implemented.
00147   void operator=(const vtkEnSight6Reader&);  // Not implemented.
00148 };
00149 
00150 #endif