VTK  9.3.20240418
vtkExtractGeometry.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
63 #ifndef vtkExtractGeometry_h
64 #define vtkExtractGeometry_h
65 
66 #include "vtkFiltersExtractionModule.h" // For export macro
68 
69 VTK_ABI_NAMESPACE_BEGIN
71 
72 class VTKFILTERSEXTRACTION_EXPORT vtkExtractGeometry : public vtkUnstructuredGridAlgorithm
73 {
74 public:
76  void PrintSelf(ostream& os, vtkIndent indent) override;
77 
82 
86  vtkMTimeType GetMTime() override;
87 
89 
93  vtkGetObjectMacro(ImplicitFunction, vtkImplicitFunction);
95 
97 
102  vtkSetMacro(ExtractInside, vtkTypeBool);
103  vtkGetMacro(ExtractInside, vtkTypeBool);
104  vtkBooleanMacro(ExtractInside, vtkTypeBool);
106 
108 
112  vtkSetMacro(ExtractBoundaryCells, vtkTypeBool);
113  vtkGetMacro(ExtractBoundaryCells, vtkTypeBool);
114  vtkBooleanMacro(ExtractBoundaryCells, vtkTypeBool);
115  vtkSetMacro(ExtractOnlyBoundaryCells, vtkTypeBool);
116  vtkGetMacro(ExtractOnlyBoundaryCells, vtkTypeBool);
117  vtkBooleanMacro(ExtractOnlyBoundaryCells, vtkTypeBool);
119 
120 protected:
123 
124  // Usual data generation method
126 
128 
133 
134 private:
135  vtkExtractGeometry(const vtkExtractGeometry&) = delete;
136  void operator=(const vtkExtractGeometry&) = delete;
137 };
138 
139 VTK_ABI_NAMESPACE_END
140 #endif
extract cells that lie either entirely inside or outside of a specified implicit function
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMTimeType GetMTime() override
Return the MTime taking into account changes to the implicit function.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
static vtkExtractGeometry * New()
Construct object with ExtractInside turned on.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkImplicitFunction * ImplicitFunction
~vtkExtractGeometry() override
vtkTypeBool ExtractBoundaryCells
vtkTypeBool ExtractOnlyBoundaryCells
virtual void SetImplicitFunction(vtkImplicitFunction *)
Specify the implicit function for inside/outside checks.
vtkExtractGeometry(vtkImplicitFunction *f=nullptr)
abstract interface for implicit functions
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only unstructured grid as output.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
int vtkTypeBool
Definition: vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270