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=========================================================================*/
82#ifndef vtkParametricSuperEllipsoid_h
83#define vtkParametricSuperEllipsoid_h
84
85#include "vtkCommonComputationalGeometryModule.h" // For export macro
87
88class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricSuperEllipsoid
90{
91public:
93 void PrintSelf(ostream& os, vtkIndent indent) override;
94
107
111 int GetDimension() override { return 2; }
112
114
117 vtkSetMacro(XRadius, double);
118 vtkGetMacro(XRadius, double);
120
122
125 vtkSetMacro(YRadius, double);
126 vtkGetMacro(YRadius, double);
128
130
133 vtkSetMacro(ZRadius, double);
134 vtkGetMacro(ZRadius, double);
136
138
141 vtkSetMacro(N1, double);
142 vtkGetMacro(N1, double);
144
146
149 vtkSetMacro(N2, double);
150 vtkGetMacro(N2, double);
152
161 void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
162
176 double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
177
178protected:
181
182 // Variables
183 double XRadius;
184 double YRadius;
185 double ZRadius;
186 double N1;
187 double N2;
188
189private:
191 void operator=(const vtkParametricSuperEllipsoid&) = delete;
192};
193
194#endif
a simple class to control print indentation
Definition: vtkIndent.h:119
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