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);
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 
90 
91  void CoverExtent(int ext[6], int *pieceMask);
92 
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
vtkPDataSetReader::StructuredGridExecute
int StructuredGridExecute(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkPDataSetReader::~vtkPDataSetReader
~vtkPDataSetReader()
vtkPDataSetReader::FileName
char * FileName
Definition: vtkPDataSetReader.h:104
vtkPDataSetReader::ImageDataExecute
int ImageDataExecute(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkIOParallelModule.h
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkPDataSetReader
Manages reading pieces of a data set.
Definition: vtkPDataSetReader.h:34
vtkPDataSetReader::StructuredFlag
int StructuredFlag
Definition: vtkPDataSetReader.h:103
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
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:51
vtkPDataSetReader::OpenFile
ifstream * OpenFile(const char *)
vtkgl::value
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
vtkPDataSetReader::NumberOfPieces
int NumberOfPieces
Definition: vtkPDataSetReader.h:106
vtkPDataSetReader::vtkPDataSetReader
vtkPDataSetReader()
vtkgl::num
GLuint GLuint num
Definition: vtkgl.h:16907
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetStringMacro
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:104
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkPDataSetReader::CheckOutput
vtkDataSet * CheckOutput()
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
vtkPDataSetReader::DataType
int DataType
Definition: vtkPDataSetReader.h:105
vtkPDataSetReader::RequestDataObject
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkPDataSetReader::PieceFileNames
char ** PieceFileNames
Definition: vtkPDataSetReader.h:107
vtkPDataSetReader::ReadPVTKFileInformation
void ReadPVTKFileInformation(ifstream *fp, vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkPDataSetReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkPDataSetReader::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkPDataSetReader::CanReadFile
int CanReadFile(const char *filename)
vtkDataSetAlgorithm.h
vtkPDataSetReader::PolyDataExecute
int PolyDataExecute(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkPDataSetReader::SetNumberOfPieces
void SetNumberOfPieces(int num)
vtkPDataSetReader::PieceExtents
int ** PieceExtents
Definition: vtkPDataSetReader.h:108
vtkPDataSetReader::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkPDataSetReader::ReadXML
int ReadXML(ifstream *file, char **block, char **param, char **value)
vtkgl::param
GLfloat param
Definition: vtkgl.h:11688
vtkPDataSetReader::SkipFieldData
void SkipFieldData(ifstream *file)
vtkPDataSetReader::VTKFileFlag
int VTKFileFlag
Definition: vtkPDataSetReader.h:102
vtkPDataSetReader::New
static vtkPDataSetReader * New()
VTKIOPARALLEL_EXPORT
#define VTKIOPARALLEL_EXPORT
Definition: vtkIOParallelModule.h:15