VTK  9.2.6
vtkXMLPPolyDataReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXMLPPolyDataReader.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
29 #ifndef vtkXMLPPolyDataReader_h
30 #define vtkXMLPPolyDataReader_h
31 
32 #include "vtkIOXMLModule.h" // For export macro
34 
35 class vtkAbstractArray;
36 class vtkPolyData;
37 
39 {
40 public:
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43  static vtkXMLPPolyDataReader* New();
44 
46 
49  vtkPolyData* GetOutput();
50  vtkPolyData* GetOutput(int idx);
52 
53 protected:
55  ~vtkXMLPPolyDataReader() override;
56 
57  const char* GetDataSetName() override;
58  void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel) override;
59  vtkIdType GetNumberOfCellsInPiece(int piece) override;
60  vtkIdType GetNumberOfVertsInPiece(int piece);
61  vtkIdType GetNumberOfLinesInPiece(int piece);
62  vtkIdType GetNumberOfStripsInPiece(int piece);
63  vtkIdType GetNumberOfPolysInPiece(int piece);
64  void SetupOutputTotals() override;
65 
66  void SetupOutputData() override;
67  void SetupNextPiece() override;
68  int ReadPieceData() override;
69 
70  void CopyArrayForCells(vtkAbstractArray* inArray, vtkAbstractArray* outArray) override;
72  int FillOutputPortInformation(int, vtkInformation*) override;
73 
74  // The size of the UpdatePiece.
83 
84 private:
86  void operator=(const vtkXMLPPolyDataReader&) = delete;
87 };
88 
89 #endif
virtual vtkIdType GetNumberOfCellsInPiece(int piece)
virtual const char * GetDataSetName()=0
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:332
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:90
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:39
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.