VTK
vtkImplicitPolyDataDistance.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImplicitPolyDataDistance.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 =========================================================================*/
41 #ifndef vtkImplicitPolyDataDistance_h
42 #define vtkImplicitPolyDataDistance_h
43 
44 #include "vtkFiltersCoreModule.h" // For export macro
45 #include "vtkImplicitFunction.h"
46 
47 class vtkCellLocator;
48 class vtkPolyData;
49 
51 {
52 public:
55  void PrintSelf(ostream& os, vtkIndent indent);
56 
58  unsigned long GetMTime();
59 
61  double EvaluateFunction(double x[3]);
62 
64  void EvaluateGradient(double x[3], double g[3]);
65 
70  void SetInput(vtkPolyData *input);
71 
73 
74  vtkSetMacro(NoValue, double);
75  vtkGetMacro(NoValue, double);
77 
79 
81  vtkSetVector3Macro(NoGradient, double);
82  vtkGetVector3Macro(NoGradient, double);
84 
86 
87  vtkGetMacro(Tolerance, double);
88  vtkSetMacro(Tolerance, double);
90 
91 protected:
94 
95  double SharedEvaluate( double x[3], double n[3] );
96 
97 private:
98  vtkImplicitPolyDataDistance(const vtkImplicitPolyDataDistance&); // Not implemented.
99  void operator=(const vtkImplicitPolyDataDistance&); // Not implemented.
100 
101  double NoValue;
102  double NoGradient[3];
103  double Tolerance;
104 
105  vtkPolyData *Input;
106  vtkCellLocator *Locator;
107 
108 };
109 
110 #endif
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
#define VTKFILTERSCORE_EXPORT
unsigned long GetMTime()
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
virtual void EvaluateGradient(double x[3], double g[3])=0
octree-based spatial search object to quickly locate cells
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()