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 "vtkPVVTKExtensionsIOEnSightModule.h" //needed for exports
25 
27 class vtkPVEnSightMasterServerReader2Internal;
29 
32 {
33 public:
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
39 
48  virtual vtkMultiProcessController* GetController();
49  virtual void SetController(vtkMultiProcessController* controller);
51 
55  int CanReadFile(const char*) override;
56 
58 
62  vtkGetMacro(NumberOfPieces, int);
64 
68  void SetCaseFileName(const char* fileName);
69 
71 
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 
107  void SetByteOrder(int byteOrder) override;
108  int GetByteOrder() override;
109  const char* GetByteOrderAsString();
111 
112 protected:
115 
118  int ParseMasterServerFile();
119 
120  // The MPI controller used to communicate with the instances in
121  // other processes.
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&) = delete;
140 };
141 
142 #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 *)