VTK  9.4.20250114
vtkImplicitHalo.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
20#ifndef vtkImplicitHalo_h
21#define vtkImplicitHalo_h
22
23#include "vtkCommonDataModelModule.h" // For export macro
24#include "vtkImplicitFunction.h"
25
26VTK_ABI_NAMESPACE_BEGIN
27class VTKCOMMONDATAMODEL_EXPORT vtkImplicitHalo : public vtkImplicitFunction
28{
29public:
34
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
39
43 double EvaluateFunction(double x[3]) override;
45
49 void EvaluateGradient(double x[3], double g[3]) override;
50
52
55 vtkSetMacro(Radius, double);
56 vtkGetMacro(Radius, double);
58
60
63 vtkSetVector3Macro(Center, double);
64 vtkGetVector3Macro(Center, double);
66
68
71 vtkSetMacro(FadeOut, double);
72 vtkGetMacro(FadeOut, double);
74
75protected:
77 ~vtkImplicitHalo() override;
78
79 double Radius;
80 double Center[3];
81 double FadeOut;
82
83private:
84 vtkImplicitHalo(const vtkImplicitHalo&) = delete;
85 void operator=(const vtkImplicitHalo&) = delete;
86};
87
88VTK_ABI_NAMESPACE_END
89#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
~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:108