VTK
vtkParametricSuperToroid.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkParametricSuperToroid.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 =========================================================================*/
44 #ifndef vtkParametricSuperToroid_h
45 #define vtkParametricSuperToroid_h
46 
47 #include "vtkCommonComputationalGeometryModule.h" // For export macro
48 #include "vtkParametricFunction.h"
49 
50 class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricSuperToroid :
52 {
53  public:
55  void PrintSelf(ostream& os, vtkIndent indent) override;
56 
69  static vtkParametricSuperToroid *New();
70 
74  int GetDimension() override {return 2;}
75 
77 
81  vtkSetMacro(RingRadius, double);
82  vtkGetMacro(RingRadius, double);
84 
86 
90  vtkSetMacro(CrossSectionRadius, double);
91  vtkGetMacro(CrossSectionRadius, double);
93 
95 
98  vtkSetMacro(XRadius, double);
99  vtkGetMacro(XRadius, double);
101 
103 
106  vtkSetMacro(YRadius, double);
107  vtkGetMacro(YRadius, double);
109 
111 
114  vtkSetMacro(ZRadius, double);
115  vtkGetMacro(ZRadius, double);
117 
119 
122  vtkSetMacro(N1, double);
123  vtkGetMacro(N1, double);
125 
127 
130  vtkSetMacro(N2, double);
131  vtkGetMacro(N2, double);
133 
142  void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
143 
157  double EvaluateScalar(double uvw[3], double Pt[3],
158  double Duvw[9]) override;
159 
160  protected:
162  ~vtkParametricSuperToroid() override;
163 
164  // Variables
165  double RingRadius;
167  double XRadius;
168  double YRadius;
169  double ZRadius;
170  double N1;
171  double N2;
172 
173  private:
175  void operator=(const vtkParametricSuperToroid&) = delete;
176 
177 };
178 
179 #endif
180 
virtual double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9])=0
Calculate a user defined scalar using one or all of uvw, Pt, Duvw.
virtual void Evaluate(double uvw[3], double Pt[3], double Duvw[9])=0
Performs the mapping $f(uvw)->(Pt,Duvw)$f.
#define N2
int GetDimension() override
Return the parametric dimension of the class.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define N1
abstract interface for parametric functions
a simple class to control print indentation
Definition: vtkIndent.h:33
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.