VTK  9.7.20261008
vtkXMLPUnstructuredGridReader.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
19
20#ifndef vtkXMLPUnstructuredGridReader_h
21#define vtkXMLPUnstructuredGridReader_h
22
23#include "vtkIOXMLModule.h" // For export macro
24#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
26
27VTK_ABI_NAMESPACE_BEGIN
30
33{
34public:
36 void PrintSelf(ostream& os, vtkIndent indent) override;
38
40
46
47protected:
50
51 const char* GetDataSetName() override;
52 void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel) override;
53 void SetupOutputTotals() override;
54
55 void SetupOutputData() override;
56 void SetupNextPiece() override;
57 int ReadPieceData() override;
58
59 void CopyArrayForCells(vtkAbstractArray* inArray, vtkAbstractArray* outArray) override;
62
64
65 // The index of the cell in the output where the current piece
66 // begins.
68
69private:
71 void operator=(const vtkXMLPUnstructuredGridReader&) = delete;
72};
73
74VTK_ABI_NAMESPACE_END
75#endif
int idx
Definition HexCnBasis.h:79
Abstract superclass for all arrays.
general representation of visualization data
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
Superclass for VTK XML file readers.
void GetOutputUpdateExtent(int &piece, int &numberOfPieces, int &ghostLevel) override
void CopyArrayForCells(vtkAbstractArray *inArray, vtkAbstractArray *outArray) override
vtkUnstructuredGrid * GetOutput()
Get the reader's output.
void SetupOutputTotals() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetupNextPiece() override
vtkUnstructuredGrid * GetOutput(int idx)
Get the reader's output.
int ReadPieceData() override
Actually read the current piece data.
const char * GetDataSetName() override
Get the name of the data set being read.
~vtkXMLPUnstructuredGridReader() override
void SetupOutputData() override
Initialize the output data.
void SqueezeOutputArrays(vtkDataObject *) override
Give concrete classes an option to squeeze any output arrays at the end of RequestData.
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
static vtkXMLPUnstructuredGridReader * New()
vtkXMLDataReader * CreatePieceReader() override
Create a reader according to the data to read.
int vtkIdType
Definition vtkType.h:363
#define VTK_MARSHALAUTO