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
32#ifndef vtkXMLPolyDataReader_h
33#define vtkXMLPolyDataReader_h
34
35#include "vtkIOXMLModule.h" // For export macro
37
38VTK_ABI_NAMESPACE_BEGIN
39class vtkPolyData;
40
42{
43public:
45 void PrintSelf(ostream& os, vtkIndent indent) override;
47
49
55
57
65
66protected:
69
70 const char* GetDataSetName() override;
71 void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel) override;
72 void SetupOutputTotals() override;
73 void SetupNextPiece() override;
74 void SetupPieces(int numPieces) override;
75 void DestroyPieces() override;
76
77 void SetupOutputData() override;
78 int ReadPiece(vtkXMLDataElement* ePiece) override;
79 int ReadPieceData() override;
80
81 // Read a data array whose tuples coorrespond to cells.
83
84 // Get the number of cells in the given piece. Valid after
85 // UpdateInformation.
87
89
90 // The size of the UpdatePiece.
99
100 // The cell elements for each piece.
109
110 // For TimeStep support
112 unsigned long VertsOffset;
114 unsigned long LinesOffset;
116 unsigned long StripsOffset;
118 unsigned long PolysOffset;
119
120private:
122 void operator=(const vtkXMLPolyDataReader&) = delete;
123};
124
125VTK_ABI_NAMESPACE_END
126#endif
Abstract superclass for all arrays.
a simple class to control print indentation
Definition vtkIndent.h:38
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:89
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