VTK: Filters/Parallel/vtkExtractPolyDataPiece.h Source File

| 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();
26 vtkTypeMacro(vtkExtractPolyDataPiece, vtkPolyDataAlgorithm);
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:
39 vtkExtractPolyDataPiece();
40 ~vtkExtractPolyDataPiece() override = default;
41
42 // Usual data generation method
43 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
44 int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
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
52 vtkTypeBool CreateGhostCells;
53
54 private:
55 vtkExtractPolyDataPiece(const vtkExtractPolyDataPiece&) = delete;
56 void operator=(const vtkExtractPolyDataPiece&) = delete;
57 };
58
59 VTK_ABI_NAMESPACE_END
60 #endif
vtkExtractPolyDataPiece
Return specified piece, including specified number of ghost levels.
Definition: vtkExtractPolyDataPiece.h:23
vtkExtractPolyDataPiece::RequestUpdateExtent
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkExtractPolyDataPiece::ComputeCellTags
void ComputeCellTags(vtkIntArray *cellTags, vtkIdList *pointOwnership, int piece, int numPieces, vtkPolyData *input)
vtkExtractPolyDataPiece::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkExtractPolyDataPiece::CreateGhostCells
vtkTypeBool CreateGhostCells
Definition: vtkExtractPolyDataPiece.h:52
vtkExtractPolyDataPiece::vtkExtractPolyDataPiece
vtkExtractPolyDataPiece()
vtkExtractPolyDataPiece::AddGhostLevel
void AddGhostLevel(vtkPolyData *input, vtkIntArray *cellTags, int ghostLevel)
vtkExtractPolyDataPiece::New
static vtkExtractPolyDataPiece * New()
vtkExtractPolyDataPiece::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkExtractPolyDataPiece::~vtkExtractPolyDataPiece
~vtkExtractPolyDataPiece() override=default
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:32
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkIntArray
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:44
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:43
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:89
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:64
vtkPolyDataAlgorithm.h