VTK  9.3.1
vtkPDataSetReader.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
14 #ifndef vtkPDataSetReader_h
15 #define vtkPDataSetReader_h
16 
17 #include "vtkDataSetAlgorithm.h"
18 #include "vtkIOParallelModule.h" // For export macro
19 
20 VTK_ABI_NAMESPACE_BEGIN
21 class vtkDataSet;
22 
23 class VTKIOPARALLEL_EXPORT vtkPDataSetReader : public vtkDataSetAlgorithm
24 {
25 public:
26  void PrintSelf(ostream& os, vtkIndent indent) override;
28  static vtkPDataSetReader* New();
29 
31 
34  vtkSetFilePathMacro(FileName);
35  vtkGetFilePathMacro(FileName);
37 
39 
43  vtkGetMacro(DataType, int);
45 
49  int CanReadFile(VTK_FILEPATH const char* filename);
50 
51 protected:
53  ~vtkPDataSetReader() override;
54 
55  int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
56  vtkInformationVector* outputVector) override;
57  void ReadPVTKFileInformation(istream* file, vtkInformation* request,
58  vtkInformationVector** inputVector, vtkInformationVector* outputVector);
59  void ReadVTKFileInformation(vtkInformation* request, vtkInformationVector** inputVector,
60  vtkInformationVector* outputVector);
61 
63 
65  int PolyDataExecute(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
66  int UnstructuredGridExecute(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
67  int ImageDataExecute(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
68  int StructuredGridExecute(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
69 
70  void CoverExtent(int ext[6], int* pieceMask);
71 
72  vtkDataSet* CheckOutput();
73  void SetNumberOfPieces(int num);
74 
75  istream* OpenFile(const char*);
76 
77  int ReadXML(istream* file, char** block, char** param, char** value);
80  char* FileName;
81  int DataType;
84  int** PieceExtents;
85 
86 private:
87  vtkPDataSetReader(const vtkPDataSetReader&) = delete;
88  void operator=(const vtkPDataSetReader&) = delete;
89 };
90 
91 VTK_ABI_NAMESPACE_END
92 #endif
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:52
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
#define VTK_FILEPATH
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks for Information.
Store zero or more vtkInformation instances.
Superclass for algorithms that produce output of the same type as input.
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called within ProcessRequest when a request asks the algorithm to create empty output data ob...
Manages reading pieces of a data set.
static vtkDataSetAlgorithm * New()