VTK  9.0.20210518
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 =========================================================================*/
30 #ifndef vtkPOpenFOAMReader_h
31 #define vtkPOpenFOAMReader_h
32 
33 #include "vtkIOParallelModule.h" // For export macro
34 #include "vtkOpenFOAMReader.h"
35 
38 
39 class VTKIOPARALLEL_EXPORT vtkPOpenFOAMReader : public vtkOpenFOAMReader
40 {
41 public:
42  enum caseType
43  {
44  DECOMPOSED_CASE = 0,
45  RECONSTRUCTED_CASE = 1
46  };
47 
50 
51  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
54 
57  void SetCaseType(const int t);
58  vtkGetMacro(CaseType, caseType);
61 
65  vtkGetObjectMacro(Controller, vtkMultiProcessController);
67 
68 protected:
70  ~vtkPOpenFOAMReader() override;
71 
74 
75 private:
76  vtkMultiProcessController* Controller;
77  caseType CaseType;
78  vtkMTimeType MTimeOld;
79  int NumProcesses;
80  int ProcessId;
81 
82  vtkPOpenFOAMReader(const vtkPOpenFOAMReader&) = delete;
83  void operator=(const vtkPOpenFOAMReader&) = delete;
84 
85  void GatherMetaData();
86  void BroadcastStatus(int&);
87  void Broadcast(vtkStringArray*);
88  void AllGather(vtkStringArray*);
89  void AllGather(vtkDataArraySelection*);
90 };
91 
92 #endif
vtkPOpenFOAMReader::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkPOpenFOAMReader
reads a decomposed dataset in OpenFOAM format
Definition: vtkPOpenFOAMReader.h:40
vtkPOpenFOAMReader::caseType
caseType
Definition: vtkPOpenFOAMReader.h:43
vtkPOpenFOAMReader::~vtkPOpenFOAMReader
~vtkPOpenFOAMReader() override
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:36
vtkPOpenFOAMReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPOpenFOAMReader::New
static vtkPOpenFOAMReader * New()
vtkOpenFOAMReader.h
vtkDataArraySelection
Store on/off settings for data arrays for a vtkSource.
Definition: vtkDataArraySelection.h:35
vtkPOpenFOAMReader::SetController
virtual void SetController(vtkMultiProcessController *)
Set and get the controller.
vtkPOpenFOAMReader::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkMultiProcessController
Multiprocessing communication superclass.
Definition: vtkMultiProcessController.h:77
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkPOpenFOAMReader::SetCaseType
void SetCaseType(const int t)
Set and get case type.
vtkOpenFOAMReader
reads a dataset in OpenFOAM format
Definition: vtkOpenFOAMReader.h:63
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:74
vtkStringArray
a vtkAbstractArray subclass for strings
Definition: vtkStringArray.h:37
vtkPOpenFOAMReader::vtkPOpenFOAMReader
vtkPOpenFOAMReader()
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287