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=========================================================================*/
56#ifndef vtkParametricSuperToroid_h
57#define vtkParametricSuperToroid_h
58
59#include "vtkCommonComputationalGeometryModule.h" // For export macro
61
62class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricSuperToroid : public vtkParametricFunction
63{
64public:
66 void PrintSelf(ostream& os, vtkIndent indent) override;
67
81
85 int GetDimension() override { return 2; }
86
88
92 vtkSetMacro(RingRadius, double);
93 vtkGetMacro(RingRadius, double);
95
97
101 vtkSetMacro(CrossSectionRadius, double);
102 vtkGetMacro(CrossSectionRadius, double);
104
106
109 vtkSetMacro(XRadius, double);
110 vtkGetMacro(XRadius, double);
112
114
117 vtkSetMacro(YRadius, double);
118 vtkGetMacro(YRadius, double);
120
122
125 vtkSetMacro(ZRadius, double);
126 vtkGetMacro(ZRadius, double);
128
130
133 vtkSetMacro(N1, double);
134 vtkGetMacro(N1, double);
136
138
141 vtkSetMacro(N2, double);
142 vtkGetMacro(N2, double);
144
153 void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
154
168 double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
169
170protected:
173
174 // Variables
177 double XRadius;
178 double YRadius;
179 double ZRadius;
180 double N1;
181 double N2;
182
183private:
185 void operator=(const vtkParametricSuperToroid&) = delete;
186};
187
188#endif
a simple class to control print indentation
Definition vtkIndent.h:49
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.