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=========================================================================*/
46#ifndef vtkDistancePolyDataFilter_h
47#define vtkDistancePolyDataFilter_h
48
49#include "vtkFiltersGeneralModule.h" // For export macro
51
52class VTKFILTERSGENERAL_EXPORT vtkDistancePolyDataFilter : public vtkPolyDataAlgorithm
53{
54public:
57 void PrintSelf(ostream& os, vtkIndent indent) override;
58
60
64 vtkSetMacro(SignedDistance, vtkTypeBool);
65 vtkGetMacro(SignedDistance, vtkTypeBool);
66 vtkBooleanMacro(SignedDistance, vtkTypeBool);
68
70
74 vtkSetMacro(NegateDistance, vtkTypeBool);
75 vtkGetMacro(NegateDistance, vtkTypeBool);
76 vtkBooleanMacro(NegateDistance, vtkTypeBool);
78
80
84 vtkSetMacro(ComputeSecondDistance, vtkTypeBool);
85 vtkGetMacro(ComputeSecondDistance, vtkTypeBool);
86 vtkBooleanMacro(ComputeSecondDistance, vtkTypeBool);
88
96
98
105 vtkSetMacro(ComputeCellCenterDistance, vtkTypeBool);
106 vtkGetMacro(ComputeCellCenterDistance, vtkTypeBool);
107 vtkBooleanMacro(ComputeCellCenterDistance, vtkTypeBool);
109
110protected:
113
116
117private:
119 void operator=(const vtkDistancePolyDataFilter&) = delete;
120
121 vtkTypeBool SignedDistance;
122 vtkTypeBool NegateDistance;
123 vtkTypeBool ComputeSecondDistance;
124 vtkTypeBool ComputeCellCenterDistance;
125};
126
127#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:43
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:95
int vtkTypeBool
Definition: vtkABI.h:69