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 "vtkOpenFOAMReader.h"
33 
36 
38 {
39 public:
40  //BTX
41  enum caseType { DECOMPOSED_CASE = 0, RECONSTRUCTED_CASE = 1 };
42  //ETX
43  static vtkPOpenFOAMReader *New();
45 
46  void PrintSelf(ostream &os, vtkIndent indent);
47 
49 
50  void SetCaseType(const int t);
51  vtkGetMacro(CaseType, caseType);
53 
54 
55  virtual void SetController(vtkMultiProcessController *);
56  vtkGetObjectMacro(Controller, vtkMultiProcessController);
58 
59 protected:
62 
67 
68 private:
69  vtkMultiProcessController *Controller;
70  caseType CaseType;
71  unsigned long MTimeOld;
72  int MaximumNumberOfPieces;
73  int NumProcesses;
74  int ProcessId;
75 
76  vtkPOpenFOAMReader(const vtkPOpenFOAMReader &); // Not implemented.
77  void operator=(const vtkPOpenFOAMReader &); // Not implemented.
78 
79  void GatherMetaData();
80  void BroadcastStatus(int &);
81  void Broadcast(vtkStringArray *);
82  void AllGather(vtkStringArray *);
83  void AllGather(vtkDataArraySelection *);
84 };
85 
86 #endif