00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkParametricFigure8Klein.h,v $ 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00042 #ifndef __vtkParametricFigure8Klein_h 00043 #define __vtkParametricFigure8Klein_h 00044 00045 #include "vtkParametricFunction.h" 00046 00047 class VTK_COMMON_EXPORT vtkParametricFigure8Klein : public vtkParametricFunction 00048 { 00049 public: 00050 vtkTypeRevisionMacro(vtkParametricFigure8Klein,vtkParametricFunction); 00051 void PrintSelf(ostream& os, vtkIndent indent); 00052 00057 static vtkParametricFigure8Klein *New(); 00058 00060 00061 vtkSetMacro(Radius,double); 00062 vtkGetMacro(Radius,double); 00064 00066 virtual int GetDimension() {return 2;} 00067 00073 virtual void Evaluate(double uvw[3], double Pt[3], double Duvw[9]); 00074 00083 virtual double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]); 00084 00085 protected: 00086 vtkParametricFigure8Klein(); 00087 ~vtkParametricFigure8Klein(); 00088 00089 // Variables 00090 double Radius; 00091 00092 private: 00093 vtkParametricFigure8Klein(const vtkParametricFigure8Klein&); // Not implemented. 00094 void operator=(const vtkParametricFigure8Klein&); // Not implemented. 00095 00096 }; 00097 00098 #endif