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
00028
#ifndef __vtkSphere_h
00029
#define __vtkSphere_h
00030
00031
#include "vtkImplicitFunction.h"
00032
00033 class VTK_FILTERING_EXPORT vtkSphere :
public vtkImplicitFunction
00034 {
00035
public:
00036 vtkTypeRevisionMacro(vtkSphere,
vtkImplicitFunction);
00037
void PrintSelf(ostream& os,
vtkIndent indent);
00038
00040
static vtkSphere *
New();
00041
00043
00044
double EvaluateFunction(
double x[3]);
00045 double EvaluateFunction(
double x,
double y,
double z)
00046 {
return this->
vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
00048
00050
void EvaluateGradient(
double x[3],
double n[3]);
00051
00053
00054 vtkSetMacro(Radius,
double);
00055 vtkGetMacro(Radius,
double);
00057
00059
00060 vtkSetVector3Macro(Center,
double);
00061 vtkGetVectorMacro(Center,
double,3);
00063
00064
protected:
00065 vtkSphere();
00066 ~vtkSphere() {};
00067
00068 double Radius;
00069 double Center[3];
00070
00071
private:
00072 vtkSphere(
const vtkSphere&);
00073
void operator=(
const vtkSphere&);
00074 };
00075
00076
#endif
00077
00078