VTK
|
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 "vtkIOEnSightModule.h" // For export macro 00041 #include "vtkEnSightReader.h" 00042 00043 class vtkMultiBlockDataSet; 00044 class vtkIdTypeArray; 00045 class vtkPoints; 00046 00047 class VTKIOENSIGHT_EXPORT vtkEnSight6Reader : public vtkEnSightReader 00048 { 00049 public: 00050 static vtkEnSight6Reader *New(); 00051 vtkTypeMacro(vtkEnSight6Reader, vtkEnSightReader); 00052 virtual void PrintSelf(ostream& os, vtkIndent indent); 00053 00054 protected: 00055 vtkEnSight6Reader(); 00056 ~vtkEnSight6Reader(); 00057 00059 00061 virtual int ReadGeometryFile(const char* fileName, int timeStep, 00062 vtkMultiBlockDataSet *output); 00064 00066 00068 virtual int ReadMeasuredGeometryFile(const char* fileName, int timeStep, 00069 vtkMultiBlockDataSet *output); 00071 00073 00077 virtual int ReadScalarsPerNode(const char* fileName, const char* description, 00078 int timeStep, vtkMultiBlockDataSet *output, 00079 int measured = 0, 00080 int numberOfComponents = 1, 00081 int component = 0); 00083 00085 00087 virtual int ReadVectorsPerNode(const char* fileName, const char* description, 00088 int timeStep, vtkMultiBlockDataSet *output, 00089 int measured = 0); 00091 00093 00095 virtual int ReadTensorsPerNode(const char* fileName, const char* description, 00096 int timeStep, vtkMultiBlockDataSet *output); 00098 00100 00104 virtual int ReadScalarsPerElement(const char* fileName, const char* description, 00105 int timeStep, vtkMultiBlockDataSet *output, 00106 int numberOfComponents = 1, 00107 int component = 0); 00109 00111 00113 virtual int ReadVectorsPerElement(const char* fileName, const char* description, 00114 int timeStep, vtkMultiBlockDataSet *output); 00116 00118 00120 virtual int ReadTensorsPerElement(const char* fileName, const char* description, 00121 int timeStep, vtkMultiBlockDataSet *output); 00123 00125 00127 virtual int CreateUnstructuredGridOutput(int partId, 00128 char line[256], 00129 const char* name, 00130 vtkMultiBlockDataSet *output); 00132 00134 00136 virtual int CreateStructuredGridOutput(int partId, 00137 char line[256], 00138 const char* name, 00139 vtkMultiBlockDataSet *output); 00141 00142 // global list of points for the unstructured parts of the model 00143 int NumberOfUnstructuredPoints; 00144 vtkPoints* UnstructuredPoints; 00145 vtkIdTypeArray* UnstructuredNodeIds; // matching of node ids to point ids 00146 private: 00147 vtkEnSight6Reader(const vtkEnSight6Reader&); // Not implemented. 00148 void operator=(const vtkEnSight6Reader&); // Not implemented. 00149 }; 00150 00151 #endif