VTK  9.2.5
vtkParametricEllipsoid.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkParametricEllipsoid.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
68 #ifndef vtkParametricEllipsoid_h
69 #define vtkParametricEllipsoid_h
70 
71 #include "vtkCommonComputationalGeometryModule.h" // For export macro
72 #include "vtkParametricFunction.h"
73 
74 class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricEllipsoid : public vtkParametricFunction
75 {
76 public:
78  void PrintSelf(ostream& os, vtkIndent indent) override;
79 
92 
96  int GetDimension() override { return 2; }
97 
99 
102  vtkSetMacro(XRadius, double);
103  vtkGetMacro(XRadius, double);
105 
107 
110  vtkSetMacro(YRadius, double);
111  vtkGetMacro(YRadius, double);
113 
115 
118  vtkSetMacro(ZRadius, double);
119  vtkGetMacro(ZRadius, double);
121 
130  void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
131 
145  double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
146 
147 protected:
150 
151  // Variables
152  double XRadius;
153  double YRadius;
154  double ZRadius;
155  double N1;
156  double N2;
157 
158 private:
160  void operator=(const vtkParametricEllipsoid&) = delete;
161 };
162 
163 #endif
a simple class to control print indentation
Definition: vtkIndent.h:119
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