VTK  9.3.0
vtkXMLPolyDataReader.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
23#ifndef vtkXMLPolyDataReader_h
24#define vtkXMLPolyDataReader_h
25
26#include "vtkIOXMLModule.h" // For export macro
28
29VTK_ABI_NAMESPACE_BEGIN
30class vtkPolyData;
31
33{
34public:
36 void PrintSelf(ostream& os, vtkIndent indent) override;
38
40
46
48
56
57protected:
60
61 const char* GetDataSetName() override;
62 void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel) override;
63 void SetupOutputTotals() override;
64 void SetupNextPiece() override;
65 void SetupPieces(int numPieces) override;
66 void DestroyPieces() override;
67
68 void SetupOutputData() override;
69 int ReadPiece(vtkXMLDataElement* ePiece) override;
70 int ReadPieceData() override;
71
72 // Read a data array whose tuples coorrespond to cells.
74
75 // Get the number of cells in the given piece. Valid after
76 // UpdateInformation.
78
80
81 // The size of the UpdatePiece.
90
91 // The cell elements for each piece.
100
101 // For TimeStep support
103 unsigned long VertsOffset;
105 unsigned long LinesOffset;
107 unsigned long StripsOffset;
109 unsigned long PolysOffset;
110
111private:
113 void operator=(const vtkXMLPolyDataReader&) = delete;
114};
115
116VTK_ABI_NAMESPACE_END
117#endif
Abstract superclass for all arrays.
a simple class to control print indentation
Definition vtkIndent.h:29
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:80
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.
vtkPolyData * GetOutput(int idx)
Get the reader's output.
void SetupPieces(int numPieces) override
const char * GetDataSetName() override
Get the name of the data set being read.
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
vtkXMLDataElement ** StripElements
vtkXMLDataElement ** PolyElements
virtual vtkIdType GetNumberOfPolys()
Get the number of verts/lines/strips/polys in the output.
vtkXMLDataElement ** VertElements
static vtkXMLPolyDataReader * New()
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
vtkPolyData * GetOutput()
Get the reader's output.
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
int ReadPiece(vtkXMLDataElement *ePiece) override
void SetupOutputData() override
Setup the output's data with allocation.
vtkIdType GetNumberOfCellsInPiece(int piece) override
Superclass for unstructured data XML readers.
int vtkIdType
Definition vtkType.h:315