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=========================================================================*/
43
44#ifndef vtkParametricSuperToroid_h
45#define vtkParametricSuperToroid_h
46
47#include "vtkCommonComputationalGeometryModule.h" // For export macro
49
50class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricSuperToroid : public vtkParametricFunction
51{
52public:
54 void PrintSelf(ostream& os, vtkIndent indent) override;
55
69
73 int GetDimension() override { return 2; }
74
76
80 vtkSetMacro(RingRadius, double);
81 vtkGetMacro(RingRadius, double);
83
85
89 vtkSetMacro(CrossSectionRadius, double);
90 vtkGetMacro(CrossSectionRadius, double);
92
94
97 vtkSetMacro(XRadius, double);
98 vtkGetMacro(XRadius, double);
100
102
105 vtkSetMacro(YRadius, double);
106 vtkGetMacro(YRadius, double);
108
110
113 vtkSetMacro(ZRadius, double);
114 vtkGetMacro(ZRadius, double);
116
118
121 vtkSetMacro(N1, double);
122 vtkGetMacro(N1, double);
124
126
129 vtkSetMacro(N2, double);
130 vtkGetMacro(N2, double);
132
141 void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
142
156 double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
157
158protected:
161
162 // Variables
165 double XRadius;
166 double YRadius;
167 double ZRadius;
168 double N1;
169 double N2;
170
171private:
173 void operator=(const vtkParametricSuperToroid&) = delete;
174};
175
176#endif
a simple class to control print indentation
Definition vtkIndent.h:34
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.