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 =========================================================================*/
26 #ifndef vtkPDataSetReader_h
27 #define vtkPDataSetReader_h
28 
29 #include "vtkIOParallelModule.h" // For export macro
30 #include "vtkDataSetAlgorithm.h"
31 
32 class vtkDataSet;
33 
34 class VTKIOPARALLEL_EXPORT vtkPDataSetReader : public vtkDataSetAlgorithm
35 {
36 public:
37  void PrintSelf(ostream& os, vtkIndent indent);
40 
42 
45  vtkSetStringMacro(FileName);
46  vtkGetStringMacro(FileName);
48 
50 
54  vtkGetMacro(DataType, int);
56 
60  int CanReadFile(const char* filename);
61 
62 protected:
65 
66  virtual int RequestDataObject(vtkInformation* request,
67  vtkInformationVector** inputVector,
68  vtkInformationVector* outputVector);
69  void ReadPVTKFileInformation(ifstream *fp,
70  vtkInformation* request,
71  vtkInformationVector** inputVector,
72  vtkInformationVector* outputVector);
73  void ReadVTKFileInformation(ifstream *fp,
74  vtkInformation* request,
75  vtkInformationVector** inputVector,
76  vtkInformationVector* outputVector);
77 
81 
97 
98  void CoverExtent(int ext[6], int *pieceMask);
99 
101  void SetNumberOfPieces(int num);
102 
103  ifstream *OpenFile(const char *);
104 
105  int ReadXML(ifstream *file, char **block, char **param, char **value);
106  void SkipFieldData(ifstream *file);
107 
110  char *FileName;
111  int DataType;
115 
116 private:
117  vtkPDataSetReader(const vtkPDataSetReader&) VTK_DELETE_FUNCTION;
118  void operator=(const vtkPDataSetReader&) VTK_DELETE_FUNCTION;
119 };
120 
121 #endif
vtkPDataSetReader::StructuredGridExecute
int StructuredGridExecute(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkPDataSetReader::~vtkPDataSetReader
~vtkPDataSetReader()
vtkPDataSetReader::FileName
char * FileName
Definition: vtkPDataSetReader.h:110
vtkPDataSetReader::ImageDataExecute
int ImageDataExecute(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkX3D::value
@ value
Definition: vtkX3D.h:220
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkPDataSetReader
Manages reading pieces of a data set.
Definition: vtkPDataSetReader.h:35
vtkPDataSetReader::StructuredFlag
int StructuredFlag
Definition: vtkPDataSetReader.h:109
vtkPDataSetReader::UnstructuredGridExecute
int UnstructuredGridExecute(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkPDataSetReader::ReadVTKFileInformation
void ReadVTKFileInformation(ifstream *fp, 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:52
vtkPDataSetReader::OpenFile
ifstream * OpenFile(const char *)
vtkPDataSetReader::NumberOfPieces
int NumberOfPieces
Definition: vtkPDataSetReader.h:112
vtkPDataSetReader::vtkPDataSetReader
vtkPDataSetReader()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkPDataSetReader::CheckOutput
vtkDataSet * CheckOutput()
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkPDataSetReader::DataType
int DataType
Definition: vtkPDataSetReader.h:111
vtkPDataSetReader::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...
vtkPDataSetReader::PieceFileNames
char ** PieceFileNames
Definition: vtkPDataSetReader.h:113
vtkPDataSetReader::ReadPVTKFileInformation
void ReadPVTKFileInformation(ifstream *fp, vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
vtkPDataSetReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkPDataSetReader::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks for Information.
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:114
vtkPDataSetReader::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
vtkPDataSetReader::ReadXML
int ReadXML(ifstream *file, char **block, char **param, char **value)
vtkPDataSetReader::SkipFieldData
void SkipFieldData(ifstream *file)
vtkPDataSetReader::VTKFileFlag
int VTKFileFlag
Definition: vtkPDataSetReader.h:108
vtkPDataSetReader::New
static vtkPDataSetReader * New()