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 =========================================================================*/
32 #ifndef vtkPOpenFOAMReader_h
33 #define vtkPOpenFOAMReader_h
34 
35 #include "vtkIOParallelModule.h" // For export macro
36 #include "vtkOpenFOAMReader.h"
37 
40 
42 {
43 public:
44  //BTX
45  enum caseType { DECOMPOSED_CASE = 0, RECONSTRUCTED_CASE = 1 };
46  //ETX
47  static vtkPOpenFOAMReader *New();
49 
50  void PrintSelf(ostream &os, vtkIndent indent);
51 
53 
54  void SetCaseType(const int t);
55  vtkGetMacro(CaseType, caseType);
57 
58 
59  virtual void SetController(vtkMultiProcessController *);
60  vtkGetObjectMacro(Controller, vtkMultiProcessController);
62 
63 protected:
66 
71 
72 private:
73  vtkMultiProcessController *Controller;
74  caseType CaseType;
75  unsigned long MTimeOld;
76  int NumProcesses;
77  int ProcessId;
78 
79  vtkPOpenFOAMReader(const vtkPOpenFOAMReader &); // Not implemented.
80  void operator=(const vtkPOpenFOAMReader &); // Not implemented.
81 
82  void GatherMetaData();
83  void BroadcastStatus(int &);
84  void Broadcast(vtkStringArray *);
85  void AllGather(vtkStringArray *);
86  void AllGather(vtkDataArraySelection *);
87 };
88 
89 #endif
#define VTKIOPARALLEL_EXPORT
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &, vtkIndent)
a vtkAbstractArray subclass for strings
static vtkOpenFOAMReader * New()
a simple class to control print indentation
Definition: vtkIndent.h:38
Store on/off settings for data arrays for a vtkSource.
reads a dataset in OpenFOAM format
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
reads a decomposed dataset in OpenFOAM format
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store zero or more vtkInformation instances.
Multiprocessing communication superclass.