VTK  9.7.20260926
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
111
112#ifndef vtkXMLUnstructuredGridReader_h
113#define vtkXMLUnstructuredGridReader_h
114
115#include "vtkIOXMLModule.h" // For export macro
116#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
118
119VTK_ABI_NAMESPACE_BEGIN
121class vtkIdTypeArray;
122
125{
126public:
128 void PrintSelf(ostream& os, vtkIndent indent) override;
130
132
138
139protected:
142
143 const char* GetDataSetName() override;
144 void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel) override;
145 void SetupOutputTotals() override;
146 void SetupPieces(int numPieces) override;
147 void DestroyPieces() override;
148
149 void SetupOutputData() override;
150 int ReadPiece(vtkXMLDataElement* ePiece) override;
151 void SetupNextPiece() override;
152 int ReadPieceData() override;
153
154 // Read a data array whose tuples correspond to cells.
156
157 // Get the number of cells in the given piece. Valid after
158 // UpdateInformation.
160
162
163 // The index of the cell in the output where the current piece
164 // begins.
166
167 // The Cells element for each piece.
170
172 unsigned long CellsOffset;
173
174private:
176 void operator=(const vtkXMLUnstructuredGridReader&) = delete;
177};
178
179VTK_ABI_NAMESPACE_END
180#endif
int idx
Definition HexCnBasis.h:79
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.
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:363
#define VTK_MARSHALAUTO