VTK  9.1.0
vtkExtractPolyDataPiece.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkExtractPolyDataPiece.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
21#ifndef vtkExtractPolyDataPiece_h
22#define vtkExtractPolyDataPiece_h
23
24#include "vtkFiltersParallelModule.h" // For export macro
26
27class vtkIdList;
28class vtkIntArray;
29
30class VTKFILTERSPARALLEL_EXPORT vtkExtractPolyDataPiece : public vtkPolyDataAlgorithm
31{
32public:
35 void PrintSelf(ostream& os, vtkIndent indent) override;
36
38
41 vtkSetMacro(CreateGhostCells, vtkTypeBool);
42 vtkGetMacro(CreateGhostCells, vtkTypeBool);
43 vtkBooleanMacro(CreateGhostCells, vtkTypeBool);
45
46protected:
48 ~vtkExtractPolyDataPiece() override = default;
49
50 // Usual data generation method
53
54 // A method for labeling which piece the cells belong to.
56 vtkIntArray* cellTags, vtkIdList* pointOwnership, int piece, int numPieces, vtkPolyData* input);
57
58 void AddGhostLevel(vtkPolyData* input, vtkIntArray* cellTags, int ghostLevel);
59
61
62private:
64 void operator=(const vtkExtractPolyDataPiece&) = delete;
65};
66
67#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:140
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:149
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:195
int vtkTypeBool
Definition: vtkABI.h:69