VTK  9.3.0
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
40#ifndef vtkParametricSuperEllipsoid_h
41#define vtkParametricSuperEllipsoid_h
42
43#include "vtkCommonComputationalGeometryModule.h" // For export macro
45
46VTK_ABI_NAMESPACE_BEGIN
47class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricSuperEllipsoid
49{
50public:
52 void PrintSelf(ostream& os, vtkIndent indent) override;
53
66
70 int GetDimension() override { return 2; }
71
73
76 vtkSetMacro(XRadius, double);
77 vtkGetMacro(XRadius, double);
79
81
84 vtkSetMacro(YRadius, double);
85 vtkGetMacro(YRadius, double);
87
89
92 vtkSetMacro(ZRadius, double);
93 vtkGetMacro(ZRadius, double);
95
97
100 vtkSetMacro(N1, double);
101 vtkGetMacro(N1, double);
103
105
108 vtkSetMacro(N2, double);
109 vtkGetMacro(N2, double);
111
120 void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
121
135 double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
136
137protected:
140
141 // Variables
142 double XRadius;
143 double YRadius;
144 double ZRadius;
145 double N1;
146 double N2;
147
148private:
150 void operator=(const vtkParametricSuperEllipsoid&) = delete;
151};
152
153VTK_ABI_NAMESPACE_END
154#endif
a simple class to control print indentation
Definition vtkIndent.h:38
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