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) VTK_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() VTK_OVERRIDE;
62 
63  int RequestDataObject(vtkInformation* request,
64  vtkInformationVector** inputVector,
65  vtkInformationVector* outputVector) VTK_OVERRIDE;
66  void ReadPVTKFileInformation(ifstream *fp,
67  vtkInformation* request,
68  vtkInformationVector** inputVector,
69  vtkInformationVector* outputVector);
70  void ReadVTKFileInformation(ifstream *fp,
71  vtkInformation* request,
72  vtkInformationVector** inputVector,
73  vtkInformationVector* outputVector);
74 
75  int RequestInformation(vtkInformation*,
77  vtkInformationVector*) VTK_OVERRIDE;
78 
79  int RequestData(vtkInformation*,
81  vtkInformationVector*) VTK_OVERRIDE;
82  int PolyDataExecute(vtkInformation*,
85  int UnstructuredGridExecute(vtkInformation*,
88  int ImageDataExecute(vtkInformation*,
91  int StructuredGridExecute(vtkInformation*,
94 
95  void CoverExtent(int ext[6], int *pieceMask);
96 
97  vtkDataSet *CheckOutput();
98  void SetNumberOfPieces(int num);
99 
100  ifstream *OpenFile(const char *);
101 
102  int ReadXML(ifstream *file, char **block, char **param, char **value);
103  void SkipFieldData(ifstream *file);
104 
105  int VTKFileFlag;
106  int StructuredFlag;
107  char *FileName;
108  int DataType;
109  int NumberOfPieces;
110  char **PieceFileNames;
111  int **PieceExtents;
112 
113 private:
114  vtkPDataSetReader(const vtkPDataSetReader&) VTK_DELETE_FUNCTION;
115  void operator=(const vtkPDataSetReader&) VTK_DELETE_FUNCTION;
116 };
117 
118 #endif
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
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:33
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
Store zero or more vtkInformation instances.
Superclass for algorithms that produce output of the same type as input.
Manages reading pieces of a data set.
static vtkDataSetAlgorithm * New()