VTK  9.3.0
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
34#ifndef vtkExtractGeometry_h
35#define vtkExtractGeometry_h
36
37#include "vtkFiltersExtractionModule.h" // For export macro
39
40VTK_ABI_NAMESPACE_BEGIN
42
43class VTKFILTERSEXTRACTION_EXPORT vtkExtractGeometry : public vtkUnstructuredGridAlgorithm
44{
45public:
47 void PrintSelf(ostream& os, vtkIndent indent) override;
48
53
58
60
64 vtkGetObjectMacro(ImplicitFunction, vtkImplicitFunction);
66
68
73 vtkSetMacro(ExtractInside, vtkTypeBool);
74 vtkGetMacro(ExtractInside, vtkTypeBool);
75 vtkBooleanMacro(ExtractInside, vtkTypeBool);
77
79
83 vtkSetMacro(ExtractBoundaryCells, vtkTypeBool);
84 vtkGetMacro(ExtractBoundaryCells, vtkTypeBool);
85 vtkBooleanMacro(ExtractBoundaryCells, vtkTypeBool);
86 vtkSetMacro(ExtractOnlyBoundaryCells, vtkTypeBool);
87 vtkGetMacro(ExtractOnlyBoundaryCells, vtkTypeBool);
88 vtkBooleanMacro(ExtractOnlyBoundaryCells, vtkTypeBool);
90
91protected:
94
95 // Usual data generation method
97
98 int FillInputPortInformation(int port, vtkInformation* info) override;
99
104
105private:
106 vtkExtractGeometry(const vtkExtractGeometry&) = delete;
107 void operator=(const vtkExtractGeometry&) = delete;
108};
109
110VTK_ABI_NAMESPACE_END
111#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:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only unstructured grid as output.
int vtkTypeBool
Definition vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270