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 "vtkParametricFunction.h"
37 
39 {
40 
41 public:
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
49  static vtkParametricTorus *New();
50 
52 
54  vtkSetMacro(RingRadius,double);
55  vtkGetMacro(RingRadius,double);
57 
59 
61  vtkSetMacro(CrossSectionRadius,double);
62  vtkGetMacro(CrossSectionRadius,double);
64 
66  virtual int GetDimension() {return 2;}
67 
72  virtual void Evaluate(double uvw[3], double Pt[3], double Duvw[9]);
73 
82  virtual double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]);
83 
84 protected:
87 
88  // Variables
89  double RingRadius;
91 
92 private:
93  vtkParametricTorus(const vtkParametricTorus&); // Not implemented.
94  void operator=(const vtkParametricTorus&); // Not implemented.
95 };
96 
97 #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()
abstract interface for parametric functions
a simple class to control print indentation
Definition: vtkIndent.h:37
Generate a torus.
#define VTK_COMMON_EXPORT
static vtkObject * New()