VTK
vtkEnSightGoldReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkEnSightGoldReader.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 =========================================================================*/
43 #ifndef vtkEnSightGoldReader_h
44 #define vtkEnSightGoldReader_h
45 
46 #include "vtkIOEnSightModule.h" // For export macro
47 #include "vtkEnSightReader.h"
48 
49 
51 
52 class VTKIOENSIGHT_EXPORT vtkEnSightGoldReader : public vtkEnSightReader
53 {
54 public:
55  static vtkEnSightGoldReader *New();
57  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
59 protected:
61  ~vtkEnSightGoldReader() override;
62 
66  int ReadGeometryFile(const char* fileName, int timeStep,
67  vtkMultiBlockDataSet *output) override;
68 
73  int ReadMeasuredGeometryFile(const char* fileName, int timeStep,
74  vtkMultiBlockDataSet *output) override;
75 
81  int ReadScalarsPerNode(const char* fileName, const char* description,
82  int timeStep, vtkMultiBlockDataSet *output,
83  int measured = 0,
84  int numberOfComponents = 1,
85  int component = 0) override;
86 
91  int ReadVectorsPerNode(const char* fileName, const char* description,
92  int timeStep, vtkMultiBlockDataSet *output,
93  int measured = 0) override;
94 
99  int ReadTensorsPerNode(const char* fileName, const char* description,
100  int timeStep, vtkMultiBlockDataSet *output) override;
101 
107  int ReadScalarsPerElement(const char* fileName, const char* description,
108  int timeStep, vtkMultiBlockDataSet *output,
109  int numberOfComponents = 1,
110  int component = 0) override;
111 
116  int ReadVectorsPerElement(const char* fileName, const char* description,
117  int timeStep, vtkMultiBlockDataSet *output) override;
118 
123  int ReadTensorsPerElement(const char* fileName, const char* description,
124  int timeStep, vtkMultiBlockDataSet *output) override;
125 
131  int CreateUnstructuredGridOutput(int partId,
132  char line[256],
133  const char* name,
134  vtkMultiBlockDataSet *output) override;
135 
140  int CreateStructuredGridOutput(int partId,
141  char line[256],
142  const char* name,
143  vtkMultiBlockDataSet *output) override;
144 
149  int CreateRectilinearGridOutput(int partId, char line[256], const char* name,
150  vtkMultiBlockDataSet *output);
151 
156  int CreateImageDataOutput(int partId, char line[256], const char* name,
157  vtkMultiBlockDataSet *output);
158 
163  int CheckForUndefOrPartial(const char *line);
164 
167 
168  class UndefPartialInternal;
172  UndefPartialInternal* UndefPartial;
173 
174  class FileOffsetMapInternal;
175  FileOffsetMapInternal *FileOffsets;
176 
177 private:
179  void operator=(const vtkEnSightGoldReader&) = delete;
180 };
181 
182 #endif
virtual int CreateStructuredGridOutput(int partId, char line[80], const char *name, vtkMultiBlockDataSet *output)=0
Read a structured part from the geometry file and create a vtkStructuredGridOutput.
virtual int ReadVectorsPerNode(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output, int measured=0)=0
Read vectors per node for this dataset.
virtual int ReadMeasuredGeometryFile(const char *fileName, int timeStep, vtkMultiBlockDataSet *output)=0
Read the measured geometry file.
virtual int ReadTensorsPerElement(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output)=0
Read tensors per element for this dataset.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
class to read EnSight Gold files
virtual int ReadGeometryFile(const char *fileName, int timeStep, vtkMultiBlockDataSet *output)=0
Read the geometry file.
virtual int ReadTensorsPerNode(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output)=0
Read tensors per node for this dataset.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int ReadScalarsPerElement(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output, int numberOfComponents=1, int component=0)=0
Read scalars per element for this dataset.
FileOffsetMapInternal * FileOffsets
superclass for EnSight file readers
static vtkGenericEnSightReader * New()
Composite dataset that organizes datasets into blocks.
virtual int CreateUnstructuredGridOutput(int partId, char line[80], const char *name, vtkMultiBlockDataSet *output)=0
Read an unstructured part (partId) from the geometry file and create a vtkUnstructuredGrid output...
virtual int ReadScalarsPerNode(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output, int measured=0, int numberOfComponents=1, int component=0)=0
Read scalars per node for this dataset.
UndefPartialInternal * UndefPartial
Handle the undef / partial support for EnSight gold.
virtual int ReadVectorsPerElement(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output)=0
Read vectors per element for this dataset.