VTK
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
=========================================================================*/
24
#ifndef vtkExtractUnstructuredGridPiece_h
25
#define vtkExtractUnstructuredGridPiece_h
26
27
#include "vtkFiltersParallelModule.h"
// For export macro
28
#include "
vtkUnstructuredGridAlgorithm.h
"
29
30
class
vtkIdList
;
31
class
vtkIntArray
;
32
33
class
VTKFILTERSPARALLEL_EXPORT
vtkExtractUnstructuredGridPiece
:
public
vtkUnstructuredGridAlgorithm
34
{
35
public
:
36
static
vtkExtractUnstructuredGridPiece
*
New
();
37
vtkTypeMacro(
vtkExtractUnstructuredGridPiece
,
vtkUnstructuredGridAlgorithm
);
38
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
39
41
44
vtkSetMacro(CreateGhostCells,
vtkTypeBool
);
45
vtkGetMacro(CreateGhostCells,
vtkTypeBool
);
46
vtkBooleanMacro(CreateGhostCells,
vtkTypeBool
);
48
49
protected
:
50
vtkExtractUnstructuredGridPiece
();
51
~vtkExtractUnstructuredGridPiece
()
override
{}
52
53
// Usual data generation method
54
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
55
int
RequestUpdateExtent
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
56
int
RequestInformation
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
57
58
// A method for labeling which piece the cells belong to.
59
void
ComputeCellTags
(
vtkIntArray
*cellTags,
vtkIdList
*pointOwnership,
60
int
piece,
int
numPieces,
vtkUnstructuredGrid
*input);
61
62
void
AddGhostLevel
(
vtkUnstructuredGrid
*input,
vtkIntArray
*cellTags,
int
ghostLevel);
63
64
vtkTypeBool
CreateGhostCells
;
65
private
:
66
void
AddFirstGhostLevel(
vtkUnstructuredGrid
*input,
vtkIntArray
*cellTags,
67
int
piece,
int
numPieces);
68
69
vtkExtractUnstructuredGridPiece
(
const
vtkExtractUnstructuredGridPiece
&) =
delete
;
70
void
operator=(
const
vtkExtractUnstructuredGridPiece
&) =
delete
;
71
};
72
73
#endif
vtkExtractUnstructuredGridPiece::~vtkExtractUnstructuredGridPiece
~vtkExtractUnstructuredGridPiece() override
Definition:
vtkExtractUnstructuredGridPiece.h:51
vtkInformationVector
Store zero or more vtkInformation instances.
Definition:
vtkInformationVector.h:42
vtkExtractUnstructuredGridPiece::New
static vtkExtractUnstructuredGridPiece * New()
vtkExtractUnstructuredGridPiece::CreateGhostCells
vtkTypeBool CreateGhostCells
Definition:
vtkExtractUnstructuredGridPiece.h:64
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:40
vtkIntArray
dynamic, self-adjusting array of int
Definition:
vtkIntArray.h:46
vtkExtractUnstructuredGridPiece
Return specified piece, including specified number of ghost levels.
Definition:
vtkExtractUnstructuredGridPiece.h:34
vtkIdList
list of point or cell ids
Definition:
vtkIdList.h:37
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:87
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:89
vtkTypeBool
int vtkTypeBool
Definition:
vtkABI.h:69
Generated by
1.8.20