// File generated by CPPExt (Value)
//
//                     Copyright (C) 1991 - 2000 by  
//                      Matra Datavision SA.  All rights reserved.
//  
//                     Copyright (C) 2001 - 2004 by
//                     Open CASCADE SA.  All rights reserved.
// 
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//  
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.

#ifndef _IntPatch_TheArcFunctionOfIntersection_HeaderFile
#define _IntPatch_TheArcFunctionOfIntersection_HeaderFile

#ifndef _Handle_Adaptor2d_HCurve2d_HeaderFile
#include <Handle_Adaptor2d_HCurve2d.hxx>
#endif
#ifndef _Handle_Adaptor3d_HSurface_HeaderFile
#include <Handle_Adaptor3d_HSurface.hxx>
#endif
#ifndef _IntSurf_Quadric_HeaderFile
#include <IntSurf_Quadric.hxx>
#endif
#ifndef _gp_Pnt_HeaderFile
#include <gp_Pnt.hxx>
#endif
#ifndef _TColgp_SequenceOfPnt_HeaderFile
#include <TColgp_SequenceOfPnt.hxx>
#endif
#ifndef _math_FunctionWithDerivative_HeaderFile
#include <math_FunctionWithDerivative.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
class Adaptor2d_HCurve2d;
class Adaptor3d_HSurface;
class IntPatch_HCurve2dTool;
class IntPatch_HSurfaceTool;
class IntPatch_HInterTool;
class IntSurf_Quadric;
class gp_Pnt;


#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif


class IntPatch_TheArcFunctionOfIntersection  : public math_FunctionWithDerivative {

public:

    void* operator new(size_t,void* anAddress) 
      {
        return anAddress;
      }
    void* operator new(size_t size) 
      { 
        return Standard::Allocate(size); 
      }
    void  operator delete(void *anAddress) 
      { 
        if (anAddress) Standard::Free((Standard_Address&)anAddress); 
      }
 // Methods PUBLIC
 // 


Standard_EXPORT IntPatch_TheArcFunctionOfIntersection();

  void SetQuadric(const IntSurf_Quadric& Q) ;

  void Set(const Handle(Adaptor2d_HCurve2d)& A) ;

  void Set(const Handle(Adaptor3d_HSurface)& S) ;


Standard_EXPORT   Standard_Boolean Value(const Standard_Real X,Standard_Real& F) ;


Standard_EXPORT   Standard_Boolean Derivative(const Standard_Real X,Standard_Real& D) ;


Standard_EXPORT   Standard_Boolean Values(const Standard_Real X,Standard_Real& F,Standard_Real& D) ;


Standard_EXPORT   Standard_Integer NbSamples() const;


Standard_EXPORT virtual  Standard_Integer GetStateNumber() ;

 const gp_Pnt& Valpoint(const Standard_Integer Index) const;

 const IntSurf_Quadric& Quadric() const;

 const Handle_Adaptor2d_HCurve2d& Arc() const;

 const Handle_Adaptor3d_HSurface& Surface() const;





protected:

 // Methods PROTECTED
 // 


 // Fields PROTECTED
 //


private: 

 // Methods PRIVATE
 // 


 // Fields PRIVATE
 //
Handle_Adaptor2d_HCurve2d myArc;
Handle_Adaptor3d_HSurface mySurf;
IntSurf_Quadric myQuad;
gp_Pnt ptsol;
TColgp_SequenceOfPnt seqpt;


};

#define TheArc Handle_Adaptor2d_HCurve2d
#define TheArc_hxx <Adaptor2d_HCurve2d.hxx>
#define TheSurface Handle_Adaptor3d_HSurface
#define TheSurface_hxx <Adaptor3d_HSurface.hxx>
#define TheArcTool IntPatch_HCurve2dTool
#define TheArcTool_hxx <IntPatch_HCurve2dTool.hxx>
#define TheSurfaceTool IntPatch_HSurfaceTool
#define TheSurfaceTool_hxx <IntPatch_HSurfaceTool.hxx>
#define TheInterTool IntPatch_HInterTool
#define TheInterTool_hxx <IntPatch_HInterTool.hxx>
#define IntPatch_ArcFunction IntPatch_TheArcFunctionOfIntersection
#define IntPatch_ArcFunction_hxx <IntPatch_TheArcFunctionOfIntersection.hxx>

#include <IntPatch_ArcFunction.lxx>

#undef TheArc
#undef TheArc_hxx
#undef TheSurface
#undef TheSurface_hxx
#undef TheArcTool
#undef TheArcTool_hxx
#undef TheSurfaceTool
#undef TheSurfaceTool_hxx
#undef TheInterTool
#undef TheInterTool_hxx
#undef IntPatch_ArcFunction
#undef IntPatch_ArcFunction_hxx


// other Inline functions and methods (like "C++: function call" methods)
//


#endif
