VTK  9.3.0
vtkParametricSuperToroid.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
35#ifndef vtkParametricSuperToroid_h
36#define vtkParametricSuperToroid_h
37
38#include "vtkCommonComputationalGeometryModule.h" // For export macro
40
41VTK_ABI_NAMESPACE_BEGIN
42class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricSuperToroid : public vtkParametricFunction
43{
44public:
46 void PrintSelf(ostream& os, vtkIndent indent) override;
47
61
65 int GetDimension() override { return 2; }
66
68
72 vtkSetMacro(RingRadius, double);
73 vtkGetMacro(RingRadius, double);
75
77
81 vtkSetMacro(CrossSectionRadius, double);
82 vtkGetMacro(CrossSectionRadius, double);
84
86
89 vtkSetMacro(XRadius, double);
90 vtkGetMacro(XRadius, double);
92
94
97 vtkSetMacro(YRadius, double);
98 vtkGetMacro(YRadius, double);
100
102
105 vtkSetMacro(ZRadius, double);
106 vtkGetMacro(ZRadius, double);
108
110
113 vtkSetMacro(N1, double);
114 vtkGetMacro(N1, double);
116
118
121 vtkSetMacro(N2, double);
122 vtkGetMacro(N2, double);
124
133 void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
134
148 double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
149
150protected:
153
154 // Variables
157 double XRadius;
158 double YRadius;
159 double ZRadius;
160 double N1;
161 double N2;
162
163private:
165 void operator=(const vtkParametricSuperToroid&) = delete;
166};
167
168VTK_ABI_NAMESPACE_END
169#endif
a simple class to control print indentation
Definition vtkIndent.h:29
abstract interface for parametric functions
static vtkParametricSuperToroid * New()
Construct a supertoroid with the following parameters: MinimumU = 0, MaximumU = 2*Pi,...
~vtkParametricSuperToroid() override
void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override
A supertoroid.
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.
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.