ParaView
vtkPVEnSightMasterServerReader2.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVEnSightMasterServerReader2.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 vtkPVEnSightMasterServerReader2_h
21 #define vtkPVEnSightMasterServerReader2_h
22 
24 #include "vtkPVVTKExtensionsDefaultModule.h" //needed for exports
25 
26 class vtkMultiProcessController;
27 class vtkPVEnSightMasterServerReader2Internal;
29 
30 class VTKPVVTKEXTENSIONSDEFAULT_EXPORT vtkPVEnSightMasterServerReader2
32 {
33 public:
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 
68  void SetCaseFileName(const char* fileName);
69 
71 
74  int GetNumberOfPointArrays();
75  int GetNumberOfCellArrays();
77 
79 
83  const char* GetPointArrayName(int index);
84  const char* GetCellArrayName(int index);
86 
88 
92  int GetPointArrayStatus(const char* name);
93  int GetCellArrayStatus(const char* name);
94  void SetPointArrayStatus(const char* name, int status);
95  void SetCellArrayStatus(const char* name, int status);
97 
99 
105  void SetByteOrderToBigEndian();
106  void SetByteOrderToLittleEndian();
107  void SetByteOrder(int byteOrder);
108  int GetByteOrder();
109  const char* GetByteOrderAsString();
111 
112 protected:
115 
116  virtual int RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
117  virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
118  int ParseMasterServerFile();
119 
120  // The MPI controller used to communicate with the instances in
121  // other processes.
122  vtkMultiProcessController* Controller;
123 
124  // The number of pieces available in the file.
126 
127  // Internal implementation details.
128  vtkPVEnSightMasterServerReader2Internal* Internal;
129 
130  // The extent translator used to provide the correct breakdown of
131  // pieces across processes.
133 
134  // Whether an error occurred during ExecuteInformation.
136 
137 private:
139  void operator=(const vtkPVEnSightMasterServerReader2&) VTK_DELETE_FUNCTION;
140 };
141 
142 #endif
void PrintSelf(ostream &os, vtkIndent indent)
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
class to read any type of EnSight files
static vtkPGenericEnSightReader * New()
vtkPVEnSightMasterServerReader2Internal * Internal
vtkPVEnSightMasterServerTranslator * ExtentTranslator