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 =========================================================================*/
28 #ifndef vtkXMLPPolyDataReader_h
29 #define vtkXMLPPolyDataReader_h
30 
31 #include "vtkIOXMLModule.h" // For export macro
33 
34 class vtkPolyData;
35 
37 {
38 public:
40  void PrintSelf(ostream& os, vtkIndent indent);
41  static vtkXMLPPolyDataReader *New();
42 
44 
45  vtkPolyData *GetOutput();
46  vtkPolyData *GetOutput(int idx);
48 
49 protected:
52 
53  const char* GetDataSetName();
54  void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel);
56  vtkIdType GetNumberOfVertsInPiece(int piece);
57  vtkIdType GetNumberOfLinesInPiece(int piece);
58  vtkIdType GetNumberOfStripsInPiece(int piece);
59  vtkIdType GetNumberOfPolysInPiece(int piece);
60  void SetupOutputTotals();
61 
62  void SetupOutputData();
63  void SetupNextPiece();
64  int ReadPieceData();
65 
66  void CopyArrayForCells(vtkDataArray* inArray, vtkDataArray* outArray);
68  virtual int FillOutputPortInformation(int, vtkInformation*);
69 
70  // The size of the UpdatePiece.
79 
80 private:
81  vtkXMLPPolyDataReader(const vtkXMLPPolyDataReader&); // Not implemented.
82  void operator=(const vtkXMLPPolyDataReader&); // Not implemented.
83 };
84 
85 #endif
virtual vtkIdType GetNumberOfCellsInPiece(int piece)
virtual const char * GetDataSetName()=0
Store vtkAlgorithm input/output information.
virtual vtkXMLDataReader * CreatePieceReader()=0
int vtkIdType
Definition: vtkType.h:275
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKIOXML_EXPORT
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 PrintSelf(ostream &os, vtkIndent indent)
Read PVTK XML PolyData files.