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 "vtkParametricFunction.h"
42 
44 {
45 public:
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
53  static vtkParametricEllipsoid *New();
54 
56  virtual int GetDimension() {return 2;}
57 
59 
60  vtkSetMacro(XRadius,double);
61  vtkGetMacro(XRadius,double);
63 
65 
66  vtkSetMacro(YRadius,double);
67  vtkGetMacro(YRadius,double);
69 
71 
72  vtkSetMacro(ZRadius,double);
73  vtkGetMacro(ZRadius,double);
75 
81  virtual void Evaluate(double uvw[3], double Pt[3], double Duvw[9]);
82 
91  virtual double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]);
92 
93 protected:
96 
97  // Variables
98  double XRadius;
99  double YRadius;
100  double ZRadius;
101  double N1;
102  double N2;
103 
104 private:
105  vtkParametricEllipsoid(const vtkParametricEllipsoid&); // Not implemented.
106  void operator=(const vtkParametricEllipsoid&); // Not implemented.
107 
108 };
109 
110 #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)
abstract interface for parametric functions
a simple class to control print indentation
Definition: vtkIndent.h:37
#define VTK_COMMON_EXPORT
static vtkObject * New()