VTK  9.2.6
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 =========================================================================*/
32 #ifndef vtkXMLPUnstructuredGridReader_h
33 #define vtkXMLPUnstructuredGridReader_h
34 
35 #include "vtkIOXMLModule.h" // For export macro
37 
38 class vtkAbstractArray;
40 
42 {
43 public:
45  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
49 
52  vtkUnstructuredGrid* GetOutput();
53  vtkUnstructuredGrid* GetOutput(int idx);
55 
56 protected:
59 
60  const char* GetDataSetName() override;
61  void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel) override;
62  void SetupOutputTotals() override;
63 
64  void SetupOutputData() override;
65  void SetupNextPiece() override;
66  int ReadPieceData() override;
67 
68  void CopyArrayForCells(vtkAbstractArray* inArray, vtkAbstractArray* outArray) override;
70  int FillOutputPortInformation(int, vtkInformation*) override;
71 
72  void SqueezeOutputArrays(vtkDataObject*) override;
73 
74  // The index of the cell in the output where the current piece
75  // begins.
77 
78 private:
80  void operator=(const vtkXMLPUnstructuredGridReader&) = delete;
81 };
82 
83 #endif
virtual void SqueezeOutputArrays(vtkDataObject *)
Definition: vtkXMLReader.h:320
virtual const char * GetDataSetName()=0
Store vtkAlgorithm input/output information.
Abstract superclass for all arrays.
virtual vtkXMLDataReader * CreatePieceReader()=0
Create a reader according to the data to read.
int vtkIdType
Definition: vtkType.h:332
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void CopyArrayForCells(vtkAbstractArray *inArray, vtkAbstractArray *outArray)=0
int ReadPieceData() override
Actually read the current piece data.
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:39
dataset represents arbitrary combinations of all possible cell types
Read PVTK XML UnstructuredGrid files.
Superclass for parallel unstructured data XML readers.
virtual void GetOutputUpdateExtent(int &piece, int &numberOfPieces, int &ghostLevel)=0
Superclass for VTK XML file readers.
virtual void SetupOutputTotals()
static vtkAlgorithm * New()
void SetupOutputData() override
Initialize the output data.
general representation of visualization data
Definition: vtkDataObject.h:65