VTK  9.1.0
vtkXMLPUnstructuredGridReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXMLPUnstructuredGridReader.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 =========================================================================*/
29 #ifndef vtkXMLPUnstructuredGridReader_h
30 #define vtkXMLPUnstructuredGridReader_h
31 
32 #include "vtkIOXMLModule.h" // For export macro
34 
35 class vtkAbstractArray;
37 
39 {
40 public:
42  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
46 
52 
53 protected:
56 
57  const char* GetDataSetName() override;
58  void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel) override;
59  void SetupOutputTotals() override;
60 
61  void SetupOutputData() override;
62  void SetupNextPiece() override;
63  int ReadPieceData() override;
64 
65  void CopyArrayForCells(vtkAbstractArray* inArray, vtkAbstractArray* outArray) override;
68 
70 
71  // The index of the cell in the output where the current piece
72  // begins.
74 
75 private:
77  void operator=(const vtkXMLPUnstructuredGridReader&) = delete;
78 };
79 
80 #endif
vtkXMLPUnstructuredGridReader
Read PVTK XML UnstructuredGrid files.
Definition: vtkXMLPUnstructuredGridReader.h:39
vtkXMLPUnstructuredDataReader
Superclass for parallel unstructured data XML readers.
Definition: vtkXMLPUnstructuredDataReader.h:38
vtkXMLPUnstructuredGridReader::~vtkXMLPUnstructuredGridReader
~vtkXMLPUnstructuredGridReader() override
vtkXMLPUnstructuredGridReader::GetOutput
vtkUnstructuredGrid * GetOutput(int idx)
Get the reader's output.
vtkIdType
int vtkIdType
Definition: vtkType.h:332
vtkXMLPUnstructuredGridReader::CreatePieceReader
vtkXMLDataReader * CreatePieceReader() override
Create a reader according to the data to read.
vtkXMLPUnstructuredGridReader::GetDataSetName
const char * GetDataSetName() override
vtkXMLDataReader
Superclass for VTK XML file readers.
Definition: vtkXMLDataReader.h:36
vtkXMLPUnstructuredGridReader::FillOutputPortInformation
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
vtkXMLPUnstructuredGridReader::SetupOutputTotals
void SetupOutputTotals() override
vtkXMLPUnstructuredGridReader::SqueezeOutputArrays
void SqueezeOutputArrays(vtkDataObject *) override
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkXMLPUnstructuredGridReader::SetupNextPiece
void SetupNextPiece() override
vtkXMLPUnstructuredGridReader::New
static vtkXMLPUnstructuredGridReader * New()
vtkAbstractArray
Abstract superclass for all arrays.
Definition: vtkAbstractArray.h:76
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:183
vtkXMLPUnstructuredGridReader::ReadPieceData
int ReadPieceData() override
Actually read the current piece data.
vtkXMLPUnstructuredGridReader::StartCell
vtkIdType StartCell
Definition: vtkXMLPUnstructuredGridReader.h:73
vtkXMLPUnstructuredGridReader::SetupOutputData
void SetupOutputData() override
Initialize the output data.
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:204
vtkXMLPUnstructuredGridReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkXMLPUnstructuredGridReader::CopyArrayForCells
void CopyArrayForCells(vtkAbstractArray *inArray, vtkAbstractArray *outArray) override
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:169
vtkXMLPUnstructuredDataReader.h
vtkXMLPUnstructuredGridReader::vtkXMLPUnstructuredGridReader
vtkXMLPUnstructuredGridReader()
vtkXMLPUnstructuredGridReader::GetOutputUpdateExtent
void GetOutputUpdateExtent(int &piece, int &numberOfPieces, int &ghostLevel) override
vtkXMLPUnstructuredGridReader::GetOutput
vtkUnstructuredGrid * GetOutput()
Get the reader's output.