vtkPVEnSightMasterServerReader2.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
8 #ifndef vtkPVEnSightMasterServerReader2_h
9 #define vtkPVEnSightMasterServerReader2_h
10 
12 #include "vtkPVVTKExtensionsIOEnSightModule.h" //needed for exports
13 
15 class vtkPVEnSightMasterServerReader2Internal;
17 
20 {
21 public:
24  void PrintSelf(ostream& os, vtkIndent indent) override;
25 
27 
36  virtual vtkMultiProcessController* GetController();
37  virtual void SetController(vtkMultiProcessController* controller);
39 
43  int CanReadFile(const char*) override;
44 
46 
50  vtkGetMacro(NumberOfPieces, int);
52 
56  void SetCaseFileName(const char* fileName);
57 
59 
65 
67 
71  const char* GetPointArrayName(int index);
72  const char* GetCellArrayName(int index);
74 
76 
80  int GetPointArrayStatus(const char* name);
81  int GetCellArrayStatus(const char* name);
82  void SetPointArrayStatus(const char* name, int status);
83  void SetCellArrayStatus(const char* name, int status);
85 
87 
95  void SetByteOrder(int byteOrder) override;
96  int GetByteOrder() override;
97  const char* GetByteOrderAsString();
99 
100 protected:
103 
106  int ParseMasterServerFile();
107 
108  // The MPI controller used to communicate with the instances in
109  // other processes.
111 
112  // The number of pieces available in the file.
114 
115  // Internal implementation details.
116  vtkPVEnSightMasterServerReader2Internal* Internal;
117 
118  // The extent translator used to provide the correct breakdown of
119  // pieces across processes.
121 
122  // Whether an error occurred during ExecuteInformation.
124 
125 private:
127  void operator=(const vtkPVEnSightMasterServerReader2&) = delete;
128 };
129 
130 #endif
virtual void SetByteOrder(int)
int GetPointArrayStatus(const char *name)
class to read any type of EnSight files
virtual int GetByteOrder()
static vtkPGenericEnSightReader * New()
void PrintSelf(ostream &os, vtkIndent indent) override
vtkPVEnSightMasterServerReader2Internal * Internal
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
void SetPointArrayStatus(const char *name, int status)
int GetCellArrayStatus(const char *name)
void SetCaseFileName(const char *fileName)
void SetCellArrayStatus(const char *name, int status)
vtkPVEnSightMasterServerTranslator * ExtentTranslator
const char * GetByteOrderAsString()
#define VTKPVVTKEXTENSIONSIOENSIGHT_EXPORT
const char * GetPointArrayName(int index)
const char * GetCellArrayName(int index)
static int CanReadFile(const char *casefilename)
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)