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:
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
vtkIOGeometryModule.h
vtkGAMBITReader::NumberOfBoundaryConditionSets
int NumberOfBoundaryConditionSets
Definition: vtkGAMBITReader.h:85
vtkGAMBITReader::NumberOfVelocityComponents
int NumberOfVelocityComponents
Definition: vtkGAMBITReader.h:87
vtkGAMBITReader::~vtkGAMBITReader
~vtkGAMBITReader()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkGAMBITReader::NumberOfElementGroups
int NumberOfElementGroups
Definition: vtkGAMBITReader.h:84
vtkGAMBITReader::New
static vtkGAMBITReader * New()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkGAMBITReader::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
VTKIOGEOMETRY_EXPORT
#define VTKIOGEOMETRY_EXPORT
Definition: vtkIOGeometryModule.h:15
vtkgl::coords
GLuint coords
Definition: vtkgl.h:13928
vtkGAMBITReader::NumberOfCoordinateDirections
int NumberOfCoordinateDirections
Definition: vtkGAMBITReader.h:86
vtkGAMBITReader::NumberOfCellFields
int NumberOfCellFields
Definition: vtkGAMBITReader.h:83
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetStringMacro
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:104
vtkGAMBITReader::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkGAMBITReader::FileName
char * FileName
Definition: vtkGAMBITReader.h:78
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
vtkGAMBITReader::vtkGAMBITReader
vtkGAMBITReader()
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkGAMBITReader::NumberOfCells
int NumberOfCells
Definition: vtkGAMBITReader.h:81
vtkGAMBITReader::GAMBITCellType
GAMBITCellType
Definition: vtkGAMBITReader.h:92
vtkGAMBITReader::FileStream
ifstream * FileStream
Definition: vtkGAMBITReader.h:88
vtkUnstructuredGridAlgorithm.h
vtkUnstructuredGridAlgorithm
Superclass for algorithms that produce only unstructured grid as output.
Definition: vtkUnstructuredGridAlgorithm.h:40
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:49
vtkGAMBITReader
reads a dataset in Fluent GAMBIT neutral file format
Definition: vtkGAMBITReader.h:42
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:82
vtkGAMBITReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkGAMBITReader::NumberOfNodeFields
int NumberOfNodeFields
Definition: vtkGAMBITReader.h:82
vtkGAMBITReader::NumberOfNodes
int NumberOfNodes
Definition: vtkGAMBITReader.h:80