Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages
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
00043 #ifndef __vtkQuadric_h
00044 #define __vtkQuadric_h
00045
00046 #include "vtkImplicitFunction.h"
00047
00048 class VTK_COMMON_EXPORT vtkQuadric : public vtkImplicitFunction
00049 {
00050 public:
00051 vtkTypeRevisionMacro(vtkQuadric,vtkImplicitFunction);
00052 void PrintSelf(ostream& os, vtkIndent indent);
00053
00055 static vtkQuadric *New();
00056
00058
00059 float EvaluateFunction(float x[3]);
00060 float EvaluateFunction(float x, float y, float z)
00061 {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
00063
00065 void EvaluateGradient(float x[3], float g[3]);
00066
00068
00069 void SetCoefficients(float a[10]);
00070 void SetCoefficients(float a0, float a1, float a2, float a3, float a4,
00071 float a5, float a6, float a7, float a8, float a9);
00072 vtkGetVectorMacro(Coefficients,float,10);
00074
00075 protected:
00076 vtkQuadric();
00077 ~vtkQuadric() {};
00078
00079 float Coefficients[10];
00080
00081 private:
00082 vtkQuadric(const vtkQuadric&);
00083 void operator=(const vtkQuadric&);
00084 };
00085
00086 #endif
00087
00088