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 =========================================================================*/
29 #ifndef __vtkPOpenFOAMReader_h
30 #define __vtkPOpenFOAMReader_h
31 
32 #include "vtkIOParallelModule.h" // For export macro
33 #include "vtkOpenFOAMReader.h"
34 
37 
38 class VTKIOPARALLEL_EXPORT vtkPOpenFOAMReader : public vtkOpenFOAMReader
39 {
40 public:
41  //BTX
42  enum caseType { DECOMPOSED_CASE = 0, RECONSTRUCTED_CASE = 1 };
43  //ETX
44  static vtkPOpenFOAMReader *New();
46 
47  void PrintSelf(ostream &os, vtkIndent indent);
48 
50 
51  void SetCaseType(const int t);
52  vtkGetMacro(CaseType, caseType);
54 
55 
56  virtual void SetController(vtkMultiProcessController *);
57  vtkGetObjectMacro(Controller, vtkMultiProcessController);
59 
60 protected:
63 
68 
69 private:
70  vtkMultiProcessController *Controller;
71  caseType CaseType;
72  unsigned long MTimeOld;
73  int MaximumNumberOfPieces;
74  int NumProcesses;
75  int ProcessId;
76 
77  vtkPOpenFOAMReader(const vtkPOpenFOAMReader &); // Not implemented.
78  void operator=(const vtkPOpenFOAMReader &); // Not implemented.
79 
80  void GatherMetaData();
81  void BroadcastStatus(int &);
82  void Broadcast(vtkStringArray *);
83  void AllGather(vtkStringArray *);
84  void AllGather(vtkDataArraySelection *);
85 };
86 
87 #endif