VTK  9.3.20240419
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
111 #ifndef vtkParametricTorus_h
112 #define vtkParametricTorus_h
113 
114 #include "vtkCommonComputationalGeometryModule.h" // For export macro
115 #include "vtkParametricFunction.h"
116 
117 VTK_ABI_NAMESPACE_BEGIN
118 class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricTorus : public vtkParametricFunction
119 {
120 
121 public:
123  void PrintSelf(ostream& os, vtkIndent indent) override;
124 
136 
138 
142  vtkSetMacro(RingRadius, double);
143  vtkGetMacro(RingRadius, double);
145 
147 
150  vtkSetMacro(CrossSectionRadius, double);
151  vtkGetMacro(CrossSectionRadius, double);
153 
157  int GetDimension() override { return 2; }
158 
167  void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
168 
182  double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
183 
184 protected:
187 
188  // Variables
189  double RingRadius;
191 
192 private:
193  vtkParametricTorus(const vtkParametricTorus&) = delete;
194  void operator=(const vtkParametricTorus&) = delete;
195 };
196 
197 VTK_ABI_NAMESPACE_END
198 #endif
a simple class to control print indentation
Definition: vtkIndent.h:108
abstract interface for parametric functions
Generate a torus.
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
static vtkParametricTorus * New()
Construct a torus with the following parameters: MinimumU = 0, MaximumU = 2*Pi, MinimumV = 0,...