VTK  9.3.20240615
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
112#ifndef vtkXMLUnstructuredGridReader_h
113#define vtkXMLUnstructuredGridReader_h
114
115#include "vtkIOXMLModule.h" // For export macro
117
118VTK_ABI_NAMESPACE_BEGIN
120class vtkIdTypeArray;
121
123{
124public:
126 void PrintSelf(ostream& os, vtkIndent indent) override;
128
130
136
137protected:
140
141 const char* GetDataSetName() override;
142 void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel) override;
143 void SetupOutputTotals() override;
144 void SetupPieces(int numPieces) override;
145 void DestroyPieces() override;
146
147 void SetupOutputData() override;
148 int ReadPiece(vtkXMLDataElement* ePiece) override;
149 void SetupNextPiece() override;
150 int ReadPieceData() override;
151
152 // Read a data array whose tuples correspond to cells.
154
155 // Get the number of cells in the given piece. Valid after
156 // UpdateInformation.
158
160
161 // The index of the cell in the output where the current piece
162 // begins.
164
165 // The Cells element for each piece.
168
170 unsigned long CellsOffset;
171
172private:
174 void operator=(const vtkXMLUnstructuredGridReader&) = delete;
175};
176
177VTK_ABI_NAMESPACE_END
178#endif
Abstract superclass for all arrays.
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition vtkIndent.h:108
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