VTK  9.3.1
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 
28 VTK_ABI_NAMESPACE_BEGIN
29 class VTKCOMMONDATAMODEL_EXPORT vtkCone : public vtkImplicitFunction
30 {
31 public:
35  static vtkCone* New();
36 
37  vtkTypeMacro(vtkCone, vtkImplicitFunction);
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 
61 protected:
62  vtkCone();
63  ~vtkCone() override = default;
64 
65  double Angle;
66 
67 private:
68  vtkCone(const vtkCone&) = delete;
69  void operator=(const vtkCone&) = delete;
70 };
71 
72 VTK_ABI_NAMESPACE_END
73 #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 a cone
Definition: vtkCone.h:29
virtual void EvaluateGradient(double x[3], double g[3])=0
Evaluate function gradient at position x-y-z and pass back vector.
double Angle
Definition: vtkCone.h:65
a simple class to control print indentation
Definition: vtkIndent.h:28
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.