Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

vtkParametricSuperEllipsoid.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkParametricSuperEllipsoid.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even 
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00042 #ifndef __vtkParametricSuperEllipsoid_h
00043 #define __vtkParametricSuperEllipsoid_h
00044 
00045 #include "vtkParametricFunction.h"
00046 
00047 class VTK_COMMON_EXPORT vtkParametricSuperEllipsoid : public vtkParametricFunction
00048 {
00049 public:
00050   vtkTypeRevisionMacro(vtkParametricSuperEllipsoid,vtkParametricFunction);
00051   void PrintSelf(ostream& os, vtkIndent indent);
00052   
00058   static vtkParametricSuperEllipsoid *New();
00059 
00061   virtual int GetDimension() {return 2;}
00062 
00064 
00065   vtkSetMacro(XRadius,double);
00066   vtkGetMacro(XRadius,double);
00068 
00070 
00071   vtkSetMacro(YRadius,double);
00072   vtkGetMacro(YRadius,double);
00074 
00076 
00077   vtkSetMacro(ZRadius,double);
00078   vtkGetMacro(ZRadius,double);
00080 
00082 
00083   vtkSetMacro(N1,double);
00084   vtkGetMacro(N1,double);
00086 
00088 
00089   vtkSetMacro(N2,double);
00090   vtkGetMacro(N2,double);
00092 
00098   virtual void Evaluate(double uvw[3], double Pt[3], double Duvw[9]);
00099 
00108   virtual double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]);
00109 
00110 protected:
00111   vtkParametricSuperEllipsoid();
00112   ~vtkParametricSuperEllipsoid();
00113 
00114   // Variables
00115   double XRadius;
00116   double YRadius;
00117   double ZRadius;
00118   double N1;
00119   double N2;
00120 
00121 private:
00122   vtkParametricSuperEllipsoid(const vtkParametricSuperEllipsoid&);  // Not implemented.
00123   void operator=(const vtkParametricSuperEllipsoid&);  // Not implemented.
00124 
00126   double Power ( double x, double n );
00127 
00128 };
00129 
00130 #endif

Generated on Mon Jan 21 23:07:17 2008 for VTK by  doxygen 1.4.3-20050530