VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
vtkXMLPolyDataReader.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkXMLPolyDataReader.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 __vtkXMLPolyDataReader_h
35
#define __vtkXMLPolyDataReader_h
36
37
#include "
vtkXMLUnstructuredDataReader.h
"
38
39
class
vtkPolyData
;
40
41
class
VTK_IO_EXPORT
vtkXMLPolyDataReader
:
public
vtkXMLUnstructuredDataReader
42
{
43
public
:
44
vtkTypeMacro(
vtkXMLPolyDataReader
,
vtkXMLUnstructuredDataReader
);
45
void
PrintSelf
(ostream& os,
vtkIndent
indent);
46
static
vtkXMLPolyDataReader
*
New
();
47
49
50
vtkPolyData
*GetOutput();
51
vtkPolyData
*GetOutput(
int
idx);
53
55
56
virtual
vtkIdType
GetNumberOfVerts();
57
virtual
vtkIdType
GetNumberOfLines();
58
virtual
vtkIdType
GetNumberOfStrips();
59
virtual
vtkIdType
GetNumberOfPolys();
61
62
protected
:
63
vtkXMLPolyDataReader
();
64
~
vtkXMLPolyDataReader
();
65
66
const
char
*
GetDataSetName
();
67
void
GetOutputUpdateExtent
(
int
& piece,
int
& numberOfPieces,
int
& ghostLevel);
68
void
SetupOutputTotals
();
69
void
SetupNextPiece
();
70
void
SetupPieces
(
int
numPieces);
71
void
DestroyPieces
();
72
73
void
SetupOutputData
();
74
int
ReadPiece
(
vtkXMLDataElement
* ePiece);
75
int
ReadPieceData
();
76
77
// Read a data array whose tuples coorrespond to cells.
78
virtual
int
ReadArrayForCells
(
vtkXMLDataElement
* da,
79
vtkAbstractArray
* outArray);
80
81
// Get the number of cells in the given piece. Valid after
82
// UpdateInformation.
83
virtual
vtkIdType
GetNumberOfCellsInPiece
(
int
piece);
84
85
virtual
int
FillOutputPortInformation
(
int
,
vtkInformation
*);
86
87
// The size of the UpdatePiece.
88
int
TotalNumberOfVerts
;
89
int
TotalNumberOfLines
;
90
int
TotalNumberOfStrips
;
91
int
TotalNumberOfPolys
;
92
vtkIdType
StartVert
;
93
vtkIdType
StartLine
;
94
vtkIdType
StartStrip
;
95
vtkIdType
StartPoly
;
96
97
// The cell elements for each piece.
98
vtkXMLDataElement
**
VertElements
;
99
vtkXMLDataElement
**
LineElements
;
100
vtkXMLDataElement
**
StripElements
;
101
vtkXMLDataElement
**
PolyElements
;
102
vtkIdType
*
NumberOfVerts
;
103
vtkIdType
*
NumberOfLines
;
104
vtkIdType
*
NumberOfStrips
;
105
vtkIdType
*
NumberOfPolys
;
106
107
// For TimeStep support
108
int
VertsTimeStep
;
109
unsigned
long
VertsOffset
;
110
int
LinesTimeStep
;
111
unsigned
long
LinesOffset
;
112
int
StripsTimeStep
;
113
unsigned
long
StripsOffset
;
114
int
PolysTimeStep
;
115
unsigned
long
PolysOffset
;
116
117
private
:
118
vtkXMLPolyDataReader
(
const
vtkXMLPolyDataReader
&);
// Not implemented.
119
void
operator=(
const
vtkXMLPolyDataReader
&);
// Not implemented.
120
};
121
122
#endif
Generated on Fri Aug 2 2013 12:20:00 for VTK by
1.8.4