VTK  9.1.0
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=========================================================================*/
65#ifndef vtkParametricEllipsoid_h
66#define vtkParametricEllipsoid_h
67
68#include "vtkCommonComputationalGeometryModule.h" // For export macro
70
71class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricEllipsoid : public vtkParametricFunction
72{
73public:
75 void PrintSelf(ostream& os, vtkIndent indent) override;
76
89
93 int GetDimension() override { return 2; }
94
96
99 vtkSetMacro(XRadius, double);
100 vtkGetMacro(XRadius, double);
102
104
107 vtkSetMacro(YRadius, double);
108 vtkGetMacro(YRadius, double);
110
112
115 vtkSetMacro(ZRadius, double);
116 vtkGetMacro(ZRadius, double);
118
127 void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
128
142 double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
143
144protected:
147
148 // Variables
149 double XRadius;
150 double YRadius;
151 double ZRadius;
152 double N1;
153 double N2;
154
155private:
157 void operator=(const vtkParametricEllipsoid&) = delete;
158};
159
160#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
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