1 // Approx_Presentation.h: interface for the Approx_Presentation class.
2 // Presentation class: Approximation of curves and surfaces.
3 //////////////////////////////////////////////////////////////////////
5 #if !defined(AFX_Approx_PRESENTATION_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_)
6 #define AFX_Approx_PRESENTATION_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_
10 #endif // _MSC_VER > 1000
12 #include <OCCDemo_Presentation.h>
13 #include <Geom_BSplineSurface.hxx>
15 class Approx_Presentation : public OCCDemo_Presentation
19 Approx_Presentation();
22 // Iteration on samples
23 virtual void DoSample();
24 // one phase of iterations
32 Standard_Boolean DrawModifyBSplineSurface(TColStd_Array2OfReal& ,
33 Standard_Real ,Standard_Real ,
34 Standard_Integer ,Standard_Integer ,
35 Standard_Real,Handle(AIS_InteractiveObject)&,
36 Handle(AIS_InteractiveObject)&,
39 Handle(Geom_BSplineSurface) CreateBSplineSurface(TColStd_Array2OfReal& ,
40 Standard_Real ,Standard_Real,
44 // Array of pointers to sample functions
45 typedef void (Approx_Presentation::*PSampleFuncType)();
46 static const PSampleFuncType SampleFuncs[];
50 #endif // !defined(AFX_Approx_PRESENTATION_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_)