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
22#ifndef vtkCone_h
23#define vtkCone_h
24
25#include "vtkCommonDataModelModule.h" // For export macro
26#include "vtkImplicitFunction.h"
27
28VTK_ABI_NAMESPACE_BEGIN
29class VTKCOMMONDATAMODEL_EXPORT vtkCone : public vtkImplicitFunction
30{
31public:
35 static vtkCone* New();
36
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39
41
45 double EvaluateFunction(double x[3]) override;
47
51 void EvaluateGradient(double x[3], double g[3]) override;
52
54
57 vtkSetClampMacro(Angle, double, 0.0, 89.0);
58 vtkGetMacro(Angle, double);
60
61protected:
63 ~vtkCone() override = default;
64
65 double Angle;
66
67private:
68 vtkCone(const vtkCone&) = delete;
69 void operator=(const vtkCone&) = delete;
70};
71
72VTK_ABI_NAMESPACE_END
73#endif
implicit function for a cone
Definition vtkCone.h:30
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:65
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:29