VTK  9.4.20241222
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
20VTK_ABI_NAMESPACE_BEGIN
21class vtkDataSet;
22
23class VTKIOPARALLEL_EXPORT vtkPDataSetReader : public vtkDataSetAlgorithm
24{
25public:
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
51protected:
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;
85
86private:
87 vtkPDataSetReader(const vtkPDataSetReader&) = delete;
88 void operator=(const vtkPDataSetReader&) = delete;
89};
90
91VTK_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 *)
int PolyDataExecute(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int ImageDataExecute(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
static vtkPDataSetReader * New()
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)
void ReadVTKFileInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
istream * OpenFile(const char *)
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.
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
vtkDataSet * CheckOutput()
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)
#define VTK_FILEPATH