VTK  9.3.0
vtkParametricEllipsoid.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
36 #ifndef vtkParametricEllipsoid_h
37 #define vtkParametricEllipsoid_h
38 
39 #include "vtkCommonComputationalGeometryModule.h" // For export macro
40 #include "vtkParametricFunction.h"
41 
42 VTK_ABI_NAMESPACE_BEGIN
43 class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricEllipsoid : public vtkParametricFunction
44 {
45 public:
47  void PrintSelf(ostream& os, vtkIndent indent) override;
48 
61 
65  int GetDimension() override { return 2; }
66 
68 
71  vtkSetMacro(XRadius, double);
72  vtkGetMacro(XRadius, double);
74 
76 
79  vtkSetMacro(YRadius, double);
80  vtkGetMacro(YRadius, double);
82 
84 
87  vtkSetMacro(ZRadius, double);
88  vtkGetMacro(ZRadius, double);
90 
99  void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
100 
114  double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
115 
116 protected:
119 
120  // Variables
121  double XRadius;
122  double YRadius;
123  double ZRadius;
124  double N1;
125  double N2;
126 
127 private:
129  void operator=(const vtkParametricEllipsoid&) = delete;
130 };
131 
132 VTK_ABI_NAMESPACE_END
133 #endif
a simple class to control print indentation
Definition: vtkIndent.h:38
Generate an ellipsoid.
int GetDimension() override
Return the parametric dimension of the class.
~vtkParametricEllipsoid() override
void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override
An ellipsoid.
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.
static vtkParametricEllipsoid * New()
Construct an ellipsoid with the following parameters: MinimumU = 0, MaximumU = 2*Pi,...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract interface for parametric functions