VTK  9.3.0
vtkParametricMobius.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 vtkParametricMobius_h
32 #define vtkParametricMobius_h
33 
34 #include "vtkCommonComputationalGeometryModule.h" // For export macro
35 #include "vtkParametricFunction.h"
36 
37 VTK_ABI_NAMESPACE_BEGIN
38 class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricMobius : public vtkParametricFunction
39 {
40 public:
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
55 
57 
60  vtkSetMacro(Radius, double);
61  vtkGetMacro(Radius, double);
63 
67  int GetDimension() override { return 2; }
68 
77  void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
78 
92  double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
93 
94 protected:
97 
98  // Variables
99  double Radius;
100 
101 private:
102  vtkParametricMobius(const vtkParametricMobius&) = delete;
103  void operator=(const vtkParametricMobius&) = delete;
104 };
105 
106 VTK_ABI_NAMESPACE_END
107 #endif
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract interface for parametric functions
Generate a Mobius strip.
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.
~vtkParametricMobius() override
void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override
The Mobius strip.
int GetDimension() override
Return the parametric dimension of the class.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkParametricMobius * New()
Construct a Mobius strip with the following parameters: MinimumU = 0, MaximumU = 2*Pi,...