VTK  9.3.1
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:
25  static vtkExtractPolyDataPiece* New();
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.
47  void ComputeCellTags(
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
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:64
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:34
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:28
list of point or cell ids
Definition: vtkIdList.h:22
Store zero or more vtkInformation instances.
Return specified piece, including specified number of ghost levels.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.