VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
vtkXMLPPolyDataReader.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkXMLPPolyDataReader.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
=========================================================================*/
28
#ifndef __vtkXMLPPolyDataReader_h
29
#define __vtkXMLPPolyDataReader_h
30
31
#include "
vtkXMLPUnstructuredDataReader.h
"
32
33
class
vtkPolyData
;
34
35
class
VTK_IO_EXPORT
vtkXMLPPolyDataReader
:
public
vtkXMLPUnstructuredDataReader
36
{
37
public
:
38
vtkTypeMacro(
vtkXMLPPolyDataReader
,
vtkXMLPUnstructuredDataReader
);
39
void
PrintSelf
(ostream& os,
vtkIndent
indent);
40
static
vtkXMLPPolyDataReader
*
New
();
41
43
44
vtkPolyData
*GetOutput();
45
vtkPolyData
*GetOutput(
int
idx);
47
48
protected
:
49
vtkXMLPPolyDataReader
();
50
~
vtkXMLPPolyDataReader
();
51
52
const
char
*
GetDataSetName
();
53
void
GetOutputUpdateExtent
(
int
& piece,
int
& numberOfPieces,
int
& ghostLevel);
54
vtkIdType
GetNumberOfCellsInPiece
(
int
piece);
55
vtkIdType
GetNumberOfVertsInPiece(
int
piece);
56
vtkIdType
GetNumberOfLinesInPiece(
int
piece);
57
vtkIdType
GetNumberOfStripsInPiece(
int
piece);
58
vtkIdType
GetNumberOfPolysInPiece(
int
piece);
59
void
SetupOutputTotals
();
60
61
void
SetupOutputData
();
62
void
SetupNextPiece
();
63
int
ReadPieceData
();
64
65
void
CopyArrayForCells
(
vtkDataArray
* inArray,
vtkDataArray
* outArray);
66
vtkXMLDataReader
*
CreatePieceReader
();
67
virtual
int
FillOutputPortInformation
(
int
,
vtkInformation
*);
68
69
// The size of the UpdatePiece.
70
vtkIdType
TotalNumberOfVerts
;
71
vtkIdType
TotalNumberOfLines
;
72
vtkIdType
TotalNumberOfStrips
;
73
vtkIdType
TotalNumberOfPolys
;
74
vtkIdType
StartVert
;
75
vtkIdType
StartLine
;
76
vtkIdType
StartStrip
;
77
vtkIdType
StartPoly
;
78
79
private
:
80
vtkXMLPPolyDataReader
(
const
vtkXMLPPolyDataReader
&);
// Not implemented.
81
void
operator=(
const
vtkXMLPPolyDataReader
&);
// Not implemented.
82
};
83
84
#endif
Generated on Wed Nov 21 2012 21:33:59 for VTK by
1.8.2