VTK  9.2.6
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=========================================================================*/
46
47#ifndef vtkParametricSuperToroid_h
48#define vtkParametricSuperToroid_h
49
50#include "vtkCommonComputationalGeometryModule.h" // For export macro
52
53class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricSuperToroid : public vtkParametricFunction
54{
55public:
57 void PrintSelf(ostream& os, vtkIndent indent) override;
58
72
76 int GetDimension() override { return 2; }
77
79
83 vtkSetMacro(RingRadius, double);
84 vtkGetMacro(RingRadius, double);
86
88
92 vtkSetMacro(CrossSectionRadius, double);
93 vtkGetMacro(CrossSectionRadius, double);
95
97
100 vtkSetMacro(XRadius, double);
101 vtkGetMacro(XRadius, double);
103
105
108 vtkSetMacro(YRadius, double);
109 vtkGetMacro(YRadius, double);
111
113
116 vtkSetMacro(ZRadius, double);
117 vtkGetMacro(ZRadius, double);
119
121
124 vtkSetMacro(N1, double);
125 vtkGetMacro(N1, double);
127
129
132 vtkSetMacro(N2, double);
133 vtkGetMacro(N2, double);
135
144 void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
145
159 double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
160
161protected:
164
165 // Variables
168 double XRadius;
169 double YRadius;
170 double ZRadius;
171 double N1;
172 double N2;
173
174private:
176 void operator=(const vtkParametricSuperToroid&) = delete;
177};
178
179#endif
a simple class to control print indentation
Definition vtkIndent.h:40
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.