VTK  9.3.20240328
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;
29 
31 
37 
39 
43  vtkGetMacro(DataType, int);
45 
49  int CanReadFile(VTK_FILEPATH const char* filename);
50 
51 protected:
53  ~vtkPDataSetReader() override;
54 
56  vtkInformationVector* outputVector) override;
57  void ReadPVTKFileInformation(istream* file, vtkInformation* request,
58  vtkInformationVector** inputVector, vtkInformationVector* outputVector);
60  vtkInformationVector* outputVector);
61 
63 
69 
70  void CoverExtent(int ext[6], int* pieceMask);
71 
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
Superclass for algorithms that produce output of the same type as input.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:165
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Manages reading pieces of a data set.
int UnstructuredGridExecute(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
istream * OpenFile(const char *)
int PolyDataExecute(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int ImageDataExecute(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called within ProcessRequest when a request asks the algorithm to create empty output data ob...
void ReadPVTKFileInformation(istream *file, vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
static vtkPDataSetReader * New()
void ReadVTKFileInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
int CanReadFile(VTK_FILEPATH const char *filename)
Called to determine if the file can be read by the reader.
int StructuredGridExecute(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void CoverExtent(int ext[6], int *pieceMask)
vtkSetFilePathMacro(FileName)
This file to open and read.
vtkDataSet * CheckOutput()
vtkGetFilePathMacro(FileName)
This file to open and read.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
~vtkPDataSetReader() override
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks for Information.
int ReadXML(istream *file, char **block, char **param, char **value)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetNumberOfPieces(int num)
@ value
Definition: vtkX3D.h:220
#define VTK_FILEPATH