VTK
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 vtkPolyData;
36 
38 {
39 public:
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42  static vtkXMLPPolyDataReader *New();
43 
45 
48  vtkPolyData *GetOutput();
49  vtkPolyData *GetOutput(int idx);
51 
52 protected:
54  ~vtkXMLPPolyDataReader() override;
55 
56  const char* GetDataSetName() override;
57  void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel) override;
58  vtkIdType GetNumberOfCellsInPiece(int piece) override;
59  vtkIdType GetNumberOfVertsInPiece(int piece);
60  vtkIdType GetNumberOfLinesInPiece(int piece);
61  vtkIdType GetNumberOfStripsInPiece(int piece);
62  vtkIdType GetNumberOfPolysInPiece(int piece);
63  void SetupOutputTotals() override;
64 
65  void SetupOutputData() override;
66  void SetupNextPiece() override;
67  int ReadPieceData() override;
68 
69  void CopyArrayForCells(vtkDataArray* inArray, vtkDataArray* outArray) override;
71  int FillOutputPortInformation(int, vtkInformation*) override;
72 
73  // The size of the UpdatePiece.
82 
83 private:
85  void operator=(const vtkXMLPPolyDataReader&) = delete;
86 };
87 
88 #endif
virtual vtkIdType GetNumberOfCellsInPiece(int piece)
virtual const char * GetDataSetName()=0
Store vtkAlgorithm input/output information.
virtual vtkXMLDataReader * CreatePieceReader()=0
Create a reader according to the data to read.
int vtkIdType
Definition: vtkType.h:347
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
Superclass for parallel unstructured data XML readers.
virtual void CopyArrayForCells(vtkDataArray *inArray, vtkDataArray *outArray)=0
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.