VTK  9.1.0
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=========================================================================*/
53#ifndef vtkParametricSuperToroid_h
54#define vtkParametricSuperToroid_h
55
56#include "vtkCommonComputationalGeometryModule.h" // For export macro
58
59class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricSuperToroid : public vtkParametricFunction
60{
61public:
63 void PrintSelf(ostream& os, vtkIndent indent) override;
64
78
82 int GetDimension() override { return 2; }
83
85
89 vtkSetMacro(RingRadius, double);
90 vtkGetMacro(RingRadius, double);
92
94
98 vtkSetMacro(CrossSectionRadius, double);
99 vtkGetMacro(CrossSectionRadius, double);
101
103
106 vtkSetMacro(XRadius, double);
107 vtkGetMacro(XRadius, double);
109
111
114 vtkSetMacro(YRadius, double);
115 vtkGetMacro(YRadius, double);
117
119
122 vtkSetMacro(ZRadius, double);
123 vtkGetMacro(ZRadius, double);
125
127
130 vtkSetMacro(N1, double);
131 vtkGetMacro(N1, double);
133
135
138 vtkSetMacro(N2, double);
139 vtkGetMacro(N2, double);
141
150 void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
151
165 double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
166
167protected:
170
171 // Variables
174 double XRadius;
175 double YRadius;
176 double ZRadius;
177 double N1;
178 double N2;
179
180private:
182 void operator=(const vtkParametricSuperToroid&) = delete;
183};
184
185#endif
a simple class to control print indentation
Definition: vtkIndent.h:43
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.