vtkSphere.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00040 #ifndef __vtkSphere_h
00041 #define __vtkSphere_h
00042
00043 #include "vtkImplicitFunction.h"
00044
00045 class VTK_FILTERING_EXPORT vtkSphere : public vtkImplicitFunction
00046 {
00047 public:
00048 vtkTypeRevisionMacro(vtkSphere,vtkImplicitFunction);
00049 void PrintSelf(ostream& os, vtkIndent indent);
00050
00052 static vtkSphere *New();
00053
00055
00056 double EvaluateFunction(double x[3]);
00057 double EvaluateFunction(double x, double y, double z)
00058 {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
00060
00062 void EvaluateGradient(double x[3], double n[3]);
00063
00065
00066 vtkSetMacro(Radius,double);
00067 vtkGetMacro(Radius,double);
00069
00071
00072 vtkSetVector3Macro(Center,double);
00073 vtkGetVectorMacro(Center,double,3);
00075
00076 protected:
00077 vtkSphere();
00078 ~vtkSphere() {};
00079
00080 double Radius;
00081 double Center[3];
00082
00083 private:
00084 vtkSphere(const vtkSphere&);
00085 void operator=(const vtkSphere&);
00086 };
00087
00088 #endif
00089
00090