VTK  9.7.20260929
vtkParametricSuperEllipsoid.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
69
70#ifndef vtkParametricSuperEllipsoid_h
71#define vtkParametricSuperEllipsoid_h
72
73#include "vtkCommonComputationalGeometryModule.h" // For export macro
75#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
76
77VTK_ABI_NAMESPACE_BEGIN
78class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT VTK_MARSHALAUTO vtkParametricSuperEllipsoid
80{
81public:
83 void PrintSelf(ostream& os, vtkIndent indent) override;
84
97
101 int GetDimension() override { return 2; }
102
104
107 vtkSetMacro(XRadius, double);
108 vtkGetMacro(XRadius, double);
110
112
115 vtkSetMacro(YRadius, double);
116 vtkGetMacro(YRadius, double);
118
120
123 vtkSetMacro(ZRadius, double);
124 vtkGetMacro(ZRadius, double);
126
128
131 vtkSetMacro(N1, double);
132 vtkGetMacro(N1, double);
134
136
139 vtkSetMacro(N2, double);
140 vtkGetMacro(N2, double);
142
151 void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
152
166 double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
167
168protected:
171
172 // Variables
173 double XRadius;
174 double YRadius;
175 double ZRadius;
176 double N1;
177 double N2;
178
179private:
181 void operator=(const vtkParametricSuperEllipsoid&) = delete;
182};
183
184VTK_ABI_NAMESPACE_END
185#endif
a simple class to control print indentation
Definition vtkIndent.h:108
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkParametricSuperEllipsoid * New()
Construct a superellipsoid with the following parameters: MinimumU = -Pi, MaximumU = Pi,...
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.
void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override
A superellipsoid.
int GetDimension() override
Return the parametric dimension of the class.
~vtkParametricSuperEllipsoid() override
#define VTK_MARSHALAUTO