Common/vtkQuadric.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00044 #ifndef __vtkQuadric_h
00045 #define __vtkQuadric_h
00046
00047 #include "vtkImplicitFunction.h"
00048
00049 class VTK_COMMON_EXPORT vtkQuadric : public vtkImplicitFunction
00050 {
00051 public:
00052 vtkTypeRevisionMacro(vtkQuadric,vtkImplicitFunction);
00053 void PrintSelf(ostream& os, vtkIndent indent);
00054
00056 static vtkQuadric *New();
00057
00059
00060 float EvaluateFunction(float x[3]);
00061 float EvaluateFunction(float x, float y, float z)
00062 {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
00064
00066 void EvaluateGradient(float x[3], float g[3]);
00067
00069
00070 void SetCoefficients(float a[10]);
00071 void SetCoefficients(float a0, float a1, float a2, float a3, float a4,
00072 float a5, float a6, float a7, float a8, float a9);
00073 vtkGetVectorMacro(Coefficients,float,10);
00075
00076 protected:
00077 vtkQuadric();
00078 ~vtkQuadric() {};
00079
00080 float Coefficients[10];
00081
00082 private:
00083 vtkQuadric(const vtkQuadric&);
00084 void operator=(const vtkQuadric&);
00085 };
00086
00087 #endif
00088
00089