VTK  9.3.1
vtkXMLPPolyDataReader.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 vtkXMLPPolyDataReader_h
21 #define vtkXMLPPolyDataReader_h
22 
23 #include "vtkIOXMLModule.h" // For export macro
25 
26 VTK_ABI_NAMESPACE_BEGIN
27 class vtkAbstractArray;
28 class vtkPolyData;
29 
31 {
32 public:
34  void PrintSelf(ostream& os, vtkIndent indent) override;
35  static vtkXMLPPolyDataReader* New();
36 
38 
41  vtkPolyData* GetOutput();
42  vtkPolyData* GetOutput(int idx);
44 
45 protected:
47  ~vtkXMLPPolyDataReader() override;
48 
49  const char* GetDataSetName() override;
50  void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel) override;
51  vtkIdType GetNumberOfCellsInPiece(int piece) override;
52  vtkIdType GetNumberOfVertsInPiece(int piece);
53  vtkIdType GetNumberOfLinesInPiece(int piece);
54  vtkIdType GetNumberOfStripsInPiece(int piece);
55  vtkIdType GetNumberOfPolysInPiece(int piece);
56  void SetupOutputTotals() override;
57 
58  void SetupOutputData() override;
59  void SetupNextPiece() override;
60  int ReadPieceData() override;
61 
62  void CopyArrayForCells(vtkAbstractArray* inArray, vtkAbstractArray* outArray) override;
64  int FillOutputPortInformation(int, vtkInformation*) override;
65 
66  // The size of the UpdatePiece.
75 
76 private:
78  void operator=(const vtkXMLPPolyDataReader&) = delete;
79 };
80 
81 VTK_ABI_NAMESPACE_END
82 #endif
virtual vtkIdType GetNumberOfCellsInPiece(int piece)
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
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
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
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.
Read PVTK XML PolyData files.