dox/Filtering/vtkSphere.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00032 #ifndef __vtkSphere_h
00033 #define __vtkSphere_h
00034
00035 #include "vtkImplicitFunction.h"
00036
00037 class VTK_FILTERING_EXPORT vtkSphere : public vtkImplicitFunction
00038 {
00039 public:
00040 vtkTypeRevisionMacro(vtkSphere,vtkImplicitFunction);
00041 void PrintSelf(ostream& os, vtkIndent indent);
00042
00044 static vtkSphere *New();
00045
00047
00048 float EvaluateFunction(float x[3]);
00049 float EvaluateFunction(float x, float y, float z)
00050 {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
00052
00054 void EvaluateGradient(float x[3], float n[3]);
00055
00057
00058 vtkSetMacro(Radius,float);
00059 vtkGetMacro(Radius,float);
00061
00063
00064 vtkSetVector3Macro(Center,float);
00065 vtkGetVectorMacro(Center,float,3);
00067
00068 protected:
00069 vtkSphere();
00070 ~vtkSphere() {};
00071
00072 float Radius;
00073 float Center[3];
00074
00075 private:
00076 vtkSphere(const vtkSphere&);
00077 void operator=(const vtkSphere&);
00078 };
00079
00080 #endif
00081
00082