VTK  9.3.0
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
28
29VTK_ABI_NAMESPACE_BEGIN
30class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricConicSpiral : public vtkParametricFunction
31{
32public:
34 void PrintSelf(ostream& os, vtkIndent indent) override;
35
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
117protected:
120
121 // Variables
122 double A;
123 double B;
124 double C;
125 double N;
126
127private:
129 void operator=(const vtkParametricConicSpiral&) = delete;
130};
131
132VTK_ABI_NAMESPACE_END
133#endif
a simple class to control print indentation
Definition vtkIndent.h:29
Generate conic spiral surfaces that resemble sea-shells.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkParametricConicSpiral() override
double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override
Calculate a user defined scalar using one or all of uvw, Pt, Duvw.
int GetDimension() override
Return the parametric dimension of the class.
static vtkParametricConicSpiral * New()
Construct a conic spiral surface with the following parameters: MinimumU = 0, MaximumU = 2Pi,...
void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override
A conic spiral surface.
abstract interface for parametric functions