VTK
dox/Common/DataModel/vtkCone.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkCone.h
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 =========================================================================*/
00036 #ifndef __vtkCone_h
00037 #define __vtkCone_h
00038 
00039 #include "vtkCommonDataModelModule.h" // For export macro
00040 #include "vtkImplicitFunction.h"
00041 
00042 class VTKCOMMONDATAMODEL_EXPORT vtkCone : public vtkImplicitFunction
00043 {
00044 public:
00046   static vtkCone *New();
00047 
00048   vtkTypeMacro(vtkCone,vtkImplicitFunction);
00049   void PrintSelf(ostream& os, vtkIndent indent);
00050 
00052 
00053   double EvaluateFunction(double x[3]);
00054   double EvaluateFunction(double x, double y, double z)
00055     {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
00057 
00059   void EvaluateGradient(double x[3], double g[3]);
00060 
00062 
00063   vtkSetClampMacro(Angle,double,0.0,89.0);
00064   vtkGetMacro(Angle,double);
00066 
00067 protected:
00068   vtkCone();
00069   ~vtkCone() {}
00070 
00071   double Angle;
00072 
00073 private:
00074   vtkCone(const vtkCone&);  // Not implemented.
00075   void operator=(const vtkCone&);  // Not implemented.
00076 };
00077 
00078 #endif
00079 
00080