VTK  9.3.1
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
35 #include "vtkPolyDataAlgorithm.h"
36 
37 VTK_ABI_NAMESPACE_BEGIN
38 class VTKFILTERSGENERAL_EXPORT vtkDistancePolyDataFilter : public vtkPolyDataAlgorithm
39 {
40 public:
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 
81  vtkPolyData* GetSecondDistanceOutput();
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 
106 protected:
108  ~vtkDistancePolyDataFilter() override;
109 
111  void GetPolyDataDistance(vtkPolyData*, vtkPolyData*);
112 
113 private:
115  void operator=(const vtkDistancePolyDataFilter&) = delete;
116 
117  vtkTypeBool SignedDistance;
118  vtkTypeBool NegateDistance;
119  vtkTypeBool ComputeSecondDistance;
120  vtkTypeBool ComputeCellCenterDistance;
121  vtkTypeBool ComputeDirection;
122 };
123 
124 VTK_ABI_NAMESPACE_END
125 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:64
Computes the signed distance from one vtkPolyData to another.
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:28
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.