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 =========================================================================*/
31 #ifndef vtkImplicitHalo_h
32 #define vtkImplicitHalo_h
33 
34 #include "vtkCommonDataModelModule.h" // For export macro
35 #include "vtkImplicitFunction.h"
36 
38 {
39 public:
41  static vtkImplicitHalo *New();
42 
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
47 
48  virtual double EvaluateFunction(double x[3]);
49  virtual double EvaluateFunction(double x, double y, double z)
50  {
51  return this->vtkImplicitFunction::EvaluateFunction(x, y, z);
52  }
54 
56  void EvaluateGradient(double x[3], double g[3]);
57 
59 
60  vtkSetMacro(Radius,double);
61  vtkGetMacro(Radius,double);
63 
65 
66  vtkSetVector3Macro(Center,double);
67  vtkGetVector3Macro(Center,double);
69 
71 
72  vtkSetMacro(FadeOut,double);
73  vtkGetMacro(FadeOut,double);
75 
76 protected:
78  virtual ~vtkImplicitHalo();
79 
80  double Radius;
81  double Center[3];
82  double FadeOut;
83 
84 private:
85  vtkImplicitHalo(const vtkImplicitHalo&); // Not implemented.
86  void operator=(const vtkImplicitHalo&); // Not implemented.
87 };
88 
89 #endif
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
virtual double EvaluateFunction(double x, double y, double z)
virtual void EvaluateGradient(double x[3], double g[3])=0
implicit function for an halo
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()
#define VTKCOMMONDATAMODEL_EXPORT