VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Parallel
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
34
class
vtkDataArraySelection
;
35
class
vtkMultiProcessController
;
36
37
class
VTK_PARALLEL_EXPORT
vtkPOpenFOAMReader
:
public
vtkOpenFOAMReader
38
{
39
public
:
40
//BTX
41
enum
caseType
{ DECOMPOSED_CASE = 0, RECONSTRUCTED_CASE = 1 };
42
//ETX
43
static
vtkPOpenFOAMReader
*
New
();
44
vtkTypeMacro(
vtkPOpenFOAMReader
,
vtkOpenFOAMReader
);
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
:
60
vtkPOpenFOAMReader
();
61
~
vtkPOpenFOAMReader
();
62
63
int
RequestInformation
(
vtkInformation
*,
vtkInformationVector
**,
64
vtkInformationVector
*);
65
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
66
vtkInformationVector
*);
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
Generated on Tue Jan 8 2013 05:45:37 for VTK by
1.8.1.2