VTK  9.3.1
vtkParametricConicSpiral.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
23 #ifndef vtkParametricConicSpiral_h
24 #define vtkParametricConicSpiral_h
25 
26 #include "vtkCommonComputationalGeometryModule.h" // For export macro
27 #include "vtkParametricFunction.h"
28 
29 VTK_ABI_NAMESPACE_BEGIN
30 class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricConicSpiral : public vtkParametricFunction
31 {
32 public:
34  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
46  static vtkParametricConicSpiral* New();
47 
51  int GetDimension() override { return 2; }
52 
54 
58  vtkSetMacro(A, double);
59  vtkGetMacro(A, double);
61 
63 
68  vtkSetMacro(B, double);
69  vtkGetMacro(B, double);
71 
73 
78  vtkSetMacro(C, double);
79  vtkGetMacro(C, double);
81 
83 
88  vtkSetMacro(N, double);
89  vtkGetMacro(N, double);
91 
100  void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
101 
115  double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
116 
117 protected:
119  ~vtkParametricConicSpiral() override;
120 
121  // Variables
122  double A;
123  double B;
124  double C;
125  double N;
126 
127 private:
129  void operator=(const vtkParametricConicSpiral&) = delete;
130 };
131 
132 VTK_ABI_NAMESPACE_END
133 #endif
Generate conic spiral surfaces that resemble sea-shells.
virtual double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9])=0
Calculate a user defined scalar using one or all of uvw, Pt, Duvw.
virtual void Evaluate(double uvw[3], double Pt[3], double Duvw[9])=0
Performs the mapping $f(uvw)->(Pt,Duvw)$f.
int GetDimension() override
Return the parametric dimension of the class.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract interface for parametric functions
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...