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 : public vtkParametricFunction
54 {
55 public:
57  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
58 
71  static vtkParametricSuperToroid *New();
72 
76  int GetDimension() VTK_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]) VTK_OVERRIDE;
145 
159  double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) VTK_OVERRIDE;
160 
161 protected:
163  ~vtkParametricSuperToroid() VTK_OVERRIDE;
164 
165  // Variables
166  double RingRadius;
167  double CrossSectionRadius;
168  double XRadius;
169  double YRadius;
170  double ZRadius;
171  double N1;
172  double N2;
173 
174 private:
175  vtkParametricSuperToroid(const vtkParametricSuperToroid&) VTK_DELETE_FUNCTION;
176  void operator=(const vtkParametricSuperToroid&) VTK_DELETE_FUNCTION;
177 
181  double Power ( double x, double n );
182 
183 };
184 
185 #endif
186 
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.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...