VTK  9.3.20240422
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
91#ifndef vtkParametricMobius_h
92#define vtkParametricMobius_h
93
94#include "vtkCommonComputationalGeometryModule.h" // For export macro
96
97VTK_ABI_NAMESPACE_BEGIN
98class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricMobius : public vtkParametricFunction
99{
100public:
102 void PrintSelf(ostream& os, vtkIndent indent) override;
103
115
117
120 vtkSetMacro(Radius, double);
121 vtkGetMacro(Radius, double);
123
127 int GetDimension() override { return 2; }
128
137 void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
138
152 double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
153
154protected:
157
158 // Variables
159 double Radius;
160
161private:
163 void operator=(const vtkParametricMobius&) = delete;
164};
165
166VTK_ABI_NAMESPACE_END
167#endif
a simple class to control print indentation
Definition vtkIndent.h:108
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.