VTK
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 
86  vtkPolyData* GetSecondDistanceOutput();
87 
88 protected:
90  ~vtkDistancePolyDataFilter() override;
91 
93  void GetPolyDataDistance(vtkPolyData*, vtkPolyData*);
94 
95 private:
97  void operator=(const vtkDistancePolyDataFilter&) = delete;
98 
99  vtkTypeBool SignedDistance;
100  vtkTypeBool NegateDistance;
101  vtkTypeBool ComputeSecondDistance;
102 };
103 
104 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:69
Computes the signed distance from one vtkPolyData to another.
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.