VTK: Common/ComputationalGeometry/vtkParametricKlein.h Source File

| VTK 9.3.1

vtkParametricKlein.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
40 #ifndef vtkParametricKlein_h
41 #define vtkParametricKlein_h
42
43 #include "vtkCommonComputationalGeometryModule.h" // For export macro
44 #include "vtkParametricFunction.h"
45
46 VTK_ABI_NAMESPACE_BEGIN
47 class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricKlein : public vtkParametricFunction
48 {
49 public:
50 vtkTypeMacro(vtkParametricKlein, vtkParametricFunction);
51 void PrintSelf(ostream& os, vtkIndent indent) override;
52
62 static vtkParametricKlein* New();
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:
95 vtkParametricKlein();
96 ~vtkParametricKlein() override;
97
98 private:
99 vtkParametricKlein(const vtkParametricKlein&) = delete;
100 void operator=(const vtkParametricKlein&) = delete;
101 };
102
103 VTK_ABI_NAMESPACE_END
104 #endif
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkParametricFunction
abstract interface for parametric functions
Definition: vtkParametricFunction.h:61
vtkParametricKlein
Generates a "classical" representation of a Klein bottle.
Definition: vtkParametricKlein.h:48
vtkParametricKlein::EvaluateScalar
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.
vtkParametricKlein::New
static vtkParametricKlein * New()
Construct a Klein Bottle with the following parameters: MinimumU = 0, MaximumU = 2*Pi,...
vtkParametricKlein::~vtkParametricKlein
~vtkParametricKlein() override
vtkParametricKlein::vtkParametricKlein
vtkParametricKlein()
vtkParametricKlein::Evaluate
void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override
A Klein bottle.
vtkParametricKlein::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkParametricKlein::GetDimension
int GetDimension() override
Initialise the parameters for the Klein bottle.
Definition: vtkParametricKlein.h:67
vtkParametricFunction.h