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
38class VTKCOMMONDATAMODEL_EXPORT vtkImplicitHalo : public vtkImplicitFunction
39{
40public:
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
89protected:
91 ~vtkImplicitHalo() VTK_OVERRIDE;
92
93 double Radius;
94 double Center[3];
95 double FadeOut;
96
97private:
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.
implicit function for an halo
virtual double EvaluateFunction(double x, double y, double z)
~vtkImplicitHalo() override
static vtkImplicitHalo * New()
Center=(0.0,0.0,0.0), Radius=1.0, FadeOut=0.01.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void EvaluateGradient(double x[3], double g[3]) override
Evaluate normal.
double EvaluateFunction(double x[3]) override
Evaluate the equation.
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.