VTK
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 
46  enum caseType { DECOMPOSED_CASE = 0, RECONSTRUCTED_CASE = 1 };
47 
48  static vtkPOpenFOAMReader *New();
50 
51  void PrintSelf(ostream &os, vtkIndent indent) override;
52 
54 
57  void SetCaseType(const int t);
58  vtkGetMacro(CaseType, caseType);
60 
61 
64  virtual void SetController(vtkMultiProcessController *);
65  vtkGetObjectMacro(Controller, vtkMultiProcessController);
67 
68 protected:
70  ~vtkPOpenFOAMReader() override;
71 
73  vtkInformationVector *) override;
75  vtkInformationVector *) override;
76 
77 private:
78  vtkMultiProcessController *Controller;
79  caseType CaseType;
80  vtkMTimeType MTimeOld;
81  int NumProcesses;
82  int ProcessId;
83 
84  vtkPOpenFOAMReader(const vtkPOpenFOAMReader &) = delete;
85  void operator=(const vtkPOpenFOAMReader &) = delete;
86 
87  void GatherMetaData();
88  void BroadcastStatus(int &);
89  void Broadcast(vtkStringArray *);
90  void AllGather(vtkStringArray *);
91  void AllGather(vtkDataArraySelection *);
92 };
93 
94 #endif
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
a vtkAbstractArray subclass for strings
void PrintSelf(ostream &, vtkIndent) 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 for a vtkSource.
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.