VTK  9.3.0
vtkCone.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
31#ifndef vtkCone_h
32#define vtkCone_h
33
34#include "vtkCommonDataModelModule.h" // For export macro
35#include "vtkImplicitFunction.h"
36
37VTK_ABI_NAMESPACE_BEGIN
38class VTKCOMMONDATAMODEL_EXPORT vtkCone : public vtkImplicitFunction
39{
40public:
44 static vtkCone* New();
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 vtkSetClampMacro(Angle, double, 0.0, 89.0);
67 vtkGetMacro(Angle, double);
69
70protected:
72 ~vtkCone() override = default;
73
74 double Angle;
75
76private:
77 vtkCone(const vtkCone&) = delete;
78 void operator=(const vtkCone&) = delete;
79};
80
81VTK_ABI_NAMESPACE_END
82#endif
implicit function for a cone
Definition vtkCone.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkCone * New()
Construct cone with angle of 45 degrees.
double Angle
Definition vtkCone.h:74
void EvaluateGradient(double x[3], double g[3]) override
Evaluate cone normal.
~vtkCone() override=default
double EvaluateFunction(double x[3]) override
Evaluate cone equation.
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
Evaluate function at position x-y-z and return value.
a simple class to control print indentation
Definition vtkIndent.h:38