VTK  9.1.0
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) override;
48
50
54 double EvaluateFunction(double x[3]) override;
56
60 void EvaluateGradient(double x[3], double g[3]) 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
86protected:
88 ~vtkImplicitHalo() override;
89
90 double Radius;
91 double Center[3];
92 double FadeOut;
93
94private:
95 vtkImplicitHalo(const vtkImplicitHalo&) = delete;
96 void operator=(const vtkImplicitHalo&) = delete;
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.
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:113