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
31#ifndef vtkParametricSuperEllipsoid_h
32#define vtkParametricSuperEllipsoid_h
33
34#include "vtkCommonComputationalGeometryModule.h" // For export macro
36
37VTK_ABI_NAMESPACE_BEGIN
38class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricSuperEllipsoid
40{
41public:
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
57
61 int GetDimension() override { return 2; }
62
64
67 vtkSetMacro(XRadius, double);
68 vtkGetMacro(XRadius, double);
70
72
75 vtkSetMacro(YRadius, double);
76 vtkGetMacro(YRadius, double);
78
80
83 vtkSetMacro(ZRadius, double);
84 vtkGetMacro(ZRadius, double);
86
88
91 vtkSetMacro(N1, double);
92 vtkGetMacro(N1, double);
94
96
99 vtkSetMacro(N2, double);
100 vtkGetMacro(N2, double);
102
111 void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
112
126 double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
127
128protected:
131
132 // Variables
133 double XRadius;
134 double YRadius;
135 double ZRadius;
136 double N1;
137 double N2;
138
139private:
141 void operator=(const vtkParametricSuperEllipsoid&) = delete;
142};
143
144VTK_ABI_NAMESPACE_END
145#endif
a simple class to control print indentation
Definition vtkIndent.h:29
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