VTK
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 =========================================================================*/
42 #ifndef vtkParametricSuperEllipsoid_h
43 #define vtkParametricSuperEllipsoid_h
44 
45 #include "vtkCommonComputationalGeometryModule.h" // For export macro
46 #include "vtkParametricFunction.h"
47 
49 {
50 public:
52  void PrintSelf(ostream& os, vtkIndent indent);
53 
60 
62  virtual int GetDimension() {return 2;}
63 
65 
66  vtkSetMacro(XRadius,double);
67  vtkGetMacro(XRadius,double);
69 
71 
72  vtkSetMacro(YRadius,double);
73  vtkGetMacro(YRadius,double);
75 
77 
78  vtkSetMacro(ZRadius,double);
79  vtkGetMacro(ZRadius,double);
81 
83 
84  vtkSetMacro(N1,double);
85  vtkGetMacro(N1,double);
87 
89 
90  vtkSetMacro(N2,double);
91  vtkGetMacro(N2,double);
93 
99  virtual void Evaluate(double uvw[3], double Pt[3], double Duvw[9]);
100 
109  virtual double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]);
110 
111 protected:
114 
115  // Variables
116  double XRadius;
117  double YRadius;
118  double ZRadius;
119  double N1;
120  double N2;
121 
122 private:
123  vtkParametricSuperEllipsoid(const vtkParametricSuperEllipsoid&); // Not implemented.
124  void operator=(const vtkParametricSuperEllipsoid&); // Not implemented.
125 
127  double Power ( double x, double n );
128 
129 };
130 
131 #endif
virtual double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9])=0
virtual void Evaluate(double uvw[3], double Pt[3], double Duvw[9])=0
#define N2
#define N1
void PrintSelf(ostream &os, vtkIndent indent)
#define VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT
abstract interface for parametric functions
a simple class to control print indentation
Definition: vtkIndent.h:38
static vtkObject * New()