VTK  9.7.20261008
vtkXMLPDataObjectReader.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
10
11#ifndef vtkXMLPDataObjectReader_h
12#define vtkXMLPDataObjectReader_h
13
14#include "vtkIOXMLModule.h" // For export macro
15#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
16#include "vtkXMLReader.h"
17
18VTK_ABI_NAMESPACE_BEGIN
20{
21public:
23 void PrintSelf(ostream& os, vtkIndent indent) override;
24
28 vtkGetMacro(NumberOfPieces, int);
29
30protected:
33
37 virtual void DestroyPieces();
38
42 void SetupOutputData() override;
43
47 virtual void SetupPieces(int numPieces);
48
52 int ReadXMLInformation() override;
53
57 virtual int CanReadPiece(int index) = 0;
58
62 int ReadPiece(vtkXMLDataElement* ePiece, int index);
63
67 virtual int ReadPiece(vtkXMLDataElement* ePiece) = 0;
68
70
73 char* CreatePieceFileName(const char* fileName);
76
78
81 static void PieceProgressCallbackFunction(vtkObject*, unsigned long, void*, void*);
82 virtual void PieceProgressCallback() = 0;
84
89
93 int Piece;
94
98 char* PathName;
99
101
107
109
110private:
112 void operator=(const vtkXMLPDataObjectReader&) = delete;
113};
114
115VTK_ABI_NAMESPACE_END
116#endif
supports function callbacks
a simple class to control print indentation
Definition vtkIndent.h:108
Represents an XML element and those nested inside.
virtual void DestroyPieces()
Delete all piece readers and related information.
int ReadXMLInformation() override
Pipeline execute information driver.
void SetupOutputData() override
Initialize the output data.
virtual int ReadPiece(vtkXMLDataElement *ePiece)=0
Setup the current piece reader.
virtual void PieceProgressCallback()=0
Callback registered with the PieceProgressObserver.
~vtkXMLPDataObjectReader() override
int Piece
The piece currently being read.
int ReadPiece(vtkXMLDataElement *ePiece, int index)
Setup the piece reader at the given index.
char * CreatePieceFileName(const char *fileName)
Methods for creating a filename for each piece in the dataset.
virtual int CanReadPiece(int index)=0
Whether or not the current reader can read the current piece.
static void PieceProgressCallbackFunction(vtkObject *, unsigned long, void *, void *)
Callback registered with the PieceProgressObserver.
int NumberOfPieces
Pieces from the input summary file.
void SplitFileName()
Methods for creating a filename for each piece in the dataset.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int * CanReadPieceFlag
Information per-piece.
vtkCallbackCommand * PieceProgressObserver
vtkXMLDataElement ** PieceElements
Information per-piece.
virtual void SetupPieces(int numPieces)
Setup the number of pieces to be read and allocate space accordingly.
char * PathName
The path to the input file without the file name.
#define VTK_MARSHALAUTO