VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 =========================================================================*/
39 #ifndef __vtkDistancePolyDataFilter_h
40 #define __vtkDistancePolyDataFilter_h
41 
42 #include "vtkFiltersGeneralModule.h" // For export macro
43 #include "vtkPolyDataAlgorithm.h"
44 
45 class VTKFILTERSGENERAL_EXPORT vtkDistancePolyDataFilter : public vtkPolyDataAlgorithm {
46 public:
47  static vtkDistancePolyDataFilter *New();
48  vtkTypeMacro(vtkDistancePolyDataFilter, vtkPolyDataAlgorithm);
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
52 
54  vtkSetMacro(SignedDistance,int);
55  vtkGetMacro(SignedDistance,int);
56  vtkBooleanMacro(SignedDistance,int);
58 
60 
62  vtkSetMacro(NegateDistance,int);
63  vtkGetMacro(NegateDistance,int);
64  vtkBooleanMacro(NegateDistance,int);
66 
68 
70  vtkSetMacro(ComputeSecondDistance,int);
71  vtkGetMacro(ComputeSecondDistance,int);
72  vtkBooleanMacro(ComputeSecondDistance,int);
74 
77  vtkPolyData* GetSecondDistanceOutput();
78 
79 protected:
82 
83  int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
84  int FillInputPortInformation(int, vtkInformation*);
85 
86  void GetPolyDataDistance(vtkPolyData*, vtkPolyData*);
87 
88 private:
89  vtkDistancePolyDataFilter(const vtkDistancePolyDataFilter&); // Not implemented
90  void operator=(const vtkDistancePolyDataFilter&); // Not implemented
91 
92  int SignedDistance;
93  int NegateDistance;
94  int ComputeSecondDistance;
95 };
96 
97 #endif