VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
Geometry
vtkProStarReader.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkProStarReader.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
=========================================================================*/
29
#ifndef __vtkProStarReader_h
30
#define __vtkProStarReader_h
31
32
#include "vtkIOGeometryModule.h"
// For export macro
33
#include "
vtkUnstructuredGridAlgorithm.h
"
34
35
class
VTKIOGEOMETRY_EXPORT
vtkProStarReader
:
public
vtkUnstructuredGridAlgorithm
36
{
37
public
:
38
static
vtkProStarReader
*
New
();
39
vtkTypeMacro(
vtkProStarReader
,
vtkUnstructuredGridAlgorithm
);
40
void
PrintSelf
(ostream& os,
vtkIndent
indent);
41
43
45
vtkSetStringMacro(FileName);
46
vtkGetStringMacro
(FileName);
48
50
52
vtkSetClampMacro(ScaleFactor,
double
, 0,
VTK_DOUBLE_MAX
);
53
vtkGetMacro(ScaleFactor,
double
);
55
57
58
enum
cellType
59
{
60
starcdFluidType = 1,
61
starcdSolidType = 2,
62
starcdBaffleType = 3,
63
starcdShellType = 4,
64
starcdLineType = 5,
65
starcdPointType = 6
66
};
68
70
71
enum
shapeType
72
{
73
starcdPoint = 1,
74
starcdLine = 2,
75
starcdShell = 3,
76
starcdHex = 11,
77
starcdPrism = 12,
78
starcdTet = 13,
79
starcdPyr = 14,
80
starcdPoly = 255
81
};
83
84
protected
:
85
vtkProStarReader
();
86
~
vtkProStarReader
();
87
88
int
RequestInformation
89
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
90
int
RequestData
91
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
92
97
char
*
FileName
;
98
101
double
ScaleFactor
;
102
103
private
:
104
//
105
// Internal Classes/Structures
106
//
107
struct
idMapping;
108
109
FILE* OpenFile(
const
char
*ext);
110
111
bool
ReadVrtFile(
vtkUnstructuredGrid
*output, idMapping& pointMapping);
112
bool
ReadCelFile(
vtkUnstructuredGrid
*output,
const
idMapping& pointMapping);
113
114
vtkProStarReader
(
const
vtkProStarReader
&);
// Not implemented.
115
void
operator=(
const
vtkProStarReader
&);
// Not implemented.
116
};
117
#endif
Generated on Thu May 24 2012 22:22:29 for VTK by
1.8.1