VTK  9.7.20260923
vtkParametricTorus.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
110
111#ifndef vtkParametricTorus_h
112#define vtkParametricTorus_h
113
114#include "vtkCommonComputationalGeometryModule.h" // For export macro
116#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
117
118VTK_ABI_NAMESPACE_BEGIN
119class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT VTK_MARSHALAUTO vtkParametricTorus
120 : public vtkParametricFunction
121{
122
123public:
125 void PrintSelf(ostream& os, vtkIndent indent) override;
126
138
140
144 vtkSetMacro(RingRadius, double);
145 vtkGetMacro(RingRadius, double);
147
149
152 vtkSetMacro(CrossSectionRadius, double);
153 vtkGetMacro(CrossSectionRadius, double);
155
159 int GetDimension() override { return 2; }
160
169 void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
170
184 double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
185
186protected:
189
190 // Variables
193
194private:
195 vtkParametricTorus(const vtkParametricTorus&) = delete;
196 void operator=(const vtkParametricTorus&) = delete;
197};
198
199VTK_ABI_NAMESPACE_END
200#endif
a simple class to control print indentation
Definition vtkIndent.h:108
static vtkParametricTorus * New()
Construct a torus with the following parameters: MinimumU = 0, MaximumU = 2*Pi, MinimumV = 0,...
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.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int GetDimension() override
Return the parametric dimension of the class.
void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override
A torus.
~vtkParametricTorus() override
#define VTK_MARSHALAUTO