VTK  9.1.0
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=========================================================================*/
49#ifndef vtkParametricSuperEllipsoid_h
50#define vtkParametricSuperEllipsoid_h
51
52#include "vtkCommonComputationalGeometryModule.h" // For export macro
54
55class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricSuperEllipsoid
57{
58public:
60 void PrintSelf(ostream& os, vtkIndent indent) override;
61
74
78 int GetDimension() override { return 2; }
79
81
84 vtkSetMacro(XRadius, double);
85 vtkGetMacro(XRadius, double);
87
89
92 vtkSetMacro(YRadius, double);
93 vtkGetMacro(YRadius, double);
95
97
100 vtkSetMacro(ZRadius, double);
101 vtkGetMacro(ZRadius, double);
103
105
108 vtkSetMacro(N1, double);
109 vtkGetMacro(N1, double);
111
113
116 vtkSetMacro(N2, double);
117 vtkGetMacro(N2, double);
119
128 void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
129
143 double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
144
145protected:
148
149 // Variables
150 double XRadius;
151 double YRadius;
152 double ZRadius;
153 double N1;
154 double N2;
155
156private:
158 void operator=(const vtkParametricSuperEllipsoid&) = delete;
159};
160
161#endif
a simple class to control print indentation
Definition: vtkIndent.h:43
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