VTK  9.1.0
vtkDistancePolyDataFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkDistancePolyDataFilter.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
37#ifndef vtkDistancePolyDataFilter_h
38#define vtkDistancePolyDataFilter_h
39
40#include "vtkFiltersGeneralModule.h" // For export macro
42
43class VTKFILTERSGENERAL_EXPORT vtkDistancePolyDataFilter : public vtkPolyDataAlgorithm
44{
45public:
48 void PrintSelf(ostream& os, vtkIndent indent) override;
49
51
55 vtkSetMacro(SignedDistance, vtkTypeBool);
56 vtkGetMacro(SignedDistance, vtkTypeBool);
57 vtkBooleanMacro(SignedDistance, vtkTypeBool);
59
61
65 vtkSetMacro(NegateDistance, vtkTypeBool);
66 vtkGetMacro(NegateDistance, vtkTypeBool);
67 vtkBooleanMacro(NegateDistance, vtkTypeBool);
69
71
75 vtkSetMacro(ComputeSecondDistance, vtkTypeBool);
76 vtkGetMacro(ComputeSecondDistance, vtkTypeBool);
77 vtkBooleanMacro(ComputeSecondDistance, vtkTypeBool);
79
87
89
96 vtkSetMacro(ComputeCellCenterDistance, vtkTypeBool);
97 vtkGetMacro(ComputeCellCenterDistance, vtkTypeBool);
98 vtkBooleanMacro(ComputeCellCenterDistance, vtkTypeBool);
100
101protected:
104
107
108private:
110 void operator=(const vtkDistancePolyDataFilter&) = delete;
111
112 vtkTypeBool SignedDistance;
113 vtkTypeBool NegateDistance;
114 vtkTypeBool ComputeSecondDistance;
115 vtkTypeBool ComputeCellCenterDistance;
116};
117
118#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:34
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:86
int vtkTypeBool
Definition: vtkABI.h:69