VTK  9.0.20210224
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 
89 
96  vtkSetMacro(ComputeCellCenterDistance, vtkTypeBool);
97  vtkGetMacro(ComputeCellCenterDistance, vtkTypeBool);
98  vtkBooleanMacro(ComputeCellCenterDistance, vtkTypeBool);
100 
101 protected:
103  ~vtkDistancePolyDataFilter() override;
104 
106  void GetPolyDataDistance(vtkPolyData*, vtkPolyData*);
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
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDistancePolyDataFilter
Definition: vtkDistancePolyDataFilter.h:43
vtkPolyDataAlgorithm.h
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:41