VTK  9.2.6
vtkXMLUnstructuredGridReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXMLUnstructuredGridReader.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 vtkXMLUnstructuredGridReader_h
45 #define vtkXMLUnstructuredGridReader_h
46 
47 #include "vtkIOXMLModule.h" // For export macro
49 
51 class vtkIdTypeArray;
52 
54 {
55 public:
57  void PrintSelf(ostream& os, vtkIndent indent) override;
59 
61 
67 
68 protected:
71 
72  const char* GetDataSetName() override;
73  void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel) override;
74  void SetupOutputTotals() override;
75  void SetupPieces(int numPieces) override;
76  void DestroyPieces() override;
77 
78  void SetupOutputData() override;
79  int ReadPiece(vtkXMLDataElement* ePiece) override;
80  void SetupNextPiece() override;
81  int ReadPieceData() override;
82 
83  // Read a data array whose tuples correspond to cells.
85 
86  // Get the number of cells in the given piece. Valid after
87  // UpdateInformation.
88  vtkIdType GetNumberOfCellsInPiece(int piece) override;
89 
91 
92  // The index of the cell in the output where the current piece
93  // begins.
95 
96  // The Cells element for each piece.
99 
101  unsigned long CellsOffset;
102 
103 private:
105  void operator=(const vtkXMLUnstructuredGridReader&) = delete;
106 };
107 
108 #endif
Abstract superclass for all arrays.
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition: vtkIndent.h:49
Store vtkAlgorithm input/output information.
dataset represents arbitrary combinations of all possible cell types
Represents an XML element and those nested inside.
Superclass for unstructured data XML readers.
Read VTK XML UnstructuredGrid files.
void SetupNextPiece() override
void SetupPieces(int numPieces) override
vtkUnstructuredGrid * GetOutput()
Get the reader's output.
vtkUnstructuredGrid * GetOutput(int idx)
Get the reader's output.
void SetupOutputData() override
void DestroyPieces() override
const char * GetDataSetName() override
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
static vtkXMLUnstructuredGridReader * New()
int ReadPiece(vtkXMLDataElement *ePiece) override
void SetupOutputTotals() override
vtkIdType GetNumberOfCellsInPiece(int piece) override
int ReadArrayForCells(vtkXMLDataElement *da, vtkAbstractArray *outArray) override
void GetOutputUpdateExtent(int &piece, int &numberOfPieces, int &ghostLevel) override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkXMLUnstructuredGridReader() override
int vtkIdType
Definition: vtkType.h:332