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 =========================================================================*/
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 
43  enum caseType { DECOMPOSED_CASE = 0, RECONSTRUCTED_CASE = 1 };
44 
45  static vtkPOpenFOAMReader *New();
47 
48  void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE;
49 
51 
54  void SetCaseType(const int t);
55  vtkGetMacro(CaseType, caseType);
57 
58 
61  virtual void SetController(vtkMultiProcessController *);
62  vtkGetObjectMacro(Controller, vtkMultiProcessController);
64 
65 protected:
67  ~vtkPOpenFOAMReader() VTK_OVERRIDE;
68 
69  int RequestInformation(vtkInformation *, vtkInformationVector **,
70  vtkInformationVector *) VTK_OVERRIDE;
71  int RequestData(vtkInformation *, vtkInformationVector **,
72  vtkInformationVector *) VTK_OVERRIDE;
73 
74 private:
75  vtkMultiProcessController *Controller;
76  caseType CaseType;
77  vtkMTimeType MTimeOld;
78  int NumProcesses;
79  int ProcessId;
80 
81  vtkPOpenFOAMReader(const vtkPOpenFOAMReader &) VTK_DELETE_FUNCTION;
82  void operator=(const vtkPOpenFOAMReader &) VTK_DELETE_FUNCTION;
83 
84  void GatherMetaData();
85  void BroadcastStatus(int &);
86  void Broadcast(vtkStringArray *);
87  void AllGather(vtkStringArray *);
88  void AllGather(vtkDataArraySelection *);
89 };
90 
91 #endif
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:300
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:33
Store on/off settings for data arrays for a vtkSource.
reads a dataset in OpenFOAM format
reads a decomposed dataset in OpenFOAM format
Store zero or more vtkInformation instances.
Multiprocessing communication superclass.