VTK  9.1.0
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 =========================================================================*/
118 #ifndef vtkXMLUnstructuredGridReader_h
119 #define vtkXMLUnstructuredGridReader_h
120 
121 #include "vtkIOXMLModule.h" // For export macro
123 
124 class vtkUnstructuredGrid;
125 class vtkIdTypeArray;
126 
128 {
129 public:
131  void PrintSelf(ostream& os, vtkIndent indent) override;
133 
135 
141 
142 protected:
145 
146  const char* GetDataSetName() override;
147  void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel) override;
148  void SetupOutputTotals() override;
149  void SetupPieces(int numPieces) override;
150  void DestroyPieces() override;
151 
152  void SetupOutputData() override;
153  int ReadPiece(vtkXMLDataElement* ePiece) override;
154  void SetupNextPiece() override;
155  int ReadPieceData() override;
156 
157  // Read a data array whose tuples correspond to cells.
159 
160  // Get the number of cells in the given piece. Valid after
161  // UpdateInformation.
162  vtkIdType GetNumberOfCellsInPiece(int piece) override;
163 
165 
166  // The index of the cell in the output where the current piece
167  // begins.
169 
170  // The Cells element for each piece.
173 
175  unsigned long CellsOffset;
176 
177 private:
179  void operator=(const vtkXMLUnstructuredGridReader&) = delete;
180 };
181 
182 #endif
vtkXMLUnstructuredGridReader::GetNumberOfCellsInPiece
vtkIdType GetNumberOfCellsInPiece(int piece) override
vtkXMLUnstructuredGridReader::FillOutputPortInformation
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
vtkIdType
int vtkIdType
Definition: vtkType.h:332
vtkXMLUnstructuredGridReader::ReadPieceData
int ReadPieceData() override
vtkXMLUnstructuredGridReader::CellsOffset
unsigned long CellsOffset
Definition: vtkXMLUnstructuredGridReader.h:175
vtkXMLUnstructuredDataReader.h
vtkXMLUnstructuredGridReader::CellsTimeStep
int CellsTimeStep
Definition: vtkXMLUnstructuredGridReader.h:174
vtkXMLUnstructuredGridReader::GetOutput
vtkUnstructuredGrid * GetOutput(int idx)
Get the reader's output.
vtkXMLUnstructuredGridReader::ReadPiece
int ReadPiece(vtkXMLDataElement *ePiece) override
vtkXMLUnstructuredGridReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkXMLUnstructuredDataReader
Superclass for unstructured data XML readers.
Definition: vtkXMLUnstructuredDataReader.h:38
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkXMLUnstructuredGridReader::SetupOutputTotals
void SetupOutputTotals() override
vtkXMLUnstructuredGridReader::DestroyPieces
void DestroyPieces() override
vtkXMLUnstructuredGridReader::SetupOutputData
void SetupOutputData() override
vtkXMLUnstructuredGridReader::CellElements
vtkXMLDataElement ** CellElements
Definition: vtkXMLUnstructuredGridReader.h:171
vtkXMLUnstructuredGridReader::SetupPieces
void SetupPieces(int numPieces) override
vtkXMLUnstructuredGridReader::~vtkXMLUnstructuredGridReader
~vtkXMLUnstructuredGridReader() override
vtkXMLDataElement
Represents an XML element and those nested inside.
Definition: vtkXMLDataElement.h:37
vtkXMLUnstructuredGridReader::GetOutputUpdateExtent
void GetOutputUpdateExtent(int &piece, int &numberOfPieces, int &ghostLevel) override
vtkXMLUnstructuredGridReader::GetOutput
vtkUnstructuredGrid * GetOutput()
Get the reader's output.
vtkAbstractArray
Abstract superclass for all arrays.
Definition: vtkAbstractArray.h:76
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:183
vtkXMLUnstructuredGridReader::StartCell
vtkIdType StartCell
Definition: vtkXMLUnstructuredGridReader.h:168
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:145
vtkXMLUnstructuredGridReader::New
static vtkXMLUnstructuredGridReader * New()
vtkXMLUnstructuredGridReader::NumberOfCells
vtkIdType * NumberOfCells
Definition: vtkXMLUnstructuredGridReader.h:172
vtkXMLUnstructuredGridReader::SetupNextPiece
void SetupNextPiece() override
vtkXMLUnstructuredGridReader::vtkXMLUnstructuredGridReader
vtkXMLUnstructuredGridReader()
vtkXMLUnstructuredGridReader::ReadArrayForCells
int ReadArrayForCells(vtkXMLDataElement *da, vtkAbstractArray *outArray) override
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:204
vtkXMLUnstructuredGridReader::GetDataSetName
const char * GetDataSetName() override
vtkXMLUnstructuredGridReader
Read VTK XML UnstructuredGrid files.
Definition: vtkXMLUnstructuredGridReader.h:128