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 
53  double EvaluateFunction(double x[3]) VTK_OVERRIDE;
54  virtual double EvaluateFunction(double x, double y, double z)
55  {
56  return this->vtkImplicitFunction::EvaluateFunction(x, y, z);
57  }
59 
63  void EvaluateGradient(double x[3], double g[3]) VTK_OVERRIDE;
64 
66 
69  vtkSetMacro(Radius,double);
70  vtkGetMacro(Radius,double);
72 
74 
77  vtkSetVector3Macro(Center,double);
78  vtkGetVector3Macro(Center,double);
80 
82 
85  vtkSetMacro(FadeOut,double);
86  vtkGetMacro(FadeOut,double);
88 
89 protected:
91  ~vtkImplicitHalo() VTK_OVERRIDE;
92 
93  double Radius;
94  double Center[3];
95  double FadeOut;
96 
97 private:
98  vtkImplicitHalo(const vtkImplicitHalo&) VTK_DELETE_FUNCTION;
99  void operator=(const vtkImplicitHalo&) VTK_DELETE_FUNCTION;
100 };
101 
102 #endif
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
Evaluate function at position x-y-z and return value.
virtual double EvaluateFunction(double x, double y, double z)
Evaluate the equation.
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.