VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
vtkXMLUnstructuredGridReader.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkXMLUnstructuredGridReader.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 __vtkXMLUnstructuredGridReader_h
35
#define __vtkXMLUnstructuredGridReader_h
36
37
#include "
vtkXMLUnstructuredDataReader.h
"
38
39
class
vtkUnstructuredGrid
;
40
class
vtkIdTypeArray
;
41
42
class
VTK_IO_EXPORT
vtkXMLUnstructuredGridReader
:
public
vtkXMLUnstructuredDataReader
43
{
44
public
:
45
vtkTypeMacro(
vtkXMLUnstructuredGridReader
,
vtkXMLUnstructuredDataReader
);
46
void
PrintSelf
(ostream& os,
vtkIndent
indent);
47
static
vtkXMLUnstructuredGridReader
*
New
();
48
50
51
vtkUnstructuredGrid
*GetOutput();
52
vtkUnstructuredGrid
*GetOutput(
int
idx);
54
55
protected
:
56
vtkXMLUnstructuredGridReader
();
57
~
vtkXMLUnstructuredGridReader
();
58
59
const
char
*
GetDataSetName
();
60
void
GetOutputUpdateExtent
(
int
& piece,
int
& numberOfPieces,
int
& ghostLevel);
61
void
SetupOutputTotals
();
62
void
SetupPieces
(
int
numPieces);
63
void
DestroyPieces
();
64
65
void
SetupOutputData
();
66
int
ReadPiece
(
vtkXMLDataElement
* ePiece);
67
void
SetupNextPiece
();
68
int
ReadPieceData
();
69
70
// Read a data array whose tuples correspond to cells.
71
virtual
int
ReadArrayForCells
(
vtkXMLDataElement
* da,
72
vtkAbstractArray
* outArray);
73
74
// Get the number of cells in the given piece. Valid after
75
// UpdateInformation.
76
virtual
vtkIdType
GetNumberOfCellsInPiece
(
int
piece);
77
78
virtual
int
FillOutputPortInformation
(
int
,
vtkInformation
*);
79
80
// The index of the cell in the output where the current piece
81
// begins.
82
vtkIdType
StartCell
;
83
84
// The Cells element for each piece.
85
vtkXMLDataElement
**
CellElements
;
86
vtkIdType
*
NumberOfCells
;
87
88
int
CellsTimeStep
;
89
unsigned
long
CellsOffset
;
90
91
private
:
92
vtkXMLUnstructuredGridReader
(
const
vtkXMLUnstructuredGridReader
&);
// Not implemented.
93
void
operator=(
const
vtkXMLUnstructuredGridReader
&);
// Not implemented.
94
};
95
96
#endif
Generated on Thu Mar 13 2014 08:10:24 for VTK by
1.8.1.2