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
52
53class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricSuperToroid : public vtkParametricFunction
54{
55public:
57 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
58
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
125 vtkGetMacro(N1,double);
127
129
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
161protected:
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
174private:
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
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract interface for parametric functions
static vtkParametricSuperToroid * New()
Construct a supertoroid with the following parameters: MinimumU = 0, MaximumU = 2*Pi,...
~vtkParametricSuperToroid() override
void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override
A supertoroid.
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.
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.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
#define N1
#define N2