VTK  9.3.20240328
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 
18 VTK_ABI_NAMESPACE_BEGIN
19 class vtkIdList;
20 class vtkIntArray;
21 
22 class VTKFILTERSPARALLEL_EXPORT vtkExtractUnstructuredGridPiece
24 {
25 public:
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
31 
34  vtkSetMacro(CreateGhostCells, vtkTypeBool);
35  vtkGetMacro(CreateGhostCells, vtkTypeBool);
36  vtkBooleanMacro(CreateGhostCells, vtkTypeBool);
38 
39 protected:
41  ~vtkExtractUnstructuredGridPiece() override = default;
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 
56 private:
57  void AddFirstGhostLevel(
58  vtkUnstructuredGrid* input, vtkIntArray* cellTags, int piece, int numPieces);
59 
61  void operator=(const vtkExtractUnstructuredGridPiece&) = delete;
62 };
63 
64 VTK_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.
static vtkExtractUnstructuredGridPiece * New()
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
void AddGhostLevel(vtkUnstructuredGrid *input, vtkIntArray *cellTags, int ghostLevel)
~vtkExtractUnstructuredGridPiece() override=default
list of point or cell ids
Definition: vtkIdList.h:132
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
Definition: vtkIntArray.h:144
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