VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
vtkXMLPUnstructuredDataReader.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkXMLPUnstructuredDataReader.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
=========================================================================*/
25
#ifndef __vtkXMLPUnstructuredDataReader_h
26
#define __vtkXMLPUnstructuredDataReader_h
27
28
#include "
vtkXMLPDataReader.h
"
29
30
class
vtkPointSet
;
31
class
vtkCellArray
;
32
class
vtkXMLUnstructuredDataReader
;
33
34
class
VTK_IO_EXPORT
vtkXMLPUnstructuredDataReader
:
public
vtkXMLPDataReader
35
{
36
public
:
37
vtkTypeMacro(
vtkXMLPUnstructuredDataReader
,
vtkXMLPDataReader
);
38
void
PrintSelf
(ostream& os,
vtkIndent
indent);
39
40
// For the specified port, copy the information this reader sets up in
41
// SetupOutputInformation to outInfo
42
virtual
void
CopyOutputInformation
(
vtkInformation
*outInfo,
int
port
);
43
44
protected
:
45
vtkXMLPUnstructuredDataReader
();
46
~
vtkXMLPUnstructuredDataReader
();
47
48
vtkPointSet
* GetOutputAsPointSet();
49
vtkPointSet
* GetPieceInputAsPointSet(
int
piece);
50
virtual
void
SetupOutputTotals();
51
virtual
void
SetupNextPiece();
52
vtkIdType
GetNumberOfPoints
();
53
vtkIdType
GetNumberOfCells
();
54
void
CopyArrayForPoints
(
vtkDataArray
* inArray,
vtkDataArray
* outArray);
55
56
void
SetupEmptyOutput
();
57
58
// Setup the output's information.
59
void
SetupOutputInformation
(
vtkInformation
*outInfo);
60
61
void
SetupOutputData
();
62
virtual
void
GetOutputUpdateExtent(
int
& piece,
int
& numberOfPieces,
63
int
& ghostLevel)=0;
64
65
// Pipeline execute data driver. Called by vtkXMLReader.
66
void
ReadXMLData
();
67
int
ReadPrimaryElement
(
vtkXMLDataElement
* ePrimary);
68
void
SetupUpdateExtent(
int
piece,
int
numberOfPieces,
int
ghostLevel);
69
70
int
ReadPieceData
();
71
void
CopyCellArray(
vtkIdType
totalNumberOfCells,
vtkCellArray
* inCells,
72
vtkCellArray
* outCells);
73
74
// Get the number of points/cells in the given piece. Valid after
75
// UpdateInformation.
76
virtual
vtkIdType
GetNumberOfPointsInPiece(
int
piece);
77
virtual
vtkIdType
GetNumberOfCellsInPiece(
int
piece);
78
79
// The update request.
80
int
UpdatePiece
;
81
int
UpdateNumberOfPieces
;
82
int
UpdateGhostLevel
;
83
84
// The range of pieces from the file that will form the UpdatePiece.
85
int
StartPiece
;
86
int
EndPiece
;
87
vtkIdType
TotalNumberOfPoints
;
88
vtkIdType
TotalNumberOfCells
;
89
vtkIdType
StartPoint
;
90
91
// The PPoints element with point information.
92
vtkXMLDataElement
*
PPointsElement
;
93
94
private
:
95
vtkXMLPUnstructuredDataReader
(
const
vtkXMLPUnstructuredDataReader
&);
// Not implemented.
96
void
operator=(
const
vtkXMLPUnstructuredDataReader
&);
// Not implemented.
97
};
98
99
#endif
Generated on Wed May 30 2012 13:22:19 for VTK by
1.8.1