VTK  9.3.0
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
31#ifndef vtkParametricTorus_h
32#define vtkParametricTorus_h
33
34#include "vtkCommonComputationalGeometryModule.h" // For export macro
36
37VTK_ABI_NAMESPACE_BEGIN
38class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricTorus : public vtkParametricFunction
39{
40
41public:
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
56
58
62 vtkSetMacro(RingRadius, double);
63 vtkGetMacro(RingRadius, double);
65
67
70 vtkSetMacro(CrossSectionRadius, double);
71 vtkGetMacro(CrossSectionRadius, double);
73
77 int GetDimension() override { return 2; }
78
87 void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
88
102 double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
103
104protected:
107
108 // Variables
111
112private:
113 vtkParametricTorus(const vtkParametricTorus&) = delete;
114 void operator=(const vtkParametricTorus&) = delete;
115};
116
117VTK_ABI_NAMESPACE_END
118#endif
a simple class to control print indentation
Definition vtkIndent.h:38
abstract interface for parametric functions
Generate a torus.
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