VTK  9.1.0
vtkGAMBITReader.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkGAMBITReader.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=========================================================================*/
32#ifndef vtkGAMBITReader_h
33#define vtkGAMBITReader_h
34
35#include "vtkIOGeometryModule.h" // For export macro
37
38class vtkDoubleArray;
39class VTKIOGEOMETRY_EXPORT vtkGAMBITReader : public vtkUnstructuredGridAlgorithm
40{
41public:
44 void PrintSelf(ostream& os, vtkIndent indent) override;
45
47
53
55
59 vtkGetMacro(NumberOfCells, int);
61
63
67 vtkGetMacro(NumberOfNodes, int);
69
71
74 vtkGetMacro(NumberOfNodeFields, int);
75 vtkGetMacro(NumberOfCellFields, int);
77
78protected:
80 ~vtkGAMBITReader() override;
83
84 char* FileName;
85
94 istream* FileStream;
95
97 {
98 EDGE = 1,
99 QUAD = 2,
100 TRI = 3,
101 BRICK = 4,
102 PRISM = 5,
103 TETRA = 6,
104 PYRAMID = 7
105 };
106
107private:
108 void ReadFile(vtkUnstructuredGrid* output);
109 void ReadGeometry(vtkUnstructuredGrid* output);
110 void ReadNodeData(vtkUnstructuredGrid* output);
111 void ReadCellData(vtkUnstructuredGrid* output);
112
113 void ReadXYZCoords(vtkDoubleArray* coords);
114
115 void ReadCellConnectivity(vtkUnstructuredGrid* output);
116 void ReadMaterialTypes(vtkUnstructuredGrid* output);
117 void ReadBoundaryConditionSets(vtkUnstructuredGrid* output);
118
119 vtkGAMBITReader(const vtkGAMBITReader&) = delete;
120 void operator=(const vtkGAMBITReader&) = delete;
121};
122
123#endif
dynamic, self-adjusting array of double
reads a dataset in Fluent GAMBIT neutral file format
vtkGetFilePathMacro(FileName)
Specify the file name of the GAMBIT data file to read.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
static vtkGAMBITReader * New()
istream * FileStream
int NumberOfBoundaryConditionSets
vtkSetFilePathMacro(FileName)
Specify the file name of the GAMBIT data file to read.
int NumberOfCoordinateDirections
int NumberOfVelocityComponents
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkGAMBITReader() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only unstructured grid as output.
dataset represents arbitrary combinations of all possible cell types