VTK  9.3.0
vtkXMLUnstructuredGridReader.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
32#ifndef vtkXMLUnstructuredGridReader_h
33#define vtkXMLUnstructuredGridReader_h
34
35#include "vtkIOXMLModule.h" // For export macro
37
38VTK_ABI_NAMESPACE_BEGIN
40class vtkIdTypeArray;
41
43{
44public:
46 void PrintSelf(ostream& os, vtkIndent indent) override;
48
50
56
57protected:
60
61 const char* GetDataSetName() override;
62 void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel) override;
63 void SetupOutputTotals() override;
64 void SetupPieces(int numPieces) override;
65 void DestroyPieces() override;
66
67 void SetupOutputData() override;
68 int ReadPiece(vtkXMLDataElement* ePiece) override;
69 void SetupNextPiece() override;
70 int ReadPieceData() override;
71
72 // Read a data array whose tuples correspond to cells.
74
75 // Get the number of cells in the given piece. Valid after
76 // UpdateInformation.
78
80
81 // The index of the cell in the output where the current piece
82 // begins.
84
85 // The Cells element for each piece.
88
90 unsigned long CellsOffset;
91
92private:
94 void operator=(const vtkXMLUnstructuredGridReader&) = delete;
95};
96
97VTK_ABI_NAMESPACE_END
98#endif
Abstract superclass for all arrays.
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition vtkIndent.h:38
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.
void SetupNextPiece() override
void SetupPieces(int numPieces) override
const char * GetDataSetName() override
Get the name of the data set being read.
void SetupOutputData() override
Setup the output's data with allocation.
void DestroyPieces() override
static vtkXMLUnstructuredGridReader * New()
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
int ReadPiece(vtkXMLDataElement *ePiece) override
vtkUnstructuredGrid * GetOutput()
Get the reader's output.
void SetupOutputTotals() override
vtkIdType GetNumberOfCellsInPiece(int piece) override
int ReadArrayForCells(vtkXMLDataElement *da, vtkAbstractArray *outArray) override
void GetOutputUpdateExtent(int &piece, int &numberOfPieces, int &ghostLevel) override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkUnstructuredGrid * GetOutput(int idx)
Get the reader's output.
~vtkXMLUnstructuredGridReader() override
int vtkIdType
Definition vtkType.h:315