VTK
vtkParametricEllipsoid.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkParametricEllipsoid.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 =========================================================================*/
38 #ifndef vtkParametricEllipsoid_h
39 #define vtkParametricEllipsoid_h
40 
41 #include "vtkCommonComputationalGeometryModule.h" // For export macro
42 #include "vtkParametricFunction.h"
43 
45 {
46 public:
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
54  static vtkParametricEllipsoid *New();
55 
57  virtual int GetDimension() {return 2;}
58 
60 
61  vtkSetMacro(XRadius,double);
62  vtkGetMacro(XRadius,double);
64 
66 
67  vtkSetMacro(YRadius,double);
68  vtkGetMacro(YRadius,double);
70 
72 
73  vtkSetMacro(ZRadius,double);
74  vtkGetMacro(ZRadius,double);
76 
82  virtual void Evaluate(double uvw[3], double Pt[3], double Duvw[9]);
83 
92  virtual double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]);
93 
94 protected:
97 
98  // Variables
99  double XRadius;
100  double YRadius;
101  double ZRadius;
102  double N1;
103  double N2;
104 
105 private:
106  vtkParametricEllipsoid(const vtkParametricEllipsoid&); // Not implemented.
107  void operator=(const vtkParametricEllipsoid&); // Not implemented.
108 
109 };
110 
111 #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
Generate an ellipsoid.
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()