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) VTK_OVERRIDE;
52 
54 
58  vtkSetMacro(SignedDistance,int);
59  vtkGetMacro(SignedDistance,int);
60  vtkBooleanMacro(SignedDistance,int);
62 
64 
68  vtkSetMacro(NegateDistance,int);
69  vtkGetMacro(NegateDistance,int);
70  vtkBooleanMacro(NegateDistance,int);
72 
74 
78  vtkSetMacro(ComputeSecondDistance,int);
79  vtkGetMacro(ComputeSecondDistance,int);
80  vtkBooleanMacro(ComputeSecondDistance,int);
82 
89  vtkPolyData* GetSecondDistanceOutput();
90 
91 protected:
93  ~vtkDistancePolyDataFilter() VTK_OVERRIDE;
94 
95  int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) VTK_OVERRIDE;
96  void GetPolyDataDistance(vtkPolyData*, vtkPolyData*);
97 
98 private:
99  vtkDistancePolyDataFilter(const vtkDistancePolyDataFilter&) VTK_DELETE_FUNCTION;
100  void operator=(const vtkDistancePolyDataFilter&) VTK_DELETE_FUNCTION;
101 
102  int SignedDistance;
103  int NegateDistance;
104  int ComputeSecondDistance;
105 };
106 
107 #endif
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
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:46
vtkPolyDataAlgorithm.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44