VTK  9.1.0
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=========================================================================*/
40#ifndef vtkEnSightGoldReader_h
41#define vtkEnSightGoldReader_h
42
43#include "vtkEnSightReader.h"
44#include "vtkIOEnSightModule.h" // For export macro
45
47
48class VTKIOENSIGHT_EXPORT vtkEnSightGoldReader : public vtkEnSightReader
49{
50public:
53 void PrintSelf(ostream& os, vtkIndent indent) override;
54
55protected:
58
62 int ReadGeometryFile(const char* fileName, int timeStep, vtkMultiBlockDataSet* output) override;
63
69 const char* fileName, int timeStep, vtkMultiBlockDataSet* output) override;
70
76 int ReadScalarsPerNode(const char* fileName, const char* description, int timeStep,
77 vtkMultiBlockDataSet* output, int measured = 0, int numberOfComponents = 1,
78 int component = 0) override;
79
84 int ReadVectorsPerNode(const char* fileName, const char* description, int timeStep,
85 vtkMultiBlockDataSet* output, int measured = 0) override;
86
91 int ReadAsymmetricTensorsPerNode(const char* fileName, const char* description, int timeStep,
92 vtkMultiBlockDataSet* output) override;
93
98 int ReadTensorsPerNode(const char* fileName, const char* description, int timeStep,
99 vtkMultiBlockDataSet* output) override;
100
106 int ReadScalarsPerElement(const char* fileName, const char* description, int timeStep,
107 vtkMultiBlockDataSet* output, int numberOfComponents = 1, int component = 0) override;
108
113 int ReadVectorsPerElement(const char* fileName, const char* description, int timeStep,
114 vtkMultiBlockDataSet* output) override;
115
120 int ReadAsymmetricTensorsPerElement(const char* fileName, const char* description, int timeStep,
121 vtkMultiBlockDataSet* output) override;
122
127 int ReadTensorsPerElement(const char* fileName, const char* description, int timeStep,
128 vtkMultiBlockDataSet* output) override;
129
136 int partId, char line[256], const char* name, vtkMultiBlockDataSet* output) override;
137
143 int partId, char line[256], const char* name, vtkMultiBlockDataSet* output) override;
144
150 int partId, char line[256], const char* name, vtkMultiBlockDataSet* output);
151
157 int partId, char line[256], const char* name, vtkMultiBlockDataSet* output);
158
161
162 class FileOffsetMapInternal;
163 FileOffsetMapInternal* FileOffsets;
164
165private:
167 void operator=(const vtkEnSightGoldReader&) = delete;
168
173 bool OpenVariableFile(const char* fname, const char* variableType);
174
179 bool SkipToTimeStep(const char* fileName, int timeStep);
180
181 class UndefPartialHelper;
182 friend class UndefPartialHelper;
183};
184
185#endif
class to read EnSight Gold files
~vtkEnSightGoldReader() override
int ReadTensorsPerElement(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output) override
Read tensors per element for this dataset.
int ReadTensorsPerNode(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output) override
Read tensors per node for this dataset.
int CreateUnstructuredGridOutput(int partId, char line[256], const char *name, vtkMultiBlockDataSet *output) override
Read an unstructured part (partId) from the geometry file and create a vtkUnstructuredGrid output.
int ReadAsymmetricTensorsPerNode(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output) override
Read asimmetric tensors per node for this dataset.
int ReadScalarsPerElement(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output, int numberOfComponents=1, int component=0) override
Read scalars per element for this dataset.
int ReadVectorsPerNode(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output, int measured=0) override
Read vectors per node for this dataset.
int ReadScalarsPerNode(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output, int measured=0, int numberOfComponents=1, int component=0) override
Read scalars per node for this dataset.
int ReadMeasuredGeometryFile(const char *fileName, int timeStep, vtkMultiBlockDataSet *output) override
Read the measured geometry file.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
FileOffsetMapInternal * FileOffsets
int CreateImageDataOutput(int partId, char line[256], const char *name, vtkMultiBlockDataSet *output)
Read a structured part from the geometry file and create a vtkImageData output.
static vtkEnSightGoldReader * New()
int ReadGeometryFile(const char *fileName, int timeStep, vtkMultiBlockDataSet *output) override
Read the geometry file.
int CreateStructuredGridOutput(int partId, char line[256], const char *name, vtkMultiBlockDataSet *output) override
Read a structured part from the geometry file and create a vtkStructuredGrid output.
int CreateRectilinearGridOutput(int partId, char line[256], const char *name, vtkMultiBlockDataSet *output)
Read a structured part from the geometry file and create a vtkRectilinearGrid output.
int ReadVectorsPerElement(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output) override
Read vectors per element for this dataset.
int ReadAsymmetricTensorsPerElement(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output) override
Read asymmetric tensors per element for this dataset.
superclass for EnSight file readers
a simple class to control print indentation
Definition: vtkIndent.h:113
Composite dataset that organizes datasets into blocks.
@ component
Definition: vtkX3D.h:181
@ description
Definition: vtkX3D.h:328
@ name
Definition: vtkX3D.h:225