VTK  9.3.1
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
35 #include "vtkParametricFunction.h"
36 
37 VTK_ABI_NAMESPACE_BEGIN
38 class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricSuperEllipsoid
39  : public vtkParametricFunction
40 {
41 public:
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 
128 protected:
130  ~vtkParametricSuperEllipsoid() override;
131 
132  // Variables
133  double XRadius;
134  double YRadius;
135  double ZRadius;
136  double N1;
137  double N2;
138 
139 private:
141  void operator=(const vtkParametricSuperEllipsoid&) = delete;
142 };
143 
144 VTK_ABI_NAMESPACE_END
145 #endif
int GetDimension() override
Return the parametric dimension of the class.
virtual double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9])=0
Calculate a user defined scalar using one or all of uvw, Pt, Duvw.
virtual void Evaluate(double uvw[3], double Pt[3], double Duvw[9])=0
Performs the mapping $f(uvw)->(Pt,Duvw)$f.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract interface for parametric functions
a simple class to control print indentation
Definition: vtkIndent.h:28
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...