VTK  9.1.0
vtkXMLPDataObjectReader.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkXMLPDataObjectReader.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=========================================================================*/
23#ifndef vtkXMLPDataObjectReader_h
24#define vtkXMLPDataObjectReader_h
25
26#include "vtkIOXMLModule.h" // For export macro
27#include "vtkXMLReader.h"
28
29class VTKIOXML_EXPORT vtkXMLPDataObjectReader : public vtkXMLReader
30{
31public:
33 void PrintSelf(ostream& os, vtkIndent indent) override;
34
38 vtkGetMacro(NumberOfPieces, int);
39
40protected:
43
47 virtual void DestroyPieces();
48
52 void SetupOutputData() override;
53
57 virtual void SetupPieces(int numPieces);
58
62 int ReadXMLInformation() override;
63
67 virtual int CanReadPiece(int index) = 0;
68
73
77 virtual int ReadPiece(vtkXMLDataElement* ePiece) = 0;
78
80
83 char* CreatePieceFileName(const char* fileName);
86
88
91 static void PieceProgressCallbackFunction(vtkObject*, unsigned long, void*, void*);
92 virtual void PieceProgressCallback() = 0;
94
99
103 int Piece;
104
108 char* PathName;
109
111
117
119
120private:
122 void operator=(const vtkXMLPDataObjectReader&) = delete;
123};
124
125#endif
supports function callbacks
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract base class for most VTK objects
Definition: vtkObject.h:73
Represents an XML element and those nested inside.
Superclass for PVTK XML file readers.
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.
Superclass for VTK's XML format readers.
Definition: vtkXMLReader.h:66
@ index
Definition: vtkX3D.h:252