VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
Geometry
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
38
#include "
vtkUnstructuredGridAlgorithm.h
"
39
40
class
vtkDoubleArray
;
41
class
VTKIOGEOMETRY_EXPORT
vtkGAMBITReader
:
public
vtkUnstructuredGridAlgorithm
42
{
43
public
:
44
static
vtkGAMBITReader
*
New
();
45
vtkTypeMacro(
vtkGAMBITReader
,
vtkUnstructuredGridAlgorithm
);
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
:
73
vtkGAMBITReader
();
74
~
vtkGAMBITReader
();
75
int
RequestInformation
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
76
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
77
78
char
*
FileName
;
79
80
int
NumberOfNodes
;
81
int
NumberOfCells
;
82
int
NumberOfNodeFields
;
83
int
NumberOfCellFields
;
84
int
NumberOfElementGroups
;
85
int
NumberOfBoundaryConditionSets
;
86
int
NumberOfCoordinateDirections
;
87
int
NumberOfVelocityComponents
;
88
ifstream *
FileStream
;
89
90
//BTX
91
enum
GAMBITCellType
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
Generated on Thu May 24 2012 22:22:29 for VTK by
1.8.1