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=========================================================================*/
79#ifndef vtkParametricSuperEllipsoid_h
80#define vtkParametricSuperEllipsoid_h
81
82#include "vtkCommonComputationalGeometryModule.h" // For export macro
84
85class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricSuperEllipsoid
87{
88public:
90 void PrintSelf(ostream& os, vtkIndent indent) override;
91
104
108 int GetDimension() override { return 2; }
109
111
114 vtkSetMacro(XRadius, double);
115 vtkGetMacro(XRadius, double);
117
119
122 vtkSetMacro(YRadius, double);
123 vtkGetMacro(YRadius, double);
125
127
130 vtkSetMacro(ZRadius, double);
131 vtkGetMacro(ZRadius, double);
133
135
138 vtkSetMacro(N1, double);
139 vtkGetMacro(N1, double);
141
143
146 vtkSetMacro(N2, double);
147 vtkGetMacro(N2, double);
149
158 void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
159
173 double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
174
175protected:
178
179 // Variables
180 double XRadius;
181 double YRadius;
182 double ZRadius;
183 double N1;
184 double N2;
185
186private:
188 void operator=(const vtkParametricSuperEllipsoid&) = delete;
189};
190
191#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
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