00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00019 #ifndef __vtkPVEnSightMasterServerReader_h
00020 #define __vtkPVEnSightMasterServerReader_h
00021
00022 #include "vtkGenericEnSightReader.h"
00023
00024 class vtkMultiProcessController;
00025 class vtkPVEnSightMasterServerReaderInternal;
00026 class vtkPVEnSightMasterServerTranslator;
00027
00028 class VTK_EXPORT vtkPVEnSightMasterServerReader : public vtkGenericEnSightReader
00029 {
00030 public:
00031 static vtkPVEnSightMasterServerReader* New();
00032 vtkTypeRevisionMacro(vtkPVEnSightMasterServerReader, vtkGenericEnSightReader);
00033 void PrintSelf(ostream& os, vtkIndent indent);
00034
00036
00043 virtual vtkMultiProcessController* GetController();
00044 virtual void SetController(vtkMultiProcessController* controller);
00046
00048 virtual int CanReadFile(const char*);
00049
00051
00052 vtkGetMacro(NumberOfPieces, int);
00054
00055 protected:
00056 vtkPVEnSightMasterServerReader();
00057 ~vtkPVEnSightMasterServerReader();
00058
00059 virtual int RequestInformation(vtkInformation *, vtkInformationVector **,
00060 vtkInformationVector *);
00061 virtual int RequestData(vtkInformation *, vtkInformationVector **,
00062 vtkInformationVector *);
00063 int ParseMasterServerFile();
00064
00065 void SuperclassExecuteInformation(vtkInformation *, vtkInformationVector **,
00066 vtkInformationVector *);
00067 void SuperclassExecuteData(vtkInformation *, vtkInformationVector **,
00068 vtkInformationVector *);
00069
00070
00071
00072 vtkMultiProcessController* Controller;
00073
00074
00075 int NumberOfPieces;
00076
00077
00078 vtkPVEnSightMasterServerReaderInternal* Internal;
00079
00080
00081
00082 vtkPVEnSightMasterServerTranslator* ExtentTranslator;
00083
00084
00085 int InformationError;
00086
00087 private:
00088 vtkPVEnSightMasterServerReader(const vtkPVEnSightMasterServerReader&);
00089 void operator=(const vtkPVEnSightMasterServerReader&);
00090 };
00091
00092 #endif