VTK  9.2.6
vtkXMLPolyDataReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXMLPolyDataReader.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 =========================================================================*/
44 #ifndef vtkXMLPolyDataReader_h
45 #define vtkXMLPolyDataReader_h
46 
47 #include "vtkIOXMLModule.h" // For export macro
49 
50 class vtkPolyData;
51 
52 class VTKIOXML_EXPORT vtkXMLPolyDataReader : public vtkXMLUnstructuredDataReader
53 {
54 public:
56  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
60 
66 
68 
76 
77 protected:
80 
81  const char* GetDataSetName() override;
82  void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel) override;
83  void SetupOutputTotals() override;
84  void SetupNextPiece() override;
85  void SetupPieces(int numPieces) override;
86  void DestroyPieces() override;
87 
88  void SetupOutputData() override;
89  int ReadPiece(vtkXMLDataElement* ePiece) override;
90  int ReadPieceData() override;
91 
92  // Read a data array whose tuples coorrespond to cells.
94 
95  // Get the number of cells in the given piece. Valid after
96  // UpdateInformation.
97  vtkIdType GetNumberOfCellsInPiece(int piece) override;
98 
100 
101  // The size of the UpdatePiece.
110 
111  // The cell elements for each piece.
120 
121  // For TimeStep support
123  unsigned long VertsOffset;
125  unsigned long LinesOffset;
127  unsigned long StripsOffset;
129  unsigned long PolysOffset;
130 
131 private:
133  void operator=(const vtkXMLPolyDataReader&) = delete;
134 };
135 
136 #endif
Abstract superclass for all arrays.
a simple class to control print indentation
Definition: vtkIndent.h:49
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:100
Represents an XML element and those nested inside.
Read VTK XML PolyData files.
void SetupNextPiece() override
vtkXMLDataElement ** LineElements
void SetupOutputTotals() override
virtual vtkIdType GetNumberOfVerts()
Get the number of verts/lines/strips/polys in the output.
static vtkXMLPolyDataReader * New()
const char * GetDataSetName() override
void SetupPieces(int numPieces) override
void DestroyPieces() override
virtual vtkIdType GetNumberOfStrips()
Get the number of verts/lines/strips/polys in the output.
virtual vtkIdType GetNumberOfLines()
Get the number of verts/lines/strips/polys in the output.
void GetOutputUpdateExtent(int &piece, int &numberOfPieces, int &ghostLevel) override
vtkPolyData * GetOutput()
Get the reader's output.
vtkPolyData * GetOutput(int idx)
Get the reader's output.
vtkXMLDataElement ** StripElements
vtkXMLDataElement ** PolyElements
virtual vtkIdType GetNumberOfPolys()
Get the number of verts/lines/strips/polys in the output.
vtkXMLDataElement ** VertElements
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int ReadArrayForCells(vtkXMLDataElement *da, vtkAbstractArray *outArray) override
int ReadPieceData() override
~vtkXMLPolyDataReader() override
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
int ReadPiece(vtkXMLDataElement *ePiece) override
void SetupOutputData() override
vtkIdType GetNumberOfCellsInPiece(int piece) override
Superclass for unstructured data XML readers.
int vtkIdType
Definition: vtkType.h:332