VTK
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 =========================================================================*/
34 #ifndef vtkGAMBITReader_h
35 #define vtkGAMBITReader_h
36 
37 #include "vtkIOGeometryModule.h" // For export macro
39 
40 class vtkDoubleArray;
42 {
43 public:
44  static vtkGAMBITReader *New();
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
49 
50  vtkSetStringMacro(FileName);
51  vtkGetStringMacro(FileName);
53 
55 
57  vtkGetMacro(NumberOfCells,int);
59 
61 
63  vtkGetMacro(NumberOfNodes,int);
65 
67 
68  vtkGetMacro(NumberOfNodeFields,int);
69  vtkGetMacro(NumberOfCellFields,int);
71 
72 protected:
74  ~vtkGAMBITReader();
77 
78  char *FileName;
79 
88  ifstream *FileStream;
89 
90  //BTX
92  {
93  EDGE = 1,
94  QUAD = 2,
95  TRI = 3,
96  BRICK = 4,
97  PRISM = 5,
98  TETRA = 6,
99  PYRAMID = 7
100  };
101  //ETX
102 
103 private:
104  void ReadFile(vtkUnstructuredGrid *output);
105  void ReadGeometry(vtkUnstructuredGrid *output);
106  void ReadNodeData(vtkUnstructuredGrid *output);
107  void ReadCellData(vtkUnstructuredGrid *output);
108 
109  void ReadXYZCoords(vtkDoubleArray *coords);
110 
111  void ReadCellConnectivity(vtkUnstructuredGrid *output);
112  void ReadMaterialTypes(vtkUnstructuredGrid *output);
113  void ReadBoundaryConditionSets(vtkUnstructuredGrid *output);
114 
115  vtkGAMBITReader(const vtkGAMBITReader&); // Not implemented.
116  void operator=(const vtkGAMBITReader&); // Not implemented.
117 };
118 
119 #endif
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store vtkAlgorithm input/output information.
int NumberOfBoundaryConditionSets
static vtkUnstructuredGridAlgorithm * New()
int NumberOfCoordinateDirections
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKIOGEOMETRY_EXPORT
dynamic, self-adjusting array of double
int NumberOfVelocityComponents
a simple class to control print indentation
Definition: vtkIndent.h:38
dataset represents arbitrary combinations of all possible cell types
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only unstructured grid as output.
Store zero or more vtkInformation instances.
ifstream * FileStream
reads a dataset in Fluent GAMBIT neutral file format