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
);
52
// Description:
53
// Set and get the controller.
54
virtual
void
SetController(
vtkMultiProcessController
*);
55
vtkGetObjectMacro(Controller,
vtkMultiProcessController
);
57
58
protected
:
59
vtkPOpenFOAMReader
();
60
~
vtkPOpenFOAMReader
();
61
62
int
RequestInformation
(
vtkInformation
*,
vtkInformationVector
**,
63
vtkInformationVector
*);
64
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
65
vtkInformationVector
*);
66
67
private
:
68
vtkMultiProcessController
*Controller;
69
caseType
CaseType;
70
unsigned
long
MTimeOld;
71
int
MaximumNumberOfPieces;
72
int
NumProcesses;
73
int
ProcessId;
74
75
vtkPOpenFOAMReader
(
const
vtkPOpenFOAMReader
&);
// Not implemented.
76
void
operator=(
const
vtkPOpenFOAMReader
&);
// Not implemented.
77
78
void
GatherMetaData();
79
void
BroadcastStatus(
int
&);
80
void
Broadcast(
vtkStringArray
*);
81
void
AllGather(
vtkStringArray
*);
82
void
AllGather(
vtkDataArraySelection
*);
83
};
84
85
#endif
Generated on Wed May 30 2012 13:22:20 for VTK by
1.8.1