VTK  9.3.20240419
vtkExpandMarkedElements.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
25 #ifndef vtkExpandMarkedElements_h
26 #define vtkExpandMarkedElements_h
27 
28 #include "vtkFiltersExtractionModule.h" // For export macro
30 
31 VTK_ABI_NAMESPACE_BEGIN
33 
34 class VTKFILTERSEXTRACTION_EXPORT vtkExpandMarkedElements : public vtkPassInputTypeAlgorithm
35 {
36 public:
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
42 
47  vtkGetObjectMacro(Controller, vtkMultiProcessController);
49 
51 
55  vtkSetClampMacro(NumberOfLayers, int, 1, VTK_INT_MAX);
56  vtkGetMacro(NumberOfLayers, int);
58 
60 
64  vtkSetMacro(RemoveSeed, bool);
65  vtkGetMacro(RemoveSeed, bool);
66  vtkBooleanMacro(RemoveSeed, bool);
68 
70 
74  vtkSetMacro(RemoveIntermediateLayers, bool);
75  vtkGetMacro(RemoveIntermediateLayers, bool);
76  vtkBooleanMacro(RemoveIntermediateLayers, bool);
78 
79 protected:
82 
84 
85 private:
87  void operator=(const vtkExpandMarkedElements&) = delete;
88 
89  vtkMultiProcessController* Controller = nullptr;
90  int NumberOfLayers = 2;
91  bool RemoveSeed = false;
92  bool RemoveIntermediateLayers = false;
93 };
94 
95 VTK_ABI_NAMESPACE_END
96 #endif
expands marked elements to including adjacent elements.
static vtkExpandMarkedElements * New()
void SetController(vtkMultiProcessController *)
Get/Set the controller to use.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkExpandMarkedElements() override
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Multiprocessing communication superclass.
Superclass for algorithms that produce output of the same type as input.
#define VTK_INT_MAX
Definition: vtkType.h:144