VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkParametricMobius.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkParametricMobius.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 __vtkParametricMobius_h
34 #define __vtkParametricMobius_h
35 
36 #include "vtkCommonComputationalGeometryModule.h" // For export macro
37 #include "vtkParametricFunction.h"
38 
39 class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricMobius : public vtkParametricFunction
40 {
41 public:
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
49  static vtkParametricMobius *New();
50 
52 
53  vtkSetMacro(Radius,double);
54  vtkGetMacro(Radius,double);
56 
58  virtual int GetDimension() {return 2;}
59 
65  virtual void Evaluate(double uvw[3], double Pt[3], double Duvw[9]);
66 
75  virtual double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]);
76 
77 protected:
80 
81  // Variables
82  double Radius;
83 
84 private:
85  vtkParametricMobius(const vtkParametricMobius&); // Not implemented.
86  void operator=(const vtkParametricMobius&); // Not implemented.
87 };
88 
89 #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
Generate a Mobius strip.
void PrintSelf(ostream &os, vtkIndent indent)
abstract interface for parametric functions
virtual int GetDimension()