VTK  9.1.0
vtkParametricSuperToroid.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkParametricSuperToroid.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
73 #ifndef vtkParametricSuperToroid_h
74 #define vtkParametricSuperToroid_h
75 
76 #include "vtkCommonComputationalGeometryModule.h" // For export macro
77 #include "vtkParametricFunction.h"
78 
79 class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricSuperToroid : public vtkParametricFunction
80 {
81 public:
83  void PrintSelf(ostream& os, vtkIndent indent) override;
84 
98 
102  int GetDimension() override { return 2; }
103 
105 
109  vtkSetMacro(RingRadius, double);
110  vtkGetMacro(RingRadius, double);
112 
114 
118  vtkSetMacro(CrossSectionRadius, double);
119  vtkGetMacro(CrossSectionRadius, double);
121 
123 
126  vtkSetMacro(XRadius, double);
127  vtkGetMacro(XRadius, double);
129 
131 
134  vtkSetMacro(YRadius, double);
135  vtkGetMacro(YRadius, double);
137 
139 
142  vtkSetMacro(ZRadius, double);
143  vtkGetMacro(ZRadius, double);
145 
147 
150  vtkSetMacro(N1, double);
151  vtkGetMacro(N1, double);
153 
155 
158  vtkSetMacro(N2, double);
159  vtkGetMacro(N2, double);
161 
170  void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
171 
185  double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
186 
187 protected:
190 
191  // Variables
192  double RingRadius;
194  double XRadius;
195  double YRadius;
196  double ZRadius;
197  double N1;
198  double N2;
199 
200 private:
202  void operator=(const vtkParametricSuperToroid&) = delete;
203 };
204 
205 #endif
a simple class to control print indentation
Definition: vtkIndent.h:113
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.