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
39 #include "vtkParametricFunction.h"
40 
41 VTK_ABI_NAMESPACE_BEGIN
42 class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricSuperToroid : public vtkParametricFunction
43 {
44 public:
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 
150 protected:
153 
154  // Variables
155  double RingRadius;
157  double XRadius;
158  double YRadius;
159  double ZRadius;
160  double N1;
161  double N2;
162 
163 private:
165  void operator=(const vtkParametricSuperToroid&) = delete;
166 };
167 
168 VTK_ABI_NAMESPACE_END
169 #endif
a simple class to control print indentation
Definition: vtkIndent.h:29
abstract interface for parametric functions
~vtkParametricSuperToroid() override
static vtkParametricSuperToroid * New()
Construct a supertoroid with the following parameters: MinimumU = 0, MaximumU = 2*Pi,...
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.