// 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 _GeomLib_CheckBSplineCurve_HeaderFile
#define _GeomLib_CheckBSplineCurve_HeaderFile

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

#include <Handle_Geom_BSplineCurve.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Real.hxx>
#include <gp_Pnt.hxx>
class Geom_BSplineCurve;
class StdFail_NotDone;
class Standard_OutOfRange;


//! Checks for the end  tangents : wether or not those
//! are reversed regarding the third or n-3rd control
class GeomLib_CheckBSplineCurve 
{
public:

  DEFINE_STANDARD_ALLOC

  
  Standard_EXPORT GeomLib_CheckBSplineCurve(const Handle(Geom_BSplineCurve)& Curve, const Standard_Real Tolerance, const Standard_Real AngularTolerance);
  
      Standard_Boolean IsDone()  const;
  
  Standard_EXPORT   void NeedTangentFix (Standard_Boolean& FirstFlag, Standard_Boolean& SecondFlag)  const;
  
  Standard_EXPORT   void FixTangent (const Standard_Boolean FirstFlag, const Standard_Boolean LastFlag) ;
  
  //! modifies the curve
  //! by fixing the first or the last tangencies
  //!
  //! if Index3D not in the Range [1,Nb3dSpaces]
  //! if the Approx is not Done
  Standard_EXPORT   Handle(Geom_BSplineCurve) FixedTangent (const Standard_Boolean FirstFlag, const Standard_Boolean LastFlag) ;




protected:





private:



  Handle(Geom_BSplineCurve) myCurve;
  Standard_Boolean myDone;
  Standard_Boolean myFixFirstTangent;
  Standard_Boolean myFixLastTangent;
  Standard_Real myAngularTolerance;
  Standard_Real myTolerance;
  gp_Pnt myFirstPole;
  gp_Pnt myLastPole;


};


#include <GeomLib_CheckBSplineCurve.lxx>





#endif // _GeomLib_CheckBSplineCurve_HeaderFile
