VTK  9.2.6
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 : public vtkParametricFunction
54 {
55 public:
57  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
71  static vtkParametricSuperToroid* New();
72 
76  int GetDimension() override { return 2; }
77 
79 
83  vtkSetMacro(RingRadius, double);
84  vtkGetMacro(RingRadius, double);
86 
88 
92  vtkSetMacro(CrossSectionRadius, double);
93  vtkGetMacro(CrossSectionRadius, double);
95 
97 
100  vtkSetMacro(XRadius, double);
101  vtkGetMacro(XRadius, double);
103 
105 
108  vtkSetMacro(YRadius, double);
109  vtkGetMacro(YRadius, double);
111 
113 
116  vtkSetMacro(ZRadius, double);
117  vtkGetMacro(ZRadius, double);
119 
121 
124  vtkSetMacro(N1, double);
125  vtkGetMacro(N1, double);
127 
129 
132  vtkSetMacro(N2, double);
133  vtkGetMacro(N2, double);
135 
144  void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
145 
159  double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
160 
161 protected:
163  ~vtkParametricSuperToroid() override;
164 
165  // Variables
166  double RingRadius;
168  double XRadius;
169  double YRadius;
170  double ZRadius;
171  double N1;
172  double N2;
173 
174 private:
176  void operator=(const vtkParametricSuperToroid&) = delete;
177 };
178 
179 #endif
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.
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.
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...