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 =========================================================================*/
40 #ifndef vtkDistancePolyDataFilter_h
41 #define vtkDistancePolyDataFilter_h
42 
43 #include "vtkFiltersGeneralModule.h" // For export macro
44 #include "vtkPolyDataAlgorithm.h"
45 
46 class VTKFILTERSGENERAL_EXPORT vtkDistancePolyDataFilter : public vtkPolyDataAlgorithm
47 {
48 public:
51  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
54 
58  vtkSetMacro(SignedDistance,vtkTypeBool);
59  vtkGetMacro(SignedDistance,vtkTypeBool);
60  vtkBooleanMacro(SignedDistance,vtkTypeBool);
62 
64 
68  vtkSetMacro(NegateDistance,vtkTypeBool);
69  vtkGetMacro(NegateDistance,vtkTypeBool);
70  vtkBooleanMacro(NegateDistance,vtkTypeBool);
72 
74 
78  vtkSetMacro(ComputeSecondDistance,vtkTypeBool);
79  vtkGetMacro(ComputeSecondDistance,vtkTypeBool);
80  vtkBooleanMacro(ComputeSecondDistance,vtkTypeBool);
82 
90 
91 protected:
94 
97 
98 private:
100  void operator=(const vtkDistancePolyDataFilter&) = delete;
101 
102  vtkTypeBool SignedDistance;
103  vtkTypeBool NegateDistance;
104  vtkTypeBool ComputeSecondDistance;
105 };
106 
107 #endif
vtkDistancePolyDataFilter::GetPolyDataDistance
void GetPolyDataDistance(vtkPolyData *, vtkPolyData *)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkDistancePolyDataFilter::New
static vtkDistancePolyDataFilter * New()
vtkDistancePolyDataFilter::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkDistancePolyDataFilter
Definition: vtkDistancePolyDataFilter.h:47
vtkDistancePolyDataFilter::~vtkDistancePolyDataFilter
~vtkDistancePolyDataFilter() override
vtkPolyDataAlgorithm.h
vtkDistancePolyDataFilter::vtkDistancePolyDataFilter
vtkDistancePolyDataFilter()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
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:87
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:45