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 *);
62 
63 protected:
66 
71 
72 private:
73  vtkMultiProcessController *Controller;
74  caseType CaseType;
75  unsigned long MTimeOld;
76  int MaximumNumberOfPieces;
77  int NumProcesses;
78  int ProcessId;
79 
80  vtkPOpenFOAMReader(const vtkPOpenFOAMReader &); // Not implemented.
81  void operator=(const vtkPOpenFOAMReader &); // Not implemented.
82 
83  void GatherMetaData();
84  void BroadcastStatus(int &);
85  void Broadcast(vtkStringArray *);
86  void AllGather(vtkStringArray *);
87  void AllGather(vtkDataArraySelection *);
88 };
89 
90 #endif
#define VTKIOPARALLEL_EXPORT
Store vtkAlgorithm input/output information.
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:83
void PrintSelf(ostream &, vtkIndent)
a vtkAbstractArray subclass for strings
GLdouble GLdouble t
Definition: vtkgl.h:11602
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:619
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
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:222
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.