Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages
Parallel/vtkPDataSetReader.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00040 #ifndef __vtkPDataSetReader_h
00041 #define __vtkPDataSetReader_h
00042
00043 #include "vtkSource.h"
00044
00045 class vtkDataSet;
00046
00047 class VTK_PARALLEL_EXPORT vtkPDataSetReader : public vtkSource
00048 {
00049 public:
00050 void PrintSelf(ostream& os, vtkIndent indent);
00051 vtkTypeRevisionMacro(vtkPDataSetReader,vtkSource);
00052 static vtkPDataSetReader *New();
00053
00055 virtual int GetNumberOfOutputs() { return 1;}
00056
00058
00059 vtkSetStringMacro(FileName);
00060 vtkGetStringMacro(FileName);
00062
00064
00066 void SetOutput(vtkDataSet *output);
00067 virtual vtkDataSet* GetOutput();
00068 virtual vtkDataSet* GetOutput(int idx);
00070
00072 virtual void Update();
00073
00075
00077 vtkGetMacro(DataType, int);
00079
00082 virtual int ReadOutputType();
00083
00085 int CanReadFile(const char* filename);
00086
00087 protected:
00088 vtkPDataSetReader();
00089 ~vtkPDataSetReader();
00090
00091 virtual void ExecuteInformation();
00092 void ReadPVTKFileInformation(ifstream *fp);
00093 void ReadVTKFileInformation(ifstream *fp);
00094
00095 virtual void Execute();
00096 void PolyDataExecute();
00097 void UnstructuredGridExecute();
00098 void ImageDataExecute();
00099 void StructuredGridExecute();
00100
00101 void CoverExtent(int ext[6], int *pieceMask);
00102
00103 vtkDataSet *CheckOutput();
00104 void SetNumberOfPieces(int num);
00105
00106
00107 ifstream *OpenFile(const char *);
00108
00109 int ReadXML(ifstream *file, char **block, char **param, char **value);
00110 void SkipFieldData(ifstream *file);
00111
00112 int VTKFileFlag;
00113 int StructuredFlag;
00114 char *FileName;
00115 int DataType;
00116 int NumberOfPieces;
00117 char **PieceFileNames;
00118 int **PieceExtents;
00119
00120 private:
00121 vtkPDataSetReader(const vtkPDataSetReader&);
00122 void operator=(const vtkPDataSetReader&);
00123 };
00124
00125 #endif