VTK  9.3.20240506
vtkExtractUnstructuredGridPiece.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
12#ifndef vtkExtractUnstructuredGridPiece_h
13#define vtkExtractUnstructuredGridPiece_h
14
15#include "vtkFiltersParallelModule.h" // For export macro
17
18VTK_ABI_NAMESPACE_BEGIN
19class vtkIdList;
20class vtkIntArray;
21
22class VTKFILTERSPARALLEL_EXPORT vtkExtractUnstructuredGridPiece
24{
25public:
28 void PrintSelf(ostream& os, vtkIndent indent) override;
29
31
34 vtkSetMacro(CreateGhostCells, vtkTypeBool);
35 vtkGetMacro(CreateGhostCells, vtkTypeBool);
36 vtkBooleanMacro(CreateGhostCells, vtkTypeBool);
38
39protected:
42
43 // Usual data generation method
47
48 // A method for labeling which piece the cells belong to.
49 void ComputeCellTags(vtkIntArray* cellTags, vtkIdList* pointOwnership, int piece, int numPieces,
50 vtkUnstructuredGrid* input);
51
52 void AddGhostLevel(vtkUnstructuredGrid* input, vtkIntArray* cellTags, int ghostLevel);
53
55
56private:
57 void AddFirstGhostLevel(
58 vtkUnstructuredGrid* input, vtkIntArray* cellTags, int piece, int numPieces);
59
61 void operator=(const vtkExtractUnstructuredGridPiece&) = delete;
62};
63
64VTK_ABI_NAMESPACE_END
65#endif
Return specified piece, including specified number of ghost levels.
void ComputeCellTags(vtkIntArray *cellTags, vtkIdList *pointOwnership, int piece, int numPieces, vtkUnstructuredGrid *input)
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
void AddGhostLevel(vtkUnstructuredGrid *input, vtkIntArray *cellTags, int ghostLevel)
~vtkExtractUnstructuredGridPiece() override=default
static vtkExtractUnstructuredGridPiece * New()
list of point or cell ids
Definition vtkIdList.h:133
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
dynamic, self-adjusting array of int
Superclass for algorithms that produce only unstructured grid as output.
dataset represents arbitrary combinations of all possible cell types
int vtkTypeBool
Definition vtkABI.h:64