VTK  9.0.1
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
35 #include "vtkParametricFunction.h"
36 
37 class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricTorus : public vtkParametricFunction
38 {
39 
40 public:
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
54  static vtkParametricTorus* New();
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 
103 protected:
105  ~vtkParametricTorus() override;
106 
107  // Variables
108  double RingRadius;
110 
111 private:
112  vtkParametricTorus(const vtkParametricTorus&) = delete;
113  void operator=(const vtkParametricTorus&) = delete;
114 };
115 
116 #endif
int GetDimension() override
Return the parametric dimension of the class.
virtual double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9])=0
Calculate a user defined scalar using one or all of uvw, Pt, Duvw.
virtual void Evaluate(double uvw[3], double Pt[3], double Duvw[9])=0
Performs the mapping $f(uvw)->(Pt,Duvw)$f.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract interface for parametric functions
a simple class to control print indentation
Definition: vtkIndent.h:33
Generate a torus.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...