VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filters
Parallel
vtkExtractUnstructuredGridPiece.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkExtractUnstructuredGridPiece.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
=========================================================================*/
23
#ifndef __vtkExtractUnstructuredGridPiece_h
24
#define __vtkExtractUnstructuredGridPiece_h
25
26
#include "vtkFiltersParallelModule.h"
// For export macro
27
#include "
vtkUnstructuredGridAlgorithm.h
"
28
29
class
vtkIdList
;
30
class
vtkIntArray
;
31
32
class
VTKFILTERSPARALLEL_EXPORT
vtkExtractUnstructuredGridPiece
:
public
vtkUnstructuredGridAlgorithm
33
{
34
public
:
35
static
vtkExtractUnstructuredGridPiece
*
New
();
36
vtkTypeMacro(
vtkExtractUnstructuredGridPiece
,
vtkUnstructuredGridAlgorithm
);
37
void
PrintSelf
(ostream& os,
vtkIndent
indent);
38
40
41
vtkSetMacro(CreateGhostCells,
int
);
42
vtkGetMacro(CreateGhostCells,
int
);
43
vtkBooleanMacro(CreateGhostCells,
int
);
45
46
protected
:
47
vtkExtractUnstructuredGridPiece
();
48
~vtkExtractUnstructuredGridPiece
() {};
49
50
// Usual data generation method
51
virtual
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
52
virtual
int
RequestInformation
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
53
virtual
int
RequestUpdateExtent
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
54
55
// A method for labeling which piece the cells belong to.
56
void
ComputeCellTags(
vtkIntArray
*cellTags,
vtkIdList
*pointOwnership,
57
int
piece,
int
numPieces,
vtkUnstructuredGrid
*input);
58
59
void
AddGhostLevel(
vtkUnstructuredGrid
*input,
vtkIntArray
*cellTags,
int
ghostLevel);
60
61
int
CreateGhostCells
;
62
private
:
63
vtkExtractUnstructuredGridPiece
(
const
vtkExtractUnstructuredGridPiece
&);
// Not implemented.
64
void
operator=(
const
vtkExtractUnstructuredGridPiece
&);
// Not implemented.
65
};
66
67
#endif
Generated on Thu May 24 2012 22:22:22 for VTK by
1.8.1