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 =========================================================================*/
47 #ifndef vtkParametricSuperToroid_h
48 #define vtkParametricSuperToroid_h
49 
50 #include "vtkCommonComputationalGeometryModule.h" // For export macro
51 #include "vtkParametricFunction.h"
52 
53 class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricSuperToroid :
55 {
56  public:
58  void PrintSelf(ostream& os, vtkIndent indent) override;
59 
72  static vtkParametricSuperToroid *New();
73 
77  int GetDimension() override {return 2;}
78 
80 
84  vtkSetMacro(RingRadius, double);
85  vtkGetMacro(RingRadius, double);
87 
89 
93  vtkSetMacro(CrossSectionRadius, double);
94  vtkGetMacro(CrossSectionRadius, double);
96 
98 
101  vtkSetMacro(XRadius, double);
102  vtkGetMacro(XRadius, double);
104 
106 
109  vtkSetMacro(YRadius, double);
110  vtkGetMacro(YRadius, double);
112 
114 
117  vtkSetMacro(ZRadius, double);
118  vtkGetMacro(ZRadius, double);
120 
122 
125  vtkSetMacro(N1, double);
126  vtkGetMacro(N1, double);
128 
130 
133  vtkSetMacro(N2, double);
134  vtkGetMacro(N2, double);
136 
145  void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
146 
160  double EvaluateScalar(double uvw[3], double Pt[3],
161  double Duvw[9]) override;
162 
163  protected:
165  ~vtkParametricSuperToroid() override;
166 
167  // Variables
168  double RingRadius;
170  double XRadius;
171  double YRadius;
172  double ZRadius;
173  double N1;
174  double N2;
175 
176  private:
178  void operator=(const vtkParametricSuperToroid&) = delete;
179 
180 };
181 
182 #endif
183 
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:39
Generate a supertoroid.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...