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 =========================================================================*/
25 #ifndef vtkPDataSetReader_h
26 #define vtkPDataSetReader_h
27 
28 #include "vtkIOParallelModule.h" // For export macro
29 #include "vtkDataSetAlgorithm.h"
30 
31 class vtkDataSet;
32 
34 {
35 public:
36  void PrintSelf(ostream& os, vtkIndent indent);
38  static vtkPDataSetReader *New();
39 
41 
42  vtkSetStringMacro(FileName);
43  vtkGetStringMacro(FileName);
45 
47 
49  vtkGetMacro(DataType, int);
51 
53  int CanReadFile(const char* filename);
54 
55 protected:
58 
59  virtual int RequestDataObject(vtkInformation* request,
60  vtkInformationVector** inputVector,
61  vtkInformationVector* outputVector);
62  void ReadPVTKFileInformation(ifstream *fp,
63  vtkInformation* request,
64  vtkInformationVector** inputVector,
65  vtkInformationVector* outputVector);
66  void ReadVTKFileInformation(ifstream *fp,
67  vtkInformation* request,
68  vtkInformationVector** inputVector,
69  vtkInformationVector* outputVector);
70 
74 
75  virtual int RequestData(vtkInformation*,
78  int PolyDataExecute(vtkInformation*,
81  int UnstructuredGridExecute(vtkInformation*,
84  int ImageDataExecute(vtkInformation*,
87  int StructuredGridExecute(vtkInformation*,
90 
91  void CoverExtent(int ext[6], int *pieceMask);
92 
93  vtkDataSet *CheckOutput();
94  void SetNumberOfPieces(int num);
95 
96 //BTX
97  ifstream *OpenFile(const char *);
98 //ETX
99  int ReadXML(ifstream *file, char **block, char **param, char **value);
100  void SkipFieldData(ifstream *file);
101 
104  char *FileName;
105  int DataType;
109 
110 private:
111  vtkPDataSetReader(const vtkPDataSetReader&); // Not implemented
112  void operator=(const vtkPDataSetReader&); // Not implemented
113 };
114 
115 #endif
#define VTKIOPARALLEL_EXPORT
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce output of the same type as input.
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Manages reading pieces of a data set.
static vtkDataSetAlgorithm * New()