VTK  9.3.0
vtkExtractPolyDataPiece.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 vtkExtractPolyDataPiece_h
13 #define vtkExtractPolyDataPiece_h
14 
15 #include "vtkFiltersParallelModule.h" // For export macro
16 #include "vtkPolyDataAlgorithm.h"
17 
18 VTK_ABI_NAMESPACE_BEGIN
19 class vtkIdList;
20 class vtkIntArray;
21 
22 class VTKFILTERSPARALLEL_EXPORT vtkExtractPolyDataPiece : public vtkPolyDataAlgorithm
23 {
24 public:
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
30 
33  vtkSetMacro(CreateGhostCells, vtkTypeBool);
34  vtkGetMacro(CreateGhostCells, vtkTypeBool);
35  vtkBooleanMacro(CreateGhostCells, vtkTypeBool);
37 
38 protected:
40  ~vtkExtractPolyDataPiece() override = default;
41 
42  // Usual data generation method
45 
46  // A method for labeling which piece the cells belong to.
48  vtkIntArray* cellTags, vtkIdList* pointOwnership, int piece, int numPieces, vtkPolyData* input);
49 
50  void AddGhostLevel(vtkPolyData* input, vtkIntArray* cellTags, int ghostLevel);
51 
53 
54 private:
56  void operator=(const vtkExtractPolyDataPiece&) = delete;
57 };
58 
59 VTK_ABI_NAMESPACE_END
60 #endif
Return specified piece, including specified number of ghost levels.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void ComputeCellTags(vtkIntArray *cellTags, vtkIdList *pointOwnership, int piece, int numPieces, vtkPolyData *input)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void AddGhostLevel(vtkPolyData *input, vtkIntArray *cellTags, int ghostLevel)
static vtkExtractPolyDataPiece * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkExtractPolyDataPiece() override=default
list of point or cell ids
Definition: vtkIdList.h:32
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:44
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:89
int vtkTypeBool
Definition: vtkABI.h:64