VTK  9.3.1
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
26 #include "vtkParametricFunction.h"
27 
28 VTK_ABI_NAMESPACE_BEGIN
29 class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricTorus : public vtkParametricFunction
30 {
31 
32 public:
34  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
46  static vtkParametricTorus* New();
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 
95 protected:
97  ~vtkParametricTorus() override;
98 
99  // Variables
100  double RingRadius;
102 
103 private:
104  vtkParametricTorus(const vtkParametricTorus&) = delete;
105  void operator=(const vtkParametricTorus&) = delete;
106 };
107 
108 VTK_ABI_NAMESPACE_END
109 #endif
int GetDimension() override
Return the parametric dimension of the class.
virtual double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9])=0
Calculate a user defined scalar using one or all of uvw, Pt, Duvw.
virtual void Evaluate(double uvw[3], double Pt[3], double Duvw[9])=0
Performs the mapping $f(uvw)->(Pt,Duvw)$f.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract interface for parametric functions
a simple class to control print indentation
Definition: vtkIndent.h:28
Generate a torus.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...