VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
Parallel
vtkPChacoReader.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkPChacoReader.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
=========================================================================*/
15
/*----------------------------------------------------------------------------
16
Copyright (c) Sandia Corporation
17
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
18
----------------------------------------------------------------------------*/
19
29
#ifndef __vtkPChacoReader_h
30
#define __vtkPChacoReader_h
31
32
#include "vtkIOParallelModule.h"
// For export macro
33
#include "
vtkChacoReader.h
"
34
35
class
vtkTimerLog
;
36
class
vtkMultiProcessController
;
37
38
class
VTKIOPARALLEL_EXPORT
vtkPChacoReader
:
public
vtkChacoReader
39
{
40
public
:
41
static
vtkPChacoReader
*
New
();
42
vtkTypeMacro(
vtkPChacoReader
,
vtkChacoReader
);
43
void
PrintSelf
(ostream& os,
vtkIndent
indent);
44
48
void
SetController(
vtkMultiProcessController
*c);
49
vtkGetObjectMacro(Controller,
vtkMultiProcessController
);
50
51
protected
:
52
vtkPChacoReader
();
53
~
vtkPChacoReader
();
54
55
int
RequestInformation
(
56
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
57
int
RequestData
(
58
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
59
60
private
:
61
vtkPChacoReader
(
const
vtkPChacoReader
&);
// Not implemented
62
void
operator=(
const
vtkPChacoReader
&);
// Not implemented
63
64
void
SetUpEmptyGrid(
vtkUnstructuredGrid
*output);
65
int
DivideCells(
vtkMultiProcessController
*contr,
vtkUnstructuredGrid
*output,
66
int
source
);
67
int
SendGrid(
vtkMultiProcessController
*c,
int
to,
vtkUnstructuredGrid
*grid);
68
vtkUnstructuredGrid
*GetGrid(
vtkMultiProcessController
*c,
int
from);
69
vtkUnstructuredGrid
*SubGrid(
vtkUnstructuredGrid
*ug,
vtkIdType
from,
vtkIdType
to);
70
char
*MarshallDataSet(
vtkUnstructuredGrid
*extractedGrid,
int
&len);
71
vtkUnstructuredGrid
*UnMarshallDataSet(
char
*buf,
int
size
);
72
73
int
NumProcesses;
74
int
MyId;
75
76
vtkMultiProcessController
*Controller;
77
};
78
79
#endif
Generated on Thu May 24 2012 22:22:32 for VTK by
1.8.1