VTK  9.1.0
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=========================================================================*/
30#ifndef vtkPOpenFOAMReader_h
31#define vtkPOpenFOAMReader_h
32
33#include "vtkIOParallelModule.h" // For export macro
34#include "vtkOpenFOAMReader.h"
35
38
39class VTKIOPARALLEL_EXPORT vtkPOpenFOAMReader : public vtkOpenFOAMReader
40{
41public:
43 {
44 DECOMPOSED_CASE = 0,
45 RECONSTRUCTED_CASE = 1
46 };
47
50
51 void PrintSelf(ostream& os, vtkIndent indent) override;
52
54
57 void SetCaseType(const int t);
58 vtkGetMacro(CaseType, caseType);
61
65 vtkGetObjectMacro(Controller, vtkMultiProcessController);
67
68protected:
71
74
75private:
76 vtkMultiProcessController* Controller;
77 caseType CaseType;
78 vtkMTimeType MTimeOld;
79 int NumProcesses;
80 int ProcessId;
81
83 void operator=(const vtkPOpenFOAMReader&) = delete;
84
85 void GatherMetaData();
86 void BroadcastStatus(int&);
87 void Broadcast(vtkStringArray*);
88 void AllGather(vtkStringArray*);
89 void AllGather(vtkDataArraySelection*);
90};
91
92#endif
Store on/off settings for data arrays for a vtkSource.
a simple class to control print indentation
Definition: vtkIndent.h:113
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
void SetCaseType(const int t)
Set and get case type.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkPOpenFOAMReader() override
static vtkPOpenFOAMReader * New()
virtual void SetController(vtkMultiProcessController *)
Set and get the controller.
a vtkAbstractArray subclass for strings
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287