VTK
9.0.1
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
=========================================================================*/
21
#ifndef vtkExtractUnstructuredGridPiece_h
22
#define vtkExtractUnstructuredGridPiece_h
23
24
#include "vtkFiltersParallelModule.h"
// For export macro
25
#include "
vtkUnstructuredGridAlgorithm.h
"
26
27
class
vtkIdList
;
28
class
vtkIntArray
;
29
30
class
VTKFILTERSPARALLEL_EXPORT
vtkExtractUnstructuredGridPiece
31
:
public
vtkUnstructuredGridAlgorithm
32
{
33
public
:
34
static
vtkExtractUnstructuredGridPiece
*
New
();
35
vtkTypeMacro(
vtkExtractUnstructuredGridPiece
,
vtkUnstructuredGridAlgorithm
);
36
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
37
39
42
vtkSetMacro(CreateGhostCells,
vtkTypeBool
);
43
vtkGetMacro(CreateGhostCells,
vtkTypeBool
);
44
vtkBooleanMacro(CreateGhostCells,
vtkTypeBool
);
46
47
protected
:
48
vtkExtractUnstructuredGridPiece
();
49
~vtkExtractUnstructuredGridPiece
()
override
{}
50
51
// Usual data generation method
52
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
53
int
RequestUpdateExtent
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
54
int
RequestInformation
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
55
56
// A method for labeling which piece the cells belong to.
57
void
ComputeCellTags
(
vtkIntArray
* cellTags,
vtkIdList
* pointOwnership,
int
piece,
int
numPieces,
58
vtkUnstructuredGrid
* input);
59
60
void
AddGhostLevel
(
vtkUnstructuredGrid
* input,
vtkIntArray
* cellTags,
int
ghostLevel);
61
62
vtkTypeBool
CreateGhostCells
;
63
64
private
:
65
void
AddFirstGhostLevel(
66
vtkUnstructuredGrid
* input,
vtkIntArray
* cellTags,
int
piece,
int
numPieces);
67
68
vtkExtractUnstructuredGridPiece
(
const
vtkExtractUnstructuredGridPiece
&) =
delete
;
69
void
operator=(
const
vtkExtractUnstructuredGridPiece
&) =
delete
;
70
};
71
72
#endif
vtkExtractUnstructuredGridPiece::~vtkExtractUnstructuredGridPiece
~vtkExtractUnstructuredGridPiece() override
Definition:
vtkExtractUnstructuredGridPiece.h:49
vtkInformationVector
Store zero or more vtkInformation instances.
Definition:
vtkInformationVector.h:36
vtkExtractUnstructuredGridPiece::New
static vtkExtractUnstructuredGridPiece * New()
vtkExtractUnstructuredGridPiece::CreateGhostCells
vtkTypeBool CreateGhostCells
Definition:
vtkExtractUnstructuredGridPiece.h:62
vtkExtractUnstructuredGridPiece::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkExtractUnstructuredGridPiece::RequestUpdateExtent
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkExtractUnstructuredGridPiece::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkExtractUnstructuredGridPiece::AddGhostLevel
void AddGhostLevel(vtkUnstructuredGrid *input, vtkIntArray *cellTags, int ghostLevel)
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:34
vtkIntArray
dynamic, self-adjusting array of int
Definition:
vtkIntArray.h:40
vtkExtractUnstructuredGridPiece
Return specified piece, including specified number of ghost levels.
Definition:
vtkExtractUnstructuredGridPiece.h:32
vtkIdList
list of point or cell ids
Definition:
vtkIdList.h:31
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:65
vtkExtractUnstructuredGridPiece::vtkExtractUnstructuredGridPiece
vtkExtractUnstructuredGridPiece()
vtkExtractUnstructuredGridPiece::ComputeCellTags
void ComputeCellTags(vtkIntArray *cellTags, vtkIdList *pointOwnership, int piece, int numPieces, vtkUnstructuredGrid *input)
vtkUnstructuredGridAlgorithm.h
vtkUnstructuredGridAlgorithm
Superclass for algorithms that produce only unstructured grid as output.
Definition:
vtkUnstructuredGridAlgorithm.h:41
vtkExtractUnstructuredGridPiece::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition:
vtkUnstructuredGrid.h:93
vtkTypeBool
int vtkTypeBool
Definition:
vtkABI.h:69
Generated on Mon Jan 4 2021 21:12:05 for VTK by
1.8.20