VTK  9.0.1
vtkPDataSetReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPDataSetReader.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 vtkPDataSetReader_h
24 #define vtkPDataSetReader_h
25 
26 #include "vtkDataSetAlgorithm.h"
27 #include "vtkIOParallelModule.h" // For export macro
28 
29 class vtkDataSet;
30 
31 class VTKIOPARALLEL_EXPORT vtkPDataSetReader : public vtkDataSetAlgorithm
32 {
33 public:
34  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
39 
42  vtkSetStringMacro(FileName);
43  vtkGetStringMacro(FileName);
45 
47 
51  vtkGetMacro(DataType, int);
53 
57  int CanReadFile(const char* filename);
58 
59 protected:
61  ~vtkPDataSetReader() override;
62 
64  vtkInformationVector* outputVector) override;
65  void ReadPVTKFileInformation(istream* fp, vtkInformation* request,
66  vtkInformationVector** inputVector, vtkInformationVector* outputVector);
68  vtkInformationVector* outputVector);
69 
71 
77 
78  void CoverExtent(int ext[6], int* pieceMask);
79 
81  void SetNumberOfPieces(int num);
82 
83  istream* OpenFile(const char*);
84 
85  int ReadXML(istream* file, char** block, char** param, char** value);
88  char* FileName;
89  int DataType;
92  int** PieceExtents;
93 
94 private:
95  vtkPDataSetReader(const vtkPDataSetReader&) = delete;
96  void operator=(const vtkPDataSetReader&) = delete;
97 };
98 
99 #endif
vtkPDataSetReader::StructuredGridExecute
int StructuredGridExecute(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkPDataSetReader::ReadXML
int ReadXML(istream *file, char **block, char **param, char **value)
vtkPDataSetReader::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
vtkPDataSetReader::FileName
char * FileName
Definition: vtkPDataSetReader.h:88
vtkPDataSetReader::ImageDataExecute
int ImageDataExecute(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkX3D::value
@ value
Definition: vtkX3D.h:226
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:36
vtkPDataSetReader
Manages reading pieces of a data set.
Definition: vtkPDataSetReader.h:32
vtkPDataSetReader::StructuredFlag
int StructuredFlag
Definition: vtkPDataSetReader.h:87
vtkPDataSetReader::~vtkPDataSetReader
~vtkPDataSetReader() override
vtkPDataSetReader::UnstructuredGridExecute
int UnstructuredGridExecute(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkPDataSetReader::ReadVTKFileInformation
void ReadVTKFileInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkPDataSetReader::CoverExtent
void CoverExtent(int ext[6], int *pieceMask)
vtkDataSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkDataSetAlgorithm.h:49
vtkPDataSetReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPDataSetReader::ReadPVTKFileInformation
void ReadPVTKFileInformation(istream *fp, vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkPDataSetReader::NumberOfPieces
int NumberOfPieces
Definition: vtkPDataSetReader.h:90
vtkPDataSetReader::RequestDataObject
int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called within ProcessRequest to when a request asks the algorithm to create empty output data...
vtkPDataSetReader::vtkPDataSetReader
vtkPDataSetReader()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkPDataSetReader::CheckOutput
vtkDataSet * CheckOutput()
vtkPDataSetReader::DataType
int DataType
Definition: vtkPDataSetReader.h:89
vtkPDataSetReader::PieceFileNames
char ** PieceFileNames
Definition: vtkPDataSetReader.h:91
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:57
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:65
vtkPDataSetReader::CanReadFile
int CanReadFile(const char *filename)
Called to determine if the file can be read by the reader.
vtkDataSetAlgorithm.h
vtkPDataSetReader::PolyDataExecute
int PolyDataExecute(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkPDataSetReader::SetNumberOfPieces
void SetNumberOfPieces(int num)
vtkPDataSetReader::PieceExtents
int ** PieceExtents
Definition: vtkPDataSetReader.h:92
vtkPDataSetReader::OpenFile
istream * OpenFile(const char *)
vtkPDataSetReader::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks for Information.
vtkPDataSetReader::VTKFileFlag
int VTKFileFlag
Definition: vtkPDataSetReader.h:86
vtkPDataSetReader::New
static vtkPDataSetReader * New()