VTK  9.7.20260928
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
131
132#ifndef vtkXMLPolyDataReader_h
133#define vtkXMLPolyDataReader_h
134
135#include "vtkIOXMLModule.h" // For export macro
136#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
138
139VTK_ABI_NAMESPACE_BEGIN
140class vtkPolyData;
141
143{
144public:
146 void PrintSelf(ostream& os, vtkIndent indent) override;
148
150
156
158
166
167protected:
170
171 const char* GetDataSetName() override;
172 void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel) override;
173 void SetupOutputTotals() override;
174 void SetupNextPiece() override;
175 void SetupPieces(int numPieces) override;
176 void DestroyPieces() override;
177
178 void SetupOutputData() override;
179 int ReadPiece(vtkXMLDataElement* ePiece) override;
180 int ReadPieceData() override;
181
182 // Read a data array whose tuples coorrespond to cells.
184
185 // Get the number of cells in the given piece. Valid after
186 // UpdateInformation.
188
190
191 // The size of the UpdatePiece.
200
201 // The cell elements for each piece.
210
211 // For TimeStep support
213 unsigned long VertsOffset;
215 unsigned long LinesOffset;
217 unsigned long StripsOffset;
219 unsigned long PolysOffset;
220
221private:
223 void operator=(const vtkXMLPolyDataReader&) = delete;
224};
225
226VTK_ABI_NAMESPACE_END
227#endif
int idx
Definition HexCnBasis.h:79
Abstract superclass for all arrays.
a simple class to control print indentation
Definition vtkIndent.h:108
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Represents an XML element and those nested inside.
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
int vtkIdType
Definition vtkType.h:363
#define VTK_MARSHALAUTO