Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkCone.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkCone.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 =========================================================================*/
00048 #ifndef __vtkCone_h
00049 #define __vtkCone_h
00050 
00051 #include "vtkImplicitFunction.h"
00052 
00053 class VTK_FILTERING_EXPORT vtkCone : public vtkImplicitFunction
00054 {
00055 public:
00057   static vtkCone *New();
00058 
00059   vtkTypeRevisionMacro(vtkCone,vtkImplicitFunction);
00060   void PrintSelf(ostream& os, vtkIndent indent);
00061   
00063 
00064   double EvaluateFunction(double x[3]);
00065   double EvaluateFunction(double x, double y, double z)
00066     {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
00068 
00070   void EvaluateGradient(double x[3], double g[3]);
00071 
00073 
00074   vtkSetClampMacro(Angle,double,0.0,89.0);
00075   vtkGetMacro(Angle,double);
00077 
00078 protected:
00079   vtkCone();
00080   ~vtkCone() {};
00081 
00082   double Angle;
00083 
00084 private:
00085   vtkCone(const vtkCone&);  // Not implemented.
00086   void operator=(const vtkCone&);  // Not implemented.
00087 };
00088 
00089 #endif
00090 
00091