VTK  9.3.1
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
20 #ifndef vtkXMLPUnstructuredGridReader_h
21 #define vtkXMLPUnstructuredGridReader_h
22 
23 #include "vtkIOXMLModule.h" // For export macro
25 
26 VTK_ABI_NAMESPACE_BEGIN
27 class vtkAbstractArray;
29 
31 {
32 public:
34  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
38 
41  vtkUnstructuredGrid* GetOutput();
42  vtkUnstructuredGrid* GetOutput(int idx);
44 
45 protected:
48 
49  const char* GetDataSetName() override;
50  void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel) override;
51  void SetupOutputTotals() override;
52 
53  void SetupOutputData() override;
54  void SetupNextPiece() override;
55  int ReadPieceData() override;
56 
57  void CopyArrayForCells(vtkAbstractArray* inArray, vtkAbstractArray* outArray) override;
59  int FillOutputPortInformation(int, vtkInformation*) override;
60 
61  void SqueezeOutputArrays(vtkDataObject*) override;
62 
63  // The index of the cell in the output where the current piece
64  // begins.
66 
67 private:
69  void operator=(const vtkXMLPUnstructuredGridReader&) = delete;
70 };
71 
72 VTK_ABI_NAMESPACE_END
73 #endif
virtual void SqueezeOutputArrays(vtkDataObject *)
Give concrete classes an option to squeeze any output arrays at the end of RequestData.
Definition: vtkXMLReader.h:369
virtual const char * GetDataSetName()=0
Get the name of the data set being read.
Store vtkAlgorithm input/output information.
Abstract superclass for all arrays.
virtual vtkXMLDataReader * CreatePieceReader()=0
Create a reader according to the data to read.
int vtkIdType
Definition: vtkType.h:315
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void CopyArrayForCells(vtkAbstractArray *inArray, vtkAbstractArray *outArray)=0
int ReadPieceData() override
Actually read the current piece data.
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:28
dataset represents arbitrary combinations of all possible cell types
Read PVTK XML UnstructuredGrid files.
Superclass for parallel unstructured data XML readers.
virtual void GetOutputUpdateExtent(int &piece, int &numberOfPieces, int &ghostLevel)=0
Superclass for VTK XML file readers.
virtual void SetupOutputTotals()
static vtkAlgorithm * New()
void SetupOutputData() override
Initialize the output data.
general representation of visualization data
Definition: vtkDataObject.h:54