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
22#ifndef vtkParametricMobius_h
23#define vtkParametricMobius_h
24
25#include "vtkCommonComputationalGeometryModule.h" // For export macro
27
28VTK_ABI_NAMESPACE_BEGIN
29class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricMobius : public vtkParametricFunction
30{
31public:
33 void PrintSelf(ostream& os, vtkIndent indent) override;
34
46
48
51 vtkSetMacro(Radius, double);
52 vtkGetMacro(Radius, double);
54
58 int GetDimension() override { return 2; }
59
68 void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
69
83 double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
84
85protected:
88
89 // Variables
90 double Radius;
91
92private:
94 void operator=(const vtkParametricMobius&) = delete;
95};
96
97VTK_ABI_NAMESPACE_END
98#endif
a simple class to control print indentation
Definition vtkIndent.h:29
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.
static vtkParametricMobius * New()
Construct a Mobius strip with the following parameters: MinimumU = 0, MaximumU = 2*Pi,...
~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.