VTK  9.1.0
vtkXMLPHyperTreeGridReader.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkXMLPHyperTreeGridReader.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=========================================================================*/
28#ifndef vtkXMLPHyperTreeGridReader_h
29#define vtkXMLPHyperTreeGridReader_h
30
31#include "vtkIOXMLModule.h" // For export macro
33
38
40{
41public:
43 void PrintSelf(ostream& os, vtkIndent indent) override;
45
47
53
58 void CopyOutputInformation(vtkInformation* outInfo, int port) override;
59
60protected:
63
67 const char* GetDataSetName() override;
68
74
77
82 void GetOutputUpdateExtent(int& piece, int& numberOfPieces);
83
87 void SetupEmptyOutput() override;
88
92 void SetupOutputData() override;
93
97 void SetupOutputInformation(vtkInformation* outInfo) override;
98
103
108
112 void SetupPieces(int numPieces) override;
113
117 void SetupUpdateExtent(int piece, int numberOfPieces);
118
122 void ReadXMLData() override;
123
127 int CanReadPiece(int index) override;
128
132 int ReadPrimaryElement(vtkXMLDataElement* ePrimary) override;
133
137 void DestroyPieces() override;
138
140
144 int ReadPiece(vtkXMLDataElement* ePiece) override;
145
153
158
160
162 vtkInformationVector* outputVector) override;
163
167 void PieceProgressCallback() override;
168
174
180
183
185
186private:
188 void operator=(const vtkXMLPHyperTreeGridReader&) = delete;
189};
190
191#endif
Objects for depth-first traversal HyperTrees.
Objects for traversal a HyperTreeGrid.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Represents an XML element and those nested inside.
Read VTK XML HyperTreeGrid files.
Superclass for PVTK XML file readers.
int ReadPiece(vtkXMLDataElement *ePiece, int index)
Setup the piece reader at the given index.
Read PVTK XML HyperTreeGrid files.
const char * GetDataSetName() override
Return the type of the dataset being read.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkHyperTreeGrid * GetPieceInputAsHyperTreeGrid(int piece)
void SetupOutputData() override
Initialize current output data.
int CanReadPiece(int index) override
Whether or not the current reader can read the current piece.
vtkHyperTreeGrid * GetOutput(int idx)
Get the reader's output.
void CopyOutputInformation(vtkInformation *outInfo, int port) override
For the specified port, copy the information this reader sets up in SetupOutputInformation to outInfo...
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
void GetOutputUpdateExtent(int &piece, int &numberOfPieces)
Get the current piece index and the total number of pieces in the dataset Here let's consider a piece...
vtkIdType GetNumberOfPointsInPiece(int piece)
void SetupOutputInformation(vtkInformation *outInfo) override
Setup the output's information.
vtkXMLHyperTreeGridReader * CreatePieceReader()
Create a reader according to the data to read.
void SetupEmptyOutput() override
Initialize current output.
vtkIdType GetNumberOfPoints()
Get the number of vertices available in the input.
static vtkXMLPHyperTreeGridReader * New()
void RecursivelyProcessTree(vtkHyperTreeGridNonOrientedCursor *inCursor, vtkHyperTreeGridNonOrientedCursor *outCursor)
void ReadXMLData() override
Setup the readers and then read the input data.
void SetupPieces(int numPieces) override
Setup the number of pieces to be read.
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
vtkHyperTreeGrid * GetOutputAsHyperTreeGrid()
void PieceProgressCallback() override
Callback registered with the PieceProgressObserver.
void SetupOutputTotals()
Initialize the number of vertices from all the pieces.
int StartPiece
The range of pieces from the file that will form the UpdatePiece.
void SetupUpdateExtent(int piece, int numberOfPieces)
Setup the extent for the parallel reader and the piece readers.
~vtkXMLPHyperTreeGridReader() override
int ReadPrimaryElement(vtkXMLDataElement *ePrimary) override
Pipeline execute data driver.
void DestroyPieces() override
Delete all piece readers and related information.
int ReadPiece(vtkXMLDataElement *ePiece) override
Setup the current piece reader.
vtkXMLHyperTreeGridReader ** PieceReaders
vtkHyperTreeGrid * GetOutput()
Get the reader's output.
int ReadPieceData(int index)
Actually read the current piece data.
@ port
Definition: vtkX3D.h:453
@ index
Definition: vtkX3D.h:252
int vtkIdType
Definition: vtkType.h:332