VTK
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 =========================================================================*/
33 #ifndef vtkParametricTorus_h
34 #define vtkParametricTorus_h
35 
36 #include "vtkCommonComputationalGeometryModule.h" // For export macro
37 #include "vtkParametricFunction.h"
38 
40 {
41 
42 public:
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
50  static vtkParametricTorus *New();
51 
53 
55  vtkSetMacro(RingRadius,double);
56  vtkGetMacro(RingRadius,double);
58 
60 
62  vtkSetMacro(CrossSectionRadius,double);
63  vtkGetMacro(CrossSectionRadius,double);
65 
67  virtual int GetDimension() {return 2;}
68 
73  virtual void Evaluate(double uvw[3], double Pt[3], double Duvw[9]);
74 
83  virtual double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]);
84 
85 protected:
88 
89  // Variables
90  double RingRadius;
92 
93 private:
94  vtkParametricTorus(const vtkParametricTorus&); // Not implemented.
95  void operator=(const vtkParametricTorus&); // Not implemented.
96 };
97 
98 #endif
virtual double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9])=0
virtual void Evaluate(double uvw[3], double Pt[3], double Duvw[9])=0
void PrintSelf(ostream &os, vtkIndent indent)
virtual int GetDimension()
#define VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT
abstract interface for parametric functions
a simple class to control print indentation
Definition: vtkIndent.h:38
Generate a torus.
static vtkObject * New()