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) VTK_OVERRIDE;
42  static vtkXMLPPolyDataReader *New();
43 
45 
48  vtkPolyData *GetOutput();
49  vtkPolyData *GetOutput(int idx);
51 
52 protected:
54  ~vtkXMLPPolyDataReader() VTK_OVERRIDE;
55 
56  const char* GetDataSetName() VTK_OVERRIDE;
57  void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel) VTK_OVERRIDE;
58  vtkIdType GetNumberOfCellsInPiece(int piece) VTK_OVERRIDE;
59  vtkIdType GetNumberOfVertsInPiece(int piece);
60  vtkIdType GetNumberOfLinesInPiece(int piece);
61  vtkIdType GetNumberOfStripsInPiece(int piece);
62  vtkIdType GetNumberOfPolysInPiece(int piece);
63  void SetupOutputTotals() VTK_OVERRIDE;
64 
65  void SetupOutputData() VTK_OVERRIDE;
66  void SetupNextPiece() VTK_OVERRIDE;
67  int ReadPieceData() VTK_OVERRIDE;
68 
69  void CopyArrayForCells(vtkDataArray* inArray, vtkDataArray* outArray) VTK_OVERRIDE;
70  vtkXMLDataReader* CreatePieceReader() VTK_OVERRIDE;
71  int FillOutputPortInformation(int, vtkInformation*) VTK_OVERRIDE;
72 
73  // The size of the UpdatePiece.
74  vtkIdType TotalNumberOfVerts;
75  vtkIdType TotalNumberOfLines;
76  vtkIdType TotalNumberOfStrips;
77  vtkIdType TotalNumberOfPolys;
78  vtkIdType StartVert;
79  vtkIdType StartLine;
80  vtkIdType StartStrip;
81  vtkIdType StartPoly;
82 
83 private:
84  vtkXMLPPolyDataReader(const vtkXMLPPolyDataReader&) VTK_DELETE_FUNCTION;
85  void operator=(const vtkXMLPPolyDataReader&) VTK_DELETE_FUNCTION;
86 };
87 
88 #endif
Store vtkAlgorithm input/output information.
int vtkIdType
Definition: vtkType.h:345
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.
a simple class to control print indentation
Definition: vtkIndent.h:33
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:48
Superclass for parallel unstructured data XML readers.
Superclass for VTK XML file readers.
static vtkAlgorithm * New()
Read PVTK XML PolyData files.