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=========================================================================*/
56#ifndef vtkDistancePolyDataFilter_h
57#define vtkDistancePolyDataFilter_h
58
59#include "vtkFiltersGeneralModule.h" // For export macro
61
62class VTKFILTERSGENERAL_EXPORT vtkDistancePolyDataFilter : public vtkPolyDataAlgorithm
63{
64public:
67 void PrintSelf(ostream& os, vtkIndent indent) override;
68
70
74 vtkSetMacro(SignedDistance, vtkTypeBool);
75 vtkGetMacro(SignedDistance, vtkTypeBool);
76 vtkBooleanMacro(SignedDistance, vtkTypeBool);
78
80
84 vtkSetMacro(NegateDistance, vtkTypeBool);
85 vtkGetMacro(NegateDistance, vtkTypeBool);
86 vtkBooleanMacro(NegateDistance, vtkTypeBool);
88
90
94 vtkSetMacro(ComputeSecondDistance, vtkTypeBool);
95 vtkGetMacro(ComputeSecondDistance, vtkTypeBool);
96 vtkBooleanMacro(ComputeSecondDistance, vtkTypeBool);
98
106
108
115 vtkSetMacro(ComputeCellCenterDistance, vtkTypeBool);
116 vtkGetMacro(ComputeCellCenterDistance, vtkTypeBool);
117 vtkBooleanMacro(ComputeCellCenterDistance, vtkTypeBool);
119
120protected:
123
126
127private:
129 void operator=(const vtkDistancePolyDataFilter&) = delete;
130
131 vtkTypeBool SignedDistance;
132 vtkTypeBool NegateDistance;
133 vtkTypeBool ComputeSecondDistance;
134 vtkTypeBool ComputeCellCenterDistance;
135};
136
137#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:113
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:195
int vtkTypeBool
Definition: vtkABI.h:69