VTK
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 "vtkIOParallelModule.h" // For export macro
27 #include "vtkDataSetAlgorithm.h"
28 
29 class vtkDataSet;
30 
31 class VTKIOPARALLEL_EXPORT vtkPDataSetReader : public vtkDataSetAlgorithm
32 {
33 public:
34  void PrintSelf(ostream& os, vtkIndent indent) override;
36  static vtkPDataSetReader *New();
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 
63  int RequestDataObject(vtkInformation* request,
64  vtkInformationVector** inputVector,
65  vtkInformationVector* outputVector) override;
66  void ReadPVTKFileInformation(ifstream *fp,
67  vtkInformation* request,
68  vtkInformationVector** inputVector,
69  vtkInformationVector* outputVector);
70  void ReadVTKFileInformation(vtkInformation* request,
71  vtkInformationVector** inputVector,
72  vtkInformationVector* outputVector);
73 
76  vtkInformationVector*) override;
77 
80  vtkInformationVector*) override;
81  int PolyDataExecute(vtkInformation*,
84  int UnstructuredGridExecute(vtkInformation*,
87  int ImageDataExecute(vtkInformation*,
90  int StructuredGridExecute(vtkInformation*,
93 
94  void CoverExtent(int ext[6], int *pieceMask);
95 
96  vtkDataSet *CheckOutput();
97  void SetNumberOfPieces(int num);
98 
99  ifstream *OpenFile(const char *);
100 
101  int ReadXML(ifstream *file, char **block, char **param, char **value);
104  char *FileName;
105  int DataType;
109 
110 private:
111  vtkPDataSetReader(const vtkPDataSetReader&) = delete;
112  void operator=(const vtkPDataSetReader&) = delete;
113 };
114 
115 #endif
vtkPDataSetReader::FileName
char * FileName
Definition: vtkPDataSetReader.h:104
vtkX3D::value
Definition: vtkX3D.h:220
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkPDataSetReader
Manages reading pieces of a data set.
Definition: vtkPDataSetReader.h:31
vtkPDataSetReader::StructuredFlag
int StructuredFlag
Definition: vtkPDataSetReader.h:103
vtkDataSetAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
Definition: vtkDataSetAlgorithm.h:180
vtkDataSetAlgorithm::RequestDataObject
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called within ProcessRequest to when a request asks the algorithm to create empty output data...
vtkDataSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkDataSetAlgorithm.h:48
vtkPDataSetReader::NumberOfPieces
int NumberOfPieces
Definition: vtkPDataSetReader.h:106
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkDataSetAlgorithm::New
static vtkDataSetAlgorithm * New()
vtkPDataSetReader::DataType
int DataType
Definition: vtkPDataSetReader.h:105
vtkPDataSetReader::PieceFileNames
char ** PieceFileNames
Definition: vtkPDataSetReader.h:107
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkDataSetAlgorithm.h
vtkDataSetAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPDataSetReader::PieceExtents
int ** PieceExtents
Definition: vtkPDataSetReader.h:108
vtkPDataSetReader::VTKFileFlag
int VTKFileFlag
Definition: vtkPDataSetReader.h:102
vtkDataSetAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks for Information.
Definition: vtkDataSetAlgorithm.h:141