VTK
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 
36 
38 {
39 public:
41  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
45 
48  vtkUnstructuredGrid *GetOutput();
49  vtkUnstructuredGrid *GetOutput(int idx);
51 
52 protected:
55 
56  const char* GetDataSetName() override;
57  void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel) override;
58  void SetupOutputTotals() override;
59 
60  void SetupOutputData() override;
61  void SetupNextPiece() override;
62  int ReadPieceData() override;
63 
64  void CopyArrayForCells(vtkDataArray* inArray, vtkDataArray* outArray) override;
66  int FillOutputPortInformation(int, vtkInformation*) override;
67 
68  void SqueezeOutputArrays(vtkDataObject*) override;
69 
70  // The index of the cell in the output where the current piece
71  // begins.
73 
74 private:
76  void operator=(const vtkXMLPUnstructuredGridReader&) = delete;
77 };
78 
79 #endif
virtual void SqueezeOutputArrays(vtkDataObject *)
Definition: vtkXMLReader.h:297
virtual const char * GetDataSetName()=0
Store vtkAlgorithm input/output information.
virtual vtkXMLDataReader * CreatePieceReader()=0
Create a reader according to the data to read.
int vtkIdType
Definition: vtkType.h:347
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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:33
dataset represents arbitrary combinations of all possible cell types
Read PVTK XML UnstructuredGrid files.
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:48
Superclass for parallel unstructured data XML readers.
virtual void CopyArrayForCells(vtkDataArray *inArray, vtkDataArray *outArray)=0
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:58