VTK  9.2.6
vtkPOpenFOAMReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPOpenFOAMReader.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm 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 =========================================================================*/
33 #ifndef vtkPOpenFOAMReader_h
34 #define vtkPOpenFOAMReader_h
35 
36 #include "vtkIOParallelModule.h" // For export macro
37 #include "vtkOpenFOAMReader.h"
38 
41 
42 class VTKIOPARALLEL_EXPORT vtkPOpenFOAMReader : public vtkOpenFOAMReader
43 {
44 public:
45  enum caseType
46  {
47  DECOMPOSED_CASE = 0,
48  RECONSTRUCTED_CASE = 1
49  };
50 
51  static vtkPOpenFOAMReader* New();
53 
54  void PrintSelf(ostream& os, vtkIndent indent) override;
55 
57 
60  void SetCaseType(const int t);
61  vtkGetMacro(CaseType, caseType);
64 
67  virtual void SetController(vtkMultiProcessController*);
68  vtkGetObjectMacro(Controller, vtkMultiProcessController);
70 
71 protected:
73  ~vtkPOpenFOAMReader() override;
74 
77 
78 private:
79  vtkMultiProcessController* Controller;
80  caseType CaseType;
81  vtkMTimeType MTimeOld;
82  int NumProcesses;
83  int ProcessId;
84 
85  vtkPOpenFOAMReader(const vtkPOpenFOAMReader&) = delete;
86  void operator=(const vtkPOpenFOAMReader&) = delete;
87 
88  void GatherMetaData();
89  void BroadcastStatus(int&);
90  void Broadcast(vtkStringArray*);
91  void AllGather(vtkStringArray*);
92  void AllGather(vtkDataArraySelection*);
93 };
94 
95 #endif
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
a vtkAbstractArray subclass for strings
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkOpenFOAMReader * New()
a simple class to control print indentation
Definition: vtkIndent.h:39
Store on/off settings for data arrays, etc.
reads a dataset in OpenFOAM format
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
reads a decomposed dataset in OpenFOAM format
Store zero or more vtkInformation instances.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
Multiprocessing communication superclass.