VTK  9.1.0
vtkParametricTorus.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkParametricTorus.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
31#ifndef vtkParametricTorus_h
32#define vtkParametricTorus_h
33
34#include "vtkCommonComputationalGeometryModule.h" // For export macro
36
37class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricTorus : public vtkParametricFunction
38{
39
40public:
42 void PrintSelf(ostream& os, vtkIndent indent) override;
43
55
57
61 vtkSetMacro(RingRadius, double);
62 vtkGetMacro(RingRadius, double);
64
66
69 vtkSetMacro(CrossSectionRadius, double);
70 vtkGetMacro(CrossSectionRadius, double);
72
76 int GetDimension() override { return 2; }
77
86 void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
87
101 double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
102
103protected:
106
107 // Variables
110
111private:
112 vtkParametricTorus(const vtkParametricTorus&) = delete;
113 void operator=(const vtkParametricTorus&) = delete;
114};
115
116#endif
a simple class to control print indentation
Definition: vtkIndent.h:34
abstract interface for parametric functions
Generate a torus.
static vtkParametricTorus * New()
Construct a torus with the following parameters: MinimumU = 0, MaximumU = 2*Pi, MinimumV = 0,...
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.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int GetDimension() override
Return the parametric dimension of the class.
void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override
A torus.
~vtkParametricTorus() override