VTK  9.3.0
vtkDistancePolyDataFilter.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
31#ifndef vtkDistancePolyDataFilter_h
32#define vtkDistancePolyDataFilter_h
33
34#include "vtkFiltersGeneralModule.h" // For export macro
36
37VTK_ABI_NAMESPACE_BEGIN
38class VTKFILTERSGENERAL_EXPORT vtkDistancePolyDataFilter : public vtkPolyDataAlgorithm
39{
40public:
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
46
50 vtkSetMacro(SignedDistance, vtkTypeBool);
51 vtkGetMacro(SignedDistance, vtkTypeBool);
52 vtkBooleanMacro(SignedDistance, vtkTypeBool);
54
56
60 vtkSetMacro(NegateDistance, vtkTypeBool);
61 vtkGetMacro(NegateDistance, vtkTypeBool);
62 vtkBooleanMacro(NegateDistance, vtkTypeBool);
64
66
70 vtkSetMacro(ComputeSecondDistance, vtkTypeBool);
71 vtkGetMacro(ComputeSecondDistance, vtkTypeBool);
72 vtkBooleanMacro(ComputeSecondDistance, vtkTypeBool);
74
82
84
91 vtkSetMacro(ComputeCellCenterDistance, vtkTypeBool);
92 vtkGetMacro(ComputeCellCenterDistance, vtkTypeBool);
93 vtkBooleanMacro(ComputeCellCenterDistance, vtkTypeBool);
95
97
101 vtkSetMacro(ComputeDirection, vtkTypeBool);
102 vtkGetMacro(ComputeDirection, vtkTypeBool);
103 vtkBooleanMacro(ComputeDirection, vtkTypeBool);
105
106protected:
109
112
113private:
115 void operator=(const vtkDistancePolyDataFilter&) = delete;
116
117 vtkTypeBool SignedDistance;
118 vtkTypeBool NegateDistance;
119 vtkTypeBool ComputeSecondDistance;
120 vtkTypeBool ComputeCellCenterDistance;
121 vtkTypeBool ComputeDirection;
122};
123
124VTK_ABI_NAMESPACE_END
125#endif
Computes the signed distance from one vtkPolyData to another.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkDistancePolyDataFilter * New()
void GetPolyDataDistance(vtkPolyData *, vtkPolyData *)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPolyData * GetSecondDistanceOutput()
Get the second output, which is a copy of the second input with an additional distance scalar field.
~vtkDistancePolyDataFilter() override
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 polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:80
int vtkTypeBool
Definition vtkABI.h:64