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
22#ifndef vtkParametricTorus_h
23#define vtkParametricTorus_h
24
25#include "vtkCommonComputationalGeometryModule.h" // For export macro
27
28VTK_ABI_NAMESPACE_BEGIN
29class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricTorus : public vtkParametricFunction
30{
31
32public:
34 void PrintSelf(ostream& os, vtkIndent indent) override;
35
47
49
53 vtkSetMacro(RingRadius, double);
54 vtkGetMacro(RingRadius, double);
56
58
61 vtkSetMacro(CrossSectionRadius, double);
62 vtkGetMacro(CrossSectionRadius, double);
64
68 int GetDimension() override { return 2; }
69
78 void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
79
93 double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
94
95protected:
98
99 // Variables
102
103private:
104 vtkParametricTorus(const vtkParametricTorus&) = delete;
105 void operator=(const vtkParametricTorus&) = delete;
106};
107
108VTK_ABI_NAMESPACE_END
109#endif
a simple class to control print indentation
Definition vtkIndent.h:29
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