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
27#ifndef vtkParametricEllipsoid_h
28#define vtkParametricEllipsoid_h
29
30#include "vtkCommonComputationalGeometryModule.h" // For export macro
32
33VTK_ABI_NAMESPACE_BEGIN
34class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricEllipsoid : public vtkParametricFunction
35{
36public:
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39
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
107protected:
110
111 // Variables
112 double XRadius;
113 double YRadius;
114 double ZRadius;
115 double N1;
116 double N2;
117
118private:
120 void operator=(const vtkParametricEllipsoid&) = delete;
121};
122
123VTK_ABI_NAMESPACE_END
124#endif
a simple class to control print indentation
Definition vtkIndent.h:29
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