// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _Approx_Curve2d_HeaderFile
#define _Approx_Curve2d_HeaderFile

#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Macro.hxx>

#include <Handle_Geom2d_BSplineCurve.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Real.hxx>
#include <Handle_Adaptor2d_HCurve2d.hxx>
#include <GeomAbs_Shape.hxx>
#include <Standard_Integer.hxx>
class Geom2d_BSplineCurve;
class Adaptor2d_HCurve2d;


//! Makes  an  approximation  for  HCurve2d  from  Adaptor3d
class Approx_Curve2d 
{
public:

  DEFINE_STANDARD_ALLOC

  
  Standard_EXPORT Approx_Curve2d(const Handle(Adaptor2d_HCurve2d)& C2D, const Standard_Real First, const Standard_Real Last, const Standard_Real TolU, const Standard_Real TolV, const GeomAbs_Shape Continuity, const Standard_Integer MaxDegree, const Standard_Integer MaxSegments);
  
  Standard_EXPORT   Standard_Boolean IsDone()  const;
  
  Standard_EXPORT   Standard_Boolean HasResult()  const;
  
  Standard_EXPORT   Handle(Geom2d_BSplineCurve) Curve()  const;
  
  Standard_EXPORT   Standard_Real MaxError2dU()  const;
  
  Standard_EXPORT   Standard_Real MaxError2dV()  const;




protected:





private:



  Handle(Geom2d_BSplineCurve) myCurve;
  Standard_Boolean myIsDone;
  Standard_Boolean myHasResult;
  Standard_Real myMaxError2dU;
  Standard_Real myMaxError2dV;


};







#endif // _Approx_Curve2d_HeaderFile
