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 =========================================================================*/
144 #ifndef vtkXMLPolyDataReader_h
145 #define vtkXMLPolyDataReader_h
146 
147 #include "vtkIOXMLModule.h" // For export macro
149 
150 class vtkPolyData;
151 
153 {
154 public:
156  void PrintSelf(ostream& os, vtkIndent indent) override;
158 
160 
166 
168 
176 
177 protected:
180 
181  const char* GetDataSetName() override;
182  void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel) override;
183  void SetupOutputTotals() override;
184  void SetupNextPiece() override;
185  void SetupPieces(int numPieces) override;
186  void DestroyPieces() override;
187 
188  void SetupOutputData() override;
189  int ReadPiece(vtkXMLDataElement* ePiece) override;
190  int ReadPieceData() override;
191 
192  // Read a data array whose tuples coorrespond to cells.
194 
195  // Get the number of cells in the given piece. Valid after
196  // UpdateInformation.
197  vtkIdType GetNumberOfCellsInPiece(int piece) override;
198 
200 
201  // The size of the UpdatePiece.
210 
211  // The cell elements for each piece.
220 
221  // For TimeStep support
223  unsigned long VertsOffset;
225  unsigned long LinesOffset;
227  unsigned long StripsOffset;
229  unsigned long PolysOffset;
230 
231 private:
233  void operator=(const vtkXMLPolyDataReader&) = delete;
234 };
235 
236 #endif
Abstract superclass for all arrays.
a simple class to control print indentation
Definition: vtkIndent.h:119
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:200
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