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 =========================================================================*/
39 #ifndef vtkParametricEllipsoid_h
40 #define vtkParametricEllipsoid_h
41 
42 #include "vtkCommonComputationalGeometryModule.h" // For export macro
43 #include "vtkParametricFunction.h"
44 
45 class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricEllipsoid :
47 {
48  public:
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
64 
68  int GetDimension() override {return 2;}
69 
71 
74  vtkSetMacro(XRadius, double);
75  vtkGetMacro(XRadius, double);
77 
79 
82  vtkSetMacro(YRadius, double);
83  vtkGetMacro(YRadius, double);
85 
87 
90  vtkSetMacro(ZRadius, double);
91  vtkGetMacro(ZRadius, double);
93 
102  void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
103 
117  double EvaluateScalar(double uvw[3], double Pt[3],
118  double Duvw[9]) override;
119 
120  protected:
123 
124  // Variables
125  double XRadius;
126  double YRadius;
127  double ZRadius;
128  double N1;
129  double N2;
130 
131  private:
133  void operator=(const vtkParametricEllipsoid&) = delete;
134 
135 };
136 
137 #endif
vtkParametricEllipsoid::GetDimension
int GetDimension() override
Return the parametric dimension of the class.
Definition: vtkParametricEllipsoid.h:68
vtkParametricEllipsoid::Evaluate
void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override
An ellipsoid.
vtkParametricFunction
abstract interface for parametric functions
Definition: vtkParametricFunction.h:63
vtkParametricEllipsoid::XRadius
double XRadius
Definition: vtkParametricEllipsoid.h:125
vtkParametricEllipsoid
Generate an ellipsoid.
Definition: vtkParametricEllipsoid.h:47
vtkParametricEllipsoid::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkParametricFunction.h
vtkParametricEllipsoid::vtkParametricEllipsoid
vtkParametricEllipsoid()
vtkParametricEllipsoid::~vtkParametricEllipsoid
~vtkParametricEllipsoid() override
vtkParametricEllipsoid::EvaluateScalar
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.
vtkParametricEllipsoid::YRadius
double YRadius
Definition: vtkParametricEllipsoid.h:126
vtkParametricEllipsoid::N1
double N1
Definition: vtkParametricEllipsoid.h:128
vtkParametricEllipsoid::N2
double N2
Definition: vtkParametricEllipsoid.h:129
vtkParametricEllipsoid::ZRadius
double ZRadius
Definition: vtkParametricEllipsoid.h:127
vtkParametricEllipsoid::New
static vtkParametricEllipsoid * New()
Construct an ellipsoid with the following parameters: MinimumU = 0, MaximumU = 2*Pi,...