VTK  9.3.20240423
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
70#ifndef vtkParametricSuperEllipsoid_h
71#define vtkParametricSuperEllipsoid_h
72
73#include "vtkCommonComputationalGeometryModule.h" // For export macro
75
76VTK_ABI_NAMESPACE_BEGIN
77class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricSuperEllipsoid
79{
80public:
82 void PrintSelf(ostream& os, vtkIndent indent) override;
83
96
100 int GetDimension() override { return 2; }
101
103
106 vtkSetMacro(XRadius, double);
107 vtkGetMacro(XRadius, double);
109
111
114 vtkSetMacro(YRadius, double);
115 vtkGetMacro(YRadius, double);
117
119
122 vtkSetMacro(ZRadius, double);
123 vtkGetMacro(ZRadius, double);
125
127
130 vtkSetMacro(N1, double);
131 vtkGetMacro(N1, double);
133
135
138 vtkSetMacro(N2, double);
139 vtkGetMacro(N2, double);
141
150 void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
151
165 double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
166
167protected:
170
171 // Variables
172 double XRadius;
173 double YRadius;
174 double ZRadius;
175 double N1;
176 double N2;
177
178private:
180 void operator=(const vtkParametricSuperEllipsoid&) = delete;
181};
182
183VTK_ABI_NAMESPACE_END
184#endif
a simple class to control print indentation
Definition vtkIndent.h:108
abstract interface for parametric functions
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