VTK  9.3.0
vtkPOpenFOAMReader.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
21 #ifndef vtkPOpenFOAMReader_h
22 #define vtkPOpenFOAMReader_h
23 
24 #include "vtkIOParallelModule.h" // For export macro
25 #include "vtkOpenFOAMReader.h"
26 
27 VTK_ABI_NAMESPACE_BEGIN
30 
31 class VTKIOPARALLEL_EXPORT vtkPOpenFOAMReader : public vtkOpenFOAMReader
32 {
33 public:
34  enum caseType
35  {
36  DECOMPOSED_CASE = 0,
37  RECONSTRUCTED_CASE = 1
38  };
39 
42 
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
46 
49  void SetCaseType(int t);
50  vtkGetMacro(CaseType, caseType);
53 
57  vtkGetObjectMacro(Controller, vtkMultiProcessController);
59 
60 protected:
62  ~vtkPOpenFOAMReader() override;
63 
66 
67 private:
68  vtkMultiProcessController* Controller;
69  caseType CaseType;
70  vtkMTimeType MTimeOld;
71  int NumProcesses;
72  int ProcessId;
73 
74  vtkPOpenFOAMReader(const vtkPOpenFOAMReader&) = delete;
75  void operator=(const vtkPOpenFOAMReader&) = delete;
76 
77  void GatherMetaData();
78  void Broadcast(vtkStringArray*);
79  void AllGather(vtkStringArray*);
80  void AllGather(vtkDataArraySelection*);
81 };
82 
83 VTK_ABI_NAMESPACE_END
84 #endif
Store on/off settings for data arrays, etc.
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Multiprocessing communication superclass.
reads a dataset in OpenFOAM format
reads a decomposed dataset in OpenFOAM format
void SetCaseType(int t)
Set and get case type.
static vtkPOpenFOAMReader * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkPOpenFOAMReader() override
virtual void SetController(vtkMultiProcessController *)
Set and get the controller.
a vtkAbstractArray subclass for strings
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270