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 =========================================================================*/
38 #ifndef vtkEnSight6Reader_h
39 #define vtkEnSight6Reader_h
40 
41 #include "vtkIOEnSightModule.h" // For export macro
42 #include "vtkEnSightReader.h"
43 
45 class vtkIdTypeArray;
46 class vtkPoints;
47 
48 class VTKIOENSIGHT_EXPORT vtkEnSight6Reader : public vtkEnSightReader
49 {
50 public:
53  void PrintSelf(ostream& os, vtkIndent indent) override;
54 
55 protected:
57  ~vtkEnSight6Reader() override;
58 
62  int ReadGeometryFile(const char* fileName, int timeStep,
63  vtkMultiBlockDataSet *output) override;
64 
69  int ReadMeasuredGeometryFile(const char* fileName, int timeStep,
70  vtkMultiBlockDataSet *output) override;
71 
77  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) override;
82 
87  int ReadVectorsPerNode(const char* fileName, const char* description,
88  int timeStep, vtkMultiBlockDataSet *output,
89  int measured = 0) override;
90 
95  int ReadTensorsPerNode(const char* fileName, const char* description,
96  int timeStep, vtkMultiBlockDataSet *output) override;
97 
103  int ReadScalarsPerElement(const char* fileName, const char* description,
104  int timeStep, vtkMultiBlockDataSet *output,
105  int numberOfComponents = 1,
106  int component = 0) override;
107 
112  int ReadVectorsPerElement(const char* fileName, const char* description,
113  int timeStep, vtkMultiBlockDataSet *output) override;
114 
119  int ReadTensorsPerElement(const char* fileName, const char* description,
120  int timeStep, vtkMultiBlockDataSet *output) override;
121 
127  char line[256],
128  const char* name,
129  vtkMultiBlockDataSet *output) override;
130 
136  char line[256],
137  const char* name,
138  vtkMultiBlockDataSet *output) override;
139 
140  // global list of points for the unstructured parts of the model
143  vtkIdTypeArray* UnstructuredNodeIds; // matching of node ids to point ids
144 private:
145  vtkEnSight6Reader(const vtkEnSight6Reader&) = delete;
146  void operator=(const vtkEnSight6Reader&) = delete;
147 };
148 
149 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:40
vtkEnSight6Reader::ReadTensorsPerNode
int ReadTensorsPerNode(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output) override
Read tensors per node for this dataset.
vtkEnSight6Reader::~vtkEnSight6Reader
~vtkEnSight6Reader() override
vtkEnSight6Reader::NumberOfUnstructuredPoints
int NumberOfUnstructuredPoints
Definition: vtkEnSight6Reader.h:141
vtkEnSight6Reader::CreateStructuredGridOutput
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.
vtkX3D::component
@ component
Definition: vtkX3D.h:175
vtkEnSightReader
superclass for EnSight file readers
Definition: vtkEnSightReader.h:34
vtkEnSightReader.h
vtkEnSight6Reader::ReadVectorsPerElement
int ReadVectorsPerElement(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output) override
Read vectors per element for this dataset.
vtkEnSight6Reader::ReadTensorsPerElement
int ReadTensorsPerElement(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output) override
Read tensors per element for this dataset.
vtkMultiBlockDataSet
Composite dataset that organizes datasets into blocks.
Definition: vtkMultiBlockDataSet.h:52
vtkEnSight6Reader::ReadMeasuredGeometryFile
int ReadMeasuredGeometryFile(const char *fileName, int timeStep, vtkMultiBlockDataSet *output) override
Read the measured geometry file.
vtkEnSight6Reader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkEnSight6Reader::ReadVectorsPerNode
int ReadVectorsPerNode(const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output, int measured=0) override
Read vectors per node for this dataset.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkEnSight6Reader::ReadScalarsPerNode
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.
vtkEnSight6Reader::CreateUnstructuredGridOutput
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.
vtkEnSight6Reader::ReadScalarsPerElement
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.
vtkX3D::name
@ name
Definition: vtkX3D.h:219
vtkEnSight6Reader::UnstructuredPoints
vtkPoints * UnstructuredPoints
Definition: vtkEnSight6Reader.h:142
vtkEnSight6Reader::New
static vtkEnSight6Reader * New()
vtkEnSight6Reader::ReadGeometryFile
int ReadGeometryFile(const char *fileName, int timeStep, vtkMultiBlockDataSet *output) override
Read the geometry file.
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:42
vtkX3D::description
@ description
Definition: vtkX3D.h:322
vtkEnSight6Reader
class to read EnSight6 files
Definition: vtkEnSight6Reader.h:49
vtkEnSight6Reader::vtkEnSight6Reader
vtkEnSight6Reader()
vtkEnSight6Reader::UnstructuredNodeIds
vtkIdTypeArray * UnstructuredNodeIds
Definition: vtkEnSight6Reader.h:143