VTK  9.3.20240425
vtkEnSight6Reader.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
26#ifndef vtkEnSight6Reader_h
27#define vtkEnSight6Reader_h
28
29#include "vtkEnSightReader.h"
30#include "vtkIOEnSightModule.h" // For export macro
31
32VTK_ABI_NAMESPACE_BEGIN
34class vtkIdTypeArray;
35class vtkPoints;
36
37class VTKIOENSIGHT_EXPORT vtkEnSight6Reader : public vtkEnSightReader
38{
39public:
42 void PrintSelf(ostream& os, vtkIndent indent) override;
43
44protected:
47
51 int ReadGeometryFile(const char* fileName, int timeStep, vtkMultiBlockDataSet* output) override;
52
58 const char* fileName, int timeStep, vtkMultiBlockDataSet* output) override;
59
65 int ReadScalarsPerNode(const char* fileName, const char* description, int timeStep,
66 vtkMultiBlockDataSet* output, int measured = 0, int numberOfComponents = 1,
67 int component = 0) override;
68
73 int ReadVectorsPerNode(const char* fileName, const char* description, int timeStep,
74 vtkMultiBlockDataSet* output, int measured = 0) override;
75
79 int ReadAsymmetricTensorsPerNode(const char* fileName, const char* description, int timeStep,
80 vtkMultiBlockDataSet* output) override;
81
86 int ReadTensorsPerNode(const char* fileName, const char* description, int timeStep,
87 vtkMultiBlockDataSet* output) override;
88
94 int ReadScalarsPerElement(const char* fileName, const char* description, int timeStep,
95 vtkMultiBlockDataSet* output, int numberOfComponents = 1, int component = 0) override;
96
101 int ReadVectorsPerElement(const char* fileName, const char* description, int timeStep,
102 vtkMultiBlockDataSet* output) override;
103
107 int ReadAsymmetricTensorsPerElement(const char* fileName, const char* description, int timeStep,
108 vtkMultiBlockDataSet* output) override;
109
114 int ReadTensorsPerElement(const char* fileName, const char* description, int timeStep,
115 vtkMultiBlockDataSet* output) override;
116
122 int partId, char line[256], const char* name, vtkMultiBlockDataSet* output) override;
123
129 int partId, char line[256], const char* name, vtkMultiBlockDataSet* output) override;
130
134 virtual void CleanUpCache();
135
136 // global list of points for the unstructured parts of the model
139 vtkIdTypeArray* UnstructuredNodeIds; // matching of node ids to point ids
140private:
141 vtkEnSight6Reader(const vtkEnSight6Reader&) = delete;
142 void operator=(const vtkEnSight6Reader&) = delete;
143};
144
145VTK_ABI_NAMESPACE_END
146#endif
class to read EnSight6 files
int ReadAsymmetricTensorsPerNode(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output) override
Not implemented, always return 0;.
int ReadAsymmetricTensorsPerElement(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output) override
Not implemented, always return 0;.
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 ReadGeometryFile(const char *fileName, int timeStep, vtkMultiBlockDataSet *output) override
Read the geometry file.
virtual void CleanUpCache()
Clean up the internal cached data.
int ReadVectorsPerNode(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output, int measured=0) override
Read vectors 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.
int CreateStructuredGridOutput(int partId, char line[256], const char *name, vtkMultiBlockDataSet *output) override
Read a structured part from the geometry file and create a vtkStructuredGridOutput.
~vtkEnSight6Reader() override
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.
static vtkEnSight6Reader * New()
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 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.
vtkIdTypeArray * UnstructuredNodeIds
vtkPoints * UnstructuredPoints
int ReadVectorsPerElement(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output) override
Read vectors per element for this dataset.
superclass for EnSight file readers
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition vtkIndent.h:108
Composite dataset that organizes datasets into blocks.
represent and manipulate 3D points
Definition vtkPoints.h:139