VTK  9.2.6
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=========================================================================*/
35#ifndef vtkGAMBITReader_h
36#define vtkGAMBITReader_h
37
38#include "vtkIOGeometryModule.h" // For export macro
40
41class vtkDoubleArray;
42class VTKIOGEOMETRY_EXPORT vtkGAMBITReader : public vtkUnstructuredGridAlgorithm
43{
44public:
47 void PrintSelf(ostream& os, vtkIndent indent) override;
48
50
56
58
62 vtkGetMacro(NumberOfCells, int);
64
66
70 vtkGetMacro(NumberOfNodes, int);
72
74
77 vtkGetMacro(NumberOfNodeFields, int);
78 vtkGetMacro(NumberOfCellFields, int);
80
81protected:
83 ~vtkGAMBITReader() override;
86
87 char* FileName;
88
97 istream* FileStream;
98
100 {
101 EDGE = 1,
102 QUAD = 2,
103 TRI = 3,
104 BRICK = 4,
105 PRISM = 5,
106 TETRA = 6,
107 PYRAMID = 7
108 };
109
110private:
111 void ReadFile(vtkUnstructuredGrid* output);
112 void ReadGeometry(vtkUnstructuredGrid* output);
113 void ReadNodeData(vtkUnstructuredGrid* output);
114 void ReadCellData(vtkUnstructuredGrid* output);
115
116 void ReadXYZCoords(vtkDoubleArray* coords);
117
118 void ReadCellConnectivity(vtkUnstructuredGrid* output);
119 void ReadMaterialTypes(vtkUnstructuredGrid* output);
120 void ReadBoundaryConditionSets(vtkUnstructuredGrid* output);
121
122 vtkGAMBITReader(const vtkGAMBITReader&) = delete;
123 void operator=(const vtkGAMBITReader&) = delete;
124};
125
126#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()
int NumberOfBoundaryConditionSets
vtkSetFilePathMacro(FileName)
Specify the file name of the GAMBIT data file to read.
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:40
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