VTK  9.3.1
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
27 #ifndef vtkParametricEllipsoid_h
28 #define vtkParametricEllipsoid_h
29 
30 #include "vtkCommonComputationalGeometryModule.h" // For export macro
31 #include "vtkParametricFunction.h"
32 
33 VTK_ABI_NAMESPACE_BEGIN
34 class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricEllipsoid : public vtkParametricFunction
35 {
36 public:
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
51  static vtkParametricEllipsoid* New();
52 
56  int GetDimension() override { return 2; }
57 
59 
62  vtkSetMacro(XRadius, double);
63  vtkGetMacro(XRadius, double);
65 
67 
70  vtkSetMacro(YRadius, double);
71  vtkGetMacro(YRadius, double);
73 
75 
78  vtkSetMacro(ZRadius, double);
79  vtkGetMacro(ZRadius, double);
81 
90  void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
91 
105  double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
106 
107 protected:
109  ~vtkParametricEllipsoid() override;
110 
111  // Variables
112  double XRadius;
113  double YRadius;
114  double ZRadius;
115  double N1;
116  double N2;
117 
118 private:
120  void operator=(const vtkParametricEllipsoid&) = delete;
121 };
122 
123 VTK_ABI_NAMESPACE_END
124 #endif
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.
Generate an ellipsoid.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract interface for parametric functions
int GetDimension() override
Return the parametric dimension of the class.
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...