VTK  9.5.2
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
22
23#ifndef vtkXMLUnstructuredGridReader_h
24#define vtkXMLUnstructuredGridReader_h
25
26#include "vtkIOXMLModule.h" // For export macro
28
29VTK_ABI_NAMESPACE_BEGIN
31class vtkIdTypeArray;
32
34{
35public:
37 void PrintSelf(ostream& os, vtkIndent indent) override;
39
41
47
48protected:
51
52 const char* GetDataSetName() override;
53 void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel) override;
54 void SetupOutputTotals() override;
55 void SetupPieces(int numPieces) override;
56 void DestroyPieces() override;
57
58 void SetupOutputData() override;
59 int ReadPiece(vtkXMLDataElement* ePiece) override;
60 void SetupNextPiece() override;
61 int ReadPieceData() override;
62
63 // Read a data array whose tuples correspond to cells.
65
66 // Get the number of cells in the given piece. Valid after
67 // UpdateInformation.
69
71
72 // The index of the cell in the output where the current piece
73 // begins.
75
76 // The Cells element for each piece.
79
81 unsigned long CellsOffset;
82
83private:
85 void operator=(const vtkXMLUnstructuredGridReader&) = delete;
86};
87
88VTK_ABI_NAMESPACE_END
89#endif
Abstract superclass for all arrays.
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition vtkIndent.h:29
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
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:332