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

IO/vtkEnSight6Reader.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkEnSight6Reader.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 =========================================================================*/
00051 #ifndef __vtkEnSight6Reader_h
00052 #define __vtkEnSight6Reader_h
00053 
00054 #include "vtkEnSightReader.h"
00055 
00056 class vtkIdTypeArray;
00057 class vtkPoints;
00058 
00059 class VTK_IO_EXPORT vtkEnSight6Reader : public vtkEnSightReader
00060 {
00061 public:
00062   static vtkEnSight6Reader *New();
00063   vtkTypeRevisionMacro(vtkEnSight6Reader, vtkEnSightReader);
00064   virtual void PrintSelf(ostream& os, vtkIndent indent);
00065   
00066 protected:
00067   vtkEnSight6Reader();
00068   ~vtkEnSight6Reader();
00069   
00072   virtual int ReadGeometryFile(char* fileName, int timeStep);
00073 
00076   virtual int ReadMeasuredGeometryFile(char* fileName, int timeStep);
00077 
00079 
00083   virtual int ReadScalarsPerNode(char* fileName, char* description,
00084                                  int timeStep, int measured = 0,
00085                                  int numberOfComponents = 1,
00086                                  int component = 0);
00088   
00090 
00092   virtual int ReadVectorsPerNode(char* fileName, char* description,
00093                                  int timeStep, int measured = 0);
00095 
00097 
00099   virtual int ReadTensorsPerNode(char* fileName, char* description,
00100                                  int timeStep);
00102 
00104 
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 
00129   virtual int CreateUnstructuredGridOutput(int partId, char line[256]);
00130   
00133   virtual int CreateStructuredGridOutput(int partId, char line[256]);
00134   
00135   // global list of points for the unstructured parts of the model
00136   int NumberOfUnstructuredPoints;
00137   vtkPoints* UnstructuredPoints;
00138   vtkIdTypeArray* UnstructuredNodeIds; // matching of node ids to point ids
00139 private:
00140   vtkEnSight6Reader(const vtkEnSight6Reader&);  // Not implemented.
00141   void operator=(const vtkEnSight6Reader&);  // Not implemented.
00142 };
00143 
00144 #endif