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
44 #ifndef vtkParametricSuperToroid_h
45 #define vtkParametricSuperToroid_h
46 
47 #include "vtkCommonComputationalGeometryModule.h" // For export macro
48 #include "vtkParametricFunction.h"
49 
50 VTK_ABI_NAMESPACE_BEGIN
51 class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricSuperToroid : public vtkParametricFunction
52 {
53 public:
55  void PrintSelf(ostream& os, vtkIndent indent) override;
56 
70 
74  int GetDimension() override { return 2; }
75 
77 
81  vtkSetMacro(RingRadius, double);
82  vtkGetMacro(RingRadius, double);
84 
86 
90  vtkSetMacro(CrossSectionRadius, double);
91  vtkGetMacro(CrossSectionRadius, double);
93 
95 
98  vtkSetMacro(XRadius, double);
99  vtkGetMacro(XRadius, double);
101 
103 
106  vtkSetMacro(YRadius, double);
107  vtkGetMacro(YRadius, double);
109 
111 
114  vtkSetMacro(ZRadius, double);
115  vtkGetMacro(ZRadius, double);
117 
119 
122  vtkSetMacro(N1, double);
123  vtkGetMacro(N1, double);
125 
127 
130  vtkSetMacro(N2, double);
131  vtkGetMacro(N2, double);
133 
142  void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
143 
157  double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
158 
159 protected:
162 
163  // Variables
164  double RingRadius;
166  double XRadius;
167  double YRadius;
168  double ZRadius;
169  double N1;
170  double N2;
171 
172 private:
174  void operator=(const vtkParametricSuperToroid&) = delete;
175 };
176 
177 VTK_ABI_NAMESPACE_END
178 #endif
a simple class to control print indentation
Definition: vtkIndent.h:38
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.