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 =========================================================================*/
32 #ifndef vtkXMLPUnstructuredGridReader_h
33 #define vtkXMLPUnstructuredGridReader_h
34 
35 #include "vtkIOXMLModule.h" // For export macro
37 
39 
41 {
42 public:
44  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
48 
54 
55 protected:
58 
59  const char* GetDataSetName() override;
60  void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel) override;
61  void SetupOutputTotals() override;
62 
63  void SetupOutputData() override;
64  void SetupNextPiece() override;
65  int ReadPieceData() override;
66 
67  void CopyArrayForCells(vtkDataArray* inArray, vtkDataArray* outArray) override;
70 
72 
73  // The index of the cell in the output where the current piece
74  // begins.
76 
77 private:
79  void operator=(const vtkXMLPUnstructuredGridReader&) = delete;
80 };
81 
82 #endif
vtkXMLPUnstructuredGridReader
Read PVTK XML UnstructuredGrid files.
Definition: vtkXMLPUnstructuredGridReader.h:41
vtkXMLPUnstructuredDataReader
Superclass for parallel unstructured data XML readers.
Definition: vtkXMLPUnstructuredDataReader.h:37
vtkXMLPUnstructuredGridReader::~vtkXMLPUnstructuredGridReader
~vtkXMLPUnstructuredGridReader() override
vtkXMLPUnstructuredGridReader::GetOutput
vtkUnstructuredGrid * GetOutput(int idx)
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkXMLPUnstructuredGridReader::CreatePieceReader
vtkXMLDataReader * CreatePieceReader() override
Create a reader according to the data to read.
vtkXMLPUnstructuredGridReader::GetDataSetName
const char * GetDataSetName() override
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
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:40
vtkXMLPUnstructuredGridReader::SetupNextPiece
void SetupNextPiece() override
vtkXMLPUnstructuredGridReader::New
static vtkXMLPUnstructuredGridReader * New()
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkXMLPUnstructuredGridReader::ReadPieceData
int ReadPieceData() override
Actually read the current piece data.
vtkXMLPUnstructuredGridReader::StartCell
vtkIdType StartCell
Definition: vtkXMLPUnstructuredGridReader.h:75
vtkXMLPUnstructuredGridReader::SetupOutputData
void SetupOutputData() override
Initialize the output data.
vtkXMLPUnstructuredGridReader::CopyArrayForCells
void CopyArrayForCells(vtkDataArray *inArray, vtkDataArray *outArray) override
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:89
vtkXMLPUnstructuredGridReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
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.