VTK  9.3.20240419
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
56 #ifndef vtkParametricEllipsoid_h
57 #define vtkParametricEllipsoid_h
58 
59 #include "vtkCommonComputationalGeometryModule.h" // For export macro
60 #include "vtkParametricFunction.h"
61 
62 VTK_ABI_NAMESPACE_BEGIN
63 class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricEllipsoid : public vtkParametricFunction
64 {
65 public:
67  void PrintSelf(ostream& os, vtkIndent indent) override;
68 
81 
85  int GetDimension() override { return 2; }
86 
88 
91  vtkSetMacro(XRadius, double);
92  vtkGetMacro(XRadius, double);
94 
96 
99  vtkSetMacro(YRadius, double);
100  vtkGetMacro(YRadius, double);
102 
104 
107  vtkSetMacro(ZRadius, double);
108  vtkGetMacro(ZRadius, double);
110 
119  void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
120 
134  double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
135 
136 protected:
139 
140  // Variables
141  double XRadius;
142  double YRadius;
143  double ZRadius;
144  double N1;
145  double N2;
146 
147 private:
149  void operator=(const vtkParametricEllipsoid&) = delete;
150 };
151 
152 VTK_ABI_NAMESPACE_END
153 #endif
a simple class to control print indentation
Definition: vtkIndent.h:108
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