VTK
vtkEnSight6Reader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkEnSight6Reader.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
37 #ifndef vtkEnSight6Reader_h
38 #define vtkEnSight6Reader_h
39 
40 #include "vtkIOEnSightModule.h" // For export macro
41 #include "vtkEnSightReader.h"
42 
44 class vtkIdTypeArray;
45 class vtkPoints;
46 
48 {
49 public:
50  static vtkEnSight6Reader *New();
52  virtual void PrintSelf(ostream& os, vtkIndent indent);
53 
54 protected:
57 
59 
61  virtual int ReadGeometryFile(const char* fileName, int timeStep,
62  vtkMultiBlockDataSet *output);
64 
66 
68  virtual int ReadMeasuredGeometryFile(const char* fileName, int timeStep,
69  vtkMultiBlockDataSet *output);
71 
73 
77  virtual int ReadScalarsPerNode(const char* fileName, const char* description,
78  int timeStep, vtkMultiBlockDataSet *output,
79  int measured = 0,
80  int numberOfComponents = 1,
81  int component = 0);
83 
85 
87  virtual int ReadVectorsPerNode(const char* fileName, const char* description,
88  int timeStep, vtkMultiBlockDataSet *output,
89  int measured = 0);
91 
93 
95  virtual int ReadTensorsPerNode(const char* fileName, const char* description,
96  int timeStep, vtkMultiBlockDataSet *output);
98 
100 
104  virtual int ReadScalarsPerElement(const char* fileName, const char* description,
105  int timeStep, vtkMultiBlockDataSet *output,
106  int numberOfComponents = 1,
107  int component = 0);
109 
111 
113  virtual int ReadVectorsPerElement(const char* fileName, const char* description,
114  int timeStep, vtkMultiBlockDataSet *output);
116 
118 
120  virtual int ReadTensorsPerElement(const char* fileName, const char* description,
121  int timeStep, vtkMultiBlockDataSet *output);
123 
125 
127  virtual int CreateUnstructuredGridOutput(int partId,
128  char line[256],
129  const char* name,
130  vtkMultiBlockDataSet *output);
132 
134 
136  virtual int CreateStructuredGridOutput(int partId,
137  char line[256],
138  const char* name,
139  vtkMultiBlockDataSet *output);
141 
142  // global list of points for the unstructured parts of the model
145  vtkIdTypeArray* UnstructuredNodeIds; // matching of node ids to point ids
146 private:
147  vtkEnSight6Reader(const vtkEnSight6Reader&); // Not implemented.
148  void operator=(const vtkEnSight6Reader&); // Not implemented.
149 };
150 
151 #endif
virtual int CreateStructuredGridOutput(int partId, char line[80], const char *name, vtkMultiBlockDataSet *output)=0
virtual int ReadVectorsPerNode(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output, int measured=0)=0
virtual int ReadMeasuredGeometryFile(const char *fileName, int timeStep, vtkMultiBlockDataSet *output)=0
virtual int ReadTensorsPerElement(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output)=0
dynamic, self-adjusting array of vtkIdType
virtual int ReadGeometryFile(const char *fileName, int timeStep, vtkMultiBlockDataSet *output)=0
virtual int ReadTensorsPerNode(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output)=0
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int ReadScalarsPerElement(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output, int numberOfComponents=1, int component=0)=0
void PrintSelf(ostream &os, vtkIndent indent)
superclass for EnSight file readers
class to read EnSight6 files
static vtkGenericEnSightReader * New()
vtkPoints * UnstructuredPoints
Composite dataset that organizes datasets into blocks.
virtual int CreateUnstructuredGridOutput(int partId, char line[80], const char *name, vtkMultiBlockDataSet *output)=0
virtual int ReadScalarsPerNode(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output, int measured=0, int numberOfComponents=1, int component=0)=0
vtkIdTypeArray * UnstructuredNodeIds
#define VTKIOENSIGHT_EXPORT
represent and manipulate 3D points
Definition: vtkPoints.h:38
virtual int ReadVectorsPerElement(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output)=0