VTK
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=========================================================================*/
35#ifndef vtkXMLUnstructuredGridReader_h
36#define vtkXMLUnstructuredGridReader_h
37
38#include "vtkIOXMLModule.h" // For export macro
40
42class vtkIdTypeArray;
43
45{
46public:
48 void PrintSelf(ostream& os, vtkIndent indent);
50
52
58
59protected:
62
63 const char* GetDataSetName();
64 void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel);
66 void SetupPieces(int numPieces);
68
73
74 // Read a data array whose tuples correspond to cells.
76 vtkAbstractArray* outArray);
77
78 // Get the number of cells in the given piece. Valid after
79 // UpdateInformation.
81
83
84 // The index of the cell in the output where the current piece
85 // begins.
87
88 // The Cells element for each piece.
91
93 unsigned long CellsOffset;
94
95private:
97 void operator=(const vtkXMLUnstructuredGridReader&) VTK_DELETE_FUNCTION;
98};
99
100#endif
Abstract superclass for all arrays.
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition: vtkIndent.h:40
Store vtkAlgorithm input/output information.
dataset represents arbitrary combinations of all possible cell types
Represents an XML element and those nested inside.
Superclass for unstructured data XML readers.
Read VTK XML UnstructuredGrid files.
virtual vtkIdType GetNumberOfCellsInPiece(int piece)
virtual int ReadArrayForCells(vtkXMLDataElement *da, vtkAbstractArray *outArray)
virtual int FillOutputPortInformation(int, vtkInformation *)
Fill the output port information objects for this algorithm.
void GetOutputUpdateExtent(int &piece, int &numberOfPieces, int &ghostLevel)
int ReadPiece(vtkXMLDataElement *ePiece)
static vtkXMLUnstructuredGridReader * New()
void SetupPieces(int numPieces)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkUnstructuredGrid * GetOutput()
Get the reader's output.
vtkUnstructuredGrid * GetOutput(int idx)
int vtkIdType
Definition: vtkType.h:287