VTK  9.7.20261002
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
90
91#ifndef vtkParametricMobius_h
92#define vtkParametricMobius_h
93
94#include "vtkCommonComputationalGeometryModule.h" // For export macro
96#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
97
98VTK_ABI_NAMESPACE_BEGIN
99class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT VTK_MARSHALAUTO vtkParametricMobius
100 : public vtkParametricFunction
101{
102public:
104 void PrintSelf(ostream& os, vtkIndent indent) override;
105
117
119
122 vtkSetMacro(Radius, double);
123 vtkGetMacro(Radius, double);
125
129 int GetDimension() override { return 2; }
130
139 void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
140
154 double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
155
156protected:
159
160 // Variables
161 double Radius;
162
163private:
165 void operator=(const vtkParametricMobius&) = delete;
166};
167
168VTK_ABI_NAMESPACE_END
169#endif
a simple class to control print indentation
Definition vtkIndent.h:108
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.
#define VTK_MARSHALAUTO