VTK
vtkImplicitHalo.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImplicitHalo.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 =========================================================================*/
32 #ifndef vtkImplicitHalo_h
33 #define vtkImplicitHalo_h
34 
35 #include "vtkCommonDataModelModule.h" // For export macro
36 #include "vtkImplicitFunction.h"
37 
38 class VTKCOMMONDATAMODEL_EXPORT vtkImplicitHalo : public vtkImplicitFunction
39 {
40 public:
44  static vtkImplicitHalo *New();
45 
47  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
48 
50 
54  double EvaluateFunction(double x[3]) VTK_OVERRIDE;
56 
60  void EvaluateGradient(double x[3], double g[3]) VTK_OVERRIDE;
61 
63 
66  vtkSetMacro(Radius,double);
67  vtkGetMacro(Radius,double);
69 
71 
74  vtkSetVector3Macro(Center,double);
75  vtkGetVector3Macro(Center,double);
77 
79 
82  vtkSetMacro(FadeOut,double);
83  vtkGetMacro(FadeOut,double);
85 
86 protected:
88  ~vtkImplicitHalo() VTK_OVERRIDE;
89 
90  double Radius;
91  double Center[3];
92  double FadeOut;
93 
94 private:
95  vtkImplicitHalo(const vtkImplicitHalo&) VTK_DELETE_FUNCTION;
96  void operator=(const vtkImplicitHalo&) VTK_DELETE_FUNCTION;
97 };
98 
99 #endif
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
Evaluate function at position x-y-z and return value.
virtual void EvaluateGradient(double x[3], double g[3])=0
Evaluate function gradient at position x-y-z and pass back vector.
implicit function for an halo
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.