VTK  9.2.6
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 =========================================================================*/
49 #ifndef vtkDistancePolyDataFilter_h
50 #define vtkDistancePolyDataFilter_h
51 
52 #include "vtkFiltersGeneralModule.h" // For export macro
53 #include "vtkPolyDataAlgorithm.h"
54 
55 class VTKFILTERSGENERAL_EXPORT vtkDistancePolyDataFilter : public vtkPolyDataAlgorithm
56 {
57 public:
60  void PrintSelf(ostream& os, vtkIndent indent) override;
61 
63 
67  vtkSetMacro(SignedDistance, vtkTypeBool);
68  vtkGetMacro(SignedDistance, vtkTypeBool);
69  vtkBooleanMacro(SignedDistance, vtkTypeBool);
71 
73 
77  vtkSetMacro(NegateDistance, vtkTypeBool);
78  vtkGetMacro(NegateDistance, vtkTypeBool);
79  vtkBooleanMacro(NegateDistance, vtkTypeBool);
81 
83 
87  vtkSetMacro(ComputeSecondDistance, vtkTypeBool);
88  vtkGetMacro(ComputeSecondDistance, vtkTypeBool);
89  vtkBooleanMacro(ComputeSecondDistance, vtkTypeBool);
91 
99 
101 
108  vtkSetMacro(ComputeCellCenterDistance, vtkTypeBool);
109  vtkGetMacro(ComputeCellCenterDistance, vtkTypeBool);
110  vtkBooleanMacro(ComputeCellCenterDistance, vtkTypeBool);
112 
113 protected:
116 
119 
120 private:
122  void operator=(const vtkDistancePolyDataFilter&) = delete;
123 
124  vtkTypeBool SignedDistance;
125  vtkTypeBool NegateDistance;
126  vtkTypeBool ComputeSecondDistance;
127  vtkTypeBool ComputeCellCenterDistance;
128 };
129 
130 #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()
vtkPolyData * GetSecondDistanceOutput()
Get the second output, which is a copy of the second input with an additional distance scalar field.
void GetPolyDataDistance(vtkPolyData *, vtkPolyData *)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkDistancePolyDataFilter() override
a simple class to control print indentation
Definition: vtkIndent.h:49
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:100
int vtkTypeBool
Definition: vtkABI.h:69