VTK  9.1.0
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=========================================================================*/
38#ifndef vtkEnSight6Reader_h
39#define vtkEnSight6Reader_h
40
41#include "vtkEnSightReader.h"
42#include "vtkIOEnSightModule.h" // For export macro
43
45class vtkIdTypeArray;
46class vtkPoints;
47
48class VTKIOENSIGHT_EXPORT vtkEnSight6Reader : 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
90 int ReadAsymmetricTensorsPerNode(const char* fileName, const char* description, int timeStep,
91 vtkMultiBlockDataSet* output) override;
92
97 int ReadTensorsPerNode(const char* fileName, const char* description, int timeStep,
98 vtkMultiBlockDataSet* output) override;
99
105 int ReadScalarsPerElement(const char* fileName, const char* description, int timeStep,
106 vtkMultiBlockDataSet* output, int numberOfComponents = 1, int component = 0) override;
107
112 int ReadVectorsPerElement(const char* fileName, const char* description, int timeStep,
113 vtkMultiBlockDataSet* output) override;
114
118 int ReadAsymmetricTensorsPerElement(const char* fileName, const char* description, int timeStep,
119 vtkMultiBlockDataSet* output) override;
120
125 int ReadTensorsPerElement(const char* fileName, const char* description, int timeStep,
126 vtkMultiBlockDataSet* output) override;
127
133 int partId, char line[256], const char* name, vtkMultiBlockDataSet* output) override;
134
140 int partId, char line[256], const char* name, vtkMultiBlockDataSet* output) override;
141
142 // global list of points for the unstructured parts of the model
145 vtkIdTypeArray* UnstructuredNodeIds; // matching of node ids to point ids
146private:
147 vtkEnSight6Reader(const vtkEnSight6Reader&) = delete;
148 void operator=(const vtkEnSight6Reader&) = delete;
149};
150
151#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.
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:113
Composite dataset that organizes datasets into blocks.
represent and manipulate 3D points
Definition: vtkPoints.h:143