ParaView
vtkPVEnSightMasterServerReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVEnSightMasterServerReader.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 =========================================================================*/
20 #ifndef vtkPVEnSightMasterServerReader_h
21 #define vtkPVEnSightMasterServerReader_h
22 
23 #include "vtkGenericEnSightReader.h"
24 #include "vtkPVVTKExtensionsDefaultModule.h" //needed for exports
25 
26 class vtkMultiProcessController;
27 class vtkPVEnSightMasterServerReaderInternal;
29 
30 class VTKPVVTKEXTENSIONSDEFAULT_EXPORT vtkPVEnSightMasterServerReader
31  : public vtkGenericEnSightReader
32 {
33 public:
34  static vtkPVEnSightMasterServerReader* New();
35  vtkTypeMacro(vtkPVEnSightMasterServerReader, vtkGenericEnSightReader);
36  void PrintSelf(ostream& os, vtkIndent indent);
37 
39 
48  virtual vtkMultiProcessController* GetController();
49  virtual void SetController(vtkMultiProcessController* controller);
51 
55  virtual int CanReadFile(const char*);
56 
58 
62  vtkGetMacro(NumberOfPieces, int);
64 
65 protected:
68 
69  virtual int RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
70  virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
71  int ParseMasterServerFile();
72 
73  void SuperclassExecuteInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
74  void SuperclassExecuteData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
75 
76  // The MPI controller used to communicate with the instances in
77  // other processes.
78  vtkMultiProcessController* Controller;
79 
80  // The number of pieces available in the file.
82 
83  // Internal implementation details.
84  vtkPVEnSightMasterServerReaderInternal* Internal;
85 
86  // The extent translator used to provide the correct breakdown of
87  // pieces across processes.
89 
90  // Whether an error occurred during ExecuteInformation.
92 
93 private:
95  void operator=(const vtkPVEnSightMasterServerReader&) VTK_DELETE_FUNCTION;
96 };
97 
98 #endif
vtkPVEnSightMasterServerReaderInternal * Internal
vtkPVEnSightMasterServerTranslator * ExtentTranslator