VTK  9.0.20210624
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
41 #include "vtkPolyDataAlgorithm.h"
42 
43 class VTKFILTERSGENERAL_EXPORT vtkDistancePolyDataFilter : public vtkPolyDataAlgorithm
44 {
45 public:
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 
101 protected:
104 
107 
108 private:
110  void operator=(const vtkDistancePolyDataFilter&) = delete;
111 
112  vtkTypeBool SignedDistance;
113  vtkTypeBool NegateDistance;
114  vtkTypeBool ComputeSecondDistance;
115  vtkTypeBool ComputeCellCenterDistance;
116 };
117 
118 #endif
vtkDistancePolyDataFilter::GetPolyDataDistance
void GetPolyDataDistance(vtkPolyData *, vtkPolyData *)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:36
vtkDistancePolyDataFilter::New
static vtkDistancePolyDataFilter * New()
vtkDistancePolyDataFilter::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkDistancePolyDataFilter
Computes the signed distance from one vtkPolyData to another.
Definition: vtkDistancePolyDataFilter.h:44
vtkDistancePolyDataFilter::~vtkDistancePolyDataFilter
~vtkDistancePolyDataFilter() override
vtkPolyDataAlgorithm.h
vtkDistancePolyDataFilter::vtkDistancePolyDataFilter
vtkDistancePolyDataFilter()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkDistancePolyDataFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:74
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkDistancePolyDataFilter::GetSecondDistanceOutput
vtkPolyData * GetSecondDistanceOutput()
Get the second output, which is a copy of the second input with an additional distance scalar field.
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:42