VTK  9.2.6
vtkParametricSuperEllipsoid.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkParametricSuperEllipsoid.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=========================================================================*/
52#ifndef vtkParametricSuperEllipsoid_h
53#define vtkParametricSuperEllipsoid_h
54
55#include "vtkCommonComputationalGeometryModule.h" // For export macro
57
58class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricSuperEllipsoid
60{
61public:
63 void PrintSelf(ostream& os, vtkIndent indent) override;
64
77
81 int GetDimension() override { return 2; }
82
84
87 vtkSetMacro(XRadius, double);
88 vtkGetMacro(XRadius, double);
90
92
95 vtkSetMacro(YRadius, double);
96 vtkGetMacro(YRadius, double);
98
100
103 vtkSetMacro(ZRadius, double);
104 vtkGetMacro(ZRadius, double);
106
108
111 vtkSetMacro(N1, double);
112 vtkGetMacro(N1, double);
114
116
119 vtkSetMacro(N2, double);
120 vtkGetMacro(N2, double);
122
131 void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
132
146 double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
147
148protected:
151
152 // Variables
153 double XRadius;
154 double YRadius;
155 double ZRadius;
156 double N1;
157 double N2;
158
159private:
161 void operator=(const vtkParametricSuperEllipsoid&) = delete;
162};
163
164#endif
a simple class to control print indentation
Definition vtkIndent.h:49
abstract interface for parametric functions
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkParametricSuperEllipsoid * New()
Construct a superellipsoid with the following parameters: MinimumU = -Pi, MaximumU = Pi,...
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.
void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override
A superellipsoid.
int GetDimension() override
Return the parametric dimension of the class.
~vtkParametricSuperEllipsoid() override