VTK
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 
29 class VTKIOXML_EXPORT vtkXMLPDataObjectReader : public vtkXMLReader
30 {
31 public:
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
38  vtkGetMacro(NumberOfPieces, int);
39 
40 protected:
42  ~vtkXMLPDataObjectReader() override;
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 
72  int ReadPiece(vtkXMLDataElement* ePiece, int index);
73 
77  virtual int ReadPiece(vtkXMLDataElement* ePiece) = 0;
78 
80 
83  char* CreatePieceFileName(const char* fileName);
84  void SplitFileName();
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 
120 private:
122  void operator=(const vtkXMLPDataObjectReader&) = delete;
123 };
124 
125 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:59
Represents an XML element and those nested inside.
vtkCallbackCommand * PieceProgressObserver
vtkXMLDataElement ** PieceElements
Information per-piece.
virtual int ReadXMLInformation()
supports function callbacks
a simple class to control print indentation
Definition: vtkIndent.h:39
int NumberOfPieces
Pieces from the input summary file.
Superclass for PVTK XML file readers.
int Piece
The piece currently being read.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int * CanReadPieceFlag
Information per-piece.
char * PathName
The path to the input file without the file name.
Superclass for VTK's XML format readers.
Definition: vtkXMLReader.h:43
virtual void SetupOutputData()