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=========================================================================*/
33#ifndef vtkPOpenFOAMReader_h
34#define vtkPOpenFOAMReader_h
35
36#include "vtkIOParallelModule.h" // For export macro
37#include "vtkOpenFOAMReader.h"
38
41
42class VTKIOPARALLEL_EXPORT vtkPOpenFOAMReader : public vtkOpenFOAMReader
43{
44public:
45
46 enum caseType { DECOMPOSED_CASE = 0, RECONSTRUCTED_CASE = 1 };
47
50
51 void PrintSelf(ostream &os, vtkIndent indent);
52
54
57 void SetCaseType(const int t);
58 vtkGetMacro(CaseType, caseType);
60
61
65 vtkGetObjectMacro(Controller, vtkMultiProcessController);
67
68protected:
71
76
77private:
78 vtkMultiProcessController *Controller;
79 caseType CaseType;
80 vtkMTimeType MTimeOld;
81 int NumProcesses;
82 int ProcessId;
83
84 vtkPOpenFOAMReader(const vtkPOpenFOAMReader &) VTK_DELETE_FUNCTION;
85 void operator=(const vtkPOpenFOAMReader &) VTK_DELETE_FUNCTION;
86
87 void GatherMetaData();
88 void BroadcastStatus(int &);
89 void Broadcast(vtkStringArray *);
90 void AllGather(vtkStringArray *);
91 void AllGather(vtkDataArraySelection *);
92};
93
94#endif
Store on/off settings for data arrays for a vtkSource.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Multiprocessing communication superclass.
reads a dataset in OpenFOAM format
reads a decomposed dataset in OpenFOAM format
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
void SetCaseType(const int t)
Set and get case type.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkPOpenFOAMReader * New()
virtual void SetController(vtkMultiProcessController *)
Set and get the controller.
a vtkAbstractArray subclass for strings
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248