VTK  9.7.20260918
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
63
64#ifndef vtkParametricSuperToroid_h
65#define vtkParametricSuperToroid_h
66
67#include "vtkCommonComputationalGeometryModule.h" // For export macro
69#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
70
71VTK_ABI_NAMESPACE_BEGIN
72class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT VTK_MARSHALAUTO vtkParametricSuperToroid
74{
75public:
77 void PrintSelf(ostream& os, vtkIndent indent) override;
78
92
96 int GetDimension() override { return 2; }
97
99
103 vtkSetMacro(RingRadius, double);
104 vtkGetMacro(RingRadius, double);
106
108
112 vtkSetMacro(CrossSectionRadius, double);
113 vtkGetMacro(CrossSectionRadius, double);
115
117
120 vtkSetMacro(XRadius, double);
121 vtkGetMacro(XRadius, double);
123
125
128 vtkSetMacro(YRadius, double);
129 vtkGetMacro(YRadius, double);
131
133
136 vtkSetMacro(ZRadius, double);
137 vtkGetMacro(ZRadius, double);
139
141
144 vtkSetMacro(N1, double);
145 vtkGetMacro(N1, double);
147
149
152 vtkSetMacro(N2, double);
153 vtkGetMacro(N2, double);
155
164 void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
165
179 double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
180
181protected:
184
185 // Variables
188 double XRadius;
189 double YRadius;
190 double ZRadius;
191 double N1;
192 double N2;
193
194private:
196 void operator=(const vtkParametricSuperToroid&) = delete;
197};
198
199VTK_ABI_NAMESPACE_END
200#endif
a simple class to control print indentation
Definition vtkIndent.h:108
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.
#define VTK_MARSHALAUTO