VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
vtkXMLPUnstructuredGridReader.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkXMLPUnstructuredGridReader.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 __vtkXMLPUnstructuredGridReader_h
29
#define __vtkXMLPUnstructuredGridReader_h
30
31
#include "
vtkXMLPUnstructuredDataReader.h
"
32
33
class
vtkUnstructuredGrid
;
34
35
class
VTK_IO_EXPORT
vtkXMLPUnstructuredGridReader
:
public
vtkXMLPUnstructuredDataReader
36
{
37
public
:
38
vtkTypeMacro(
vtkXMLPUnstructuredGridReader
,
vtkXMLPUnstructuredDataReader
);
39
void
PrintSelf
(ostream& os,
vtkIndent
indent);
40
static
vtkXMLPUnstructuredGridReader
*
New
();
41
43
44
vtkUnstructuredGrid
*GetOutput();
45
vtkUnstructuredGrid
*GetOutput(
int
idx);
47
48
protected
:
49
vtkXMLPUnstructuredGridReader
();
50
~
vtkXMLPUnstructuredGridReader
();
51
52
const
char
*
GetDataSetName
();
53
void
GetOutputUpdateExtent
(
int
& piece,
int
& numberOfPieces,
int
& ghostLevel);
54
void
SetupOutputTotals
();
55
56
void
SetupOutputData
();
57
void
SetupNextPiece
();
58
int
ReadPieceData
();
59
60
void
CopyArrayForCells
(
vtkDataArray
* inArray,
vtkDataArray
* outArray);
61
vtkXMLDataReader
*
CreatePieceReader
();
62
virtual
int
FillOutputPortInformation
(
int
,
vtkInformation
*);
63
64
// The index of the cell in the output where the current piece
65
// begins.
66
vtkIdType
StartCell
;
67
68
private
:
69
vtkXMLPUnstructuredGridReader
(
const
vtkXMLPUnstructuredGridReader
&);
// Not implemented.
70
void
operator=(
const
vtkXMLPUnstructuredGridReader
&);
// Not implemented.
71
};
72
73
#endif
Generated on Wed Nov 21 2012 21:33:59 for VTK by
1.8.2