VTK  9.3.20240423
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
17
18VTK_ABI_NAMESPACE_BEGIN
19class vtkIdList;
20class vtkIntArray;
21
22class VTKFILTERSPARALLEL_EXPORT vtkExtractPolyDataPiece : public vtkPolyDataAlgorithm
23{
24public:
27 void PrintSelf(ostream& os, vtkIndent indent) override;
28
30
33 vtkSetMacro(CreateGhostCells, vtkTypeBool);
34 vtkGetMacro(CreateGhostCells, vtkTypeBool);
35 vtkBooleanMacro(CreateGhostCells, vtkTypeBool);
37
38protected:
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
54private:
56 void operator=(const vtkExtractPolyDataPiece&) = delete;
57};
58
59VTK_ABI_NAMESPACE_END
60#endif
Return specified piece, including specified number of ghost levels.
static vtkExtractPolyDataPiece * New()
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)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkExtractPolyDataPiece() override=default
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 polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
int vtkTypeBool
Definition vtkABI.h:64