// File generated by CPPExt (Transient)
//
//
//                     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_TheGLineOfIntersection_HeaderFile
#define _IntPatch_TheGLineOfIntersection_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Handle_IntPatch_TheGLineOfIntersection_HeaderFile
#include <Handle_IntPatch_TheGLineOfIntersection.hxx>
#endif

#ifndef _gp_Ax2_HeaderFile
#include <gp_Ax2.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _IntPatch_SequenceOfPointOfIntersection_HeaderFile
#include <IntPatch_SequenceOfPointOfIntersection.hxx>
#endif
#ifndef _IntPatch_Line_HeaderFile
#include <IntPatch_Line.hxx>
#endif
#ifndef _Handle_Adaptor3d_HVertex_HeaderFile
#include <Handle_Adaptor3d_HVertex.hxx>
#endif
#ifndef _Handle_Adaptor2d_HCurve2d_HeaderFile
#include <Handle_Adaptor2d_HCurve2d.hxx>
#endif
#ifndef _IntSurf_TypeTrans_HeaderFile
#include <IntSurf_TypeTrans.hxx>
#endif
#ifndef _IntSurf_Situation_HeaderFile
#include <IntSurf_Situation.hxx>
#endif
#ifndef _gp_Lin_HeaderFile
#include <gp_Lin.hxx>
#endif
#ifndef _gp_Circ_HeaderFile
#include <gp_Circ.hxx>
#endif
#ifndef _gp_Elips_HeaderFile
#include <gp_Elips.hxx>
#endif
#ifndef _gp_Parab_HeaderFile
#include <gp_Parab.hxx>
#endif
#ifndef _gp_Hypr_HeaderFile
#include <gp_Hypr.hxx>
#endif
class Standard_DomainError;
class Standard_OutOfRange;
class Adaptor3d_HVertex;
class Adaptor2d_HCurve2d;
class IntPatch_ThePointOfIntersection;
class IntPatch_SequenceOfPointOfIntersection;
class gp_Lin;
class gp_Circ;
class gp_Elips;
class gp_Parab;
class gp_Hypr;



class IntPatch_TheGLineOfIntersection : public IntPatch_Line {

public:
 // Methods PUBLIC
 // 


Standard_EXPORT IntPatch_TheGLineOfIntersection(const gp_Lin& L,const Standard_Boolean Tang,const IntSurf_TypeTrans Trans1,const IntSurf_TypeTrans Trans2);


Standard_EXPORT IntPatch_TheGLineOfIntersection(const gp_Lin& L,const Standard_Boolean Tang,const IntSurf_Situation Situ1,const IntSurf_Situation Situ2);


Standard_EXPORT IntPatch_TheGLineOfIntersection(const gp_Lin& L,const Standard_Boolean Tang);


Standard_EXPORT IntPatch_TheGLineOfIntersection(const gp_Circ& C,const Standard_Boolean Tang,const IntSurf_TypeTrans Trans1,const IntSurf_TypeTrans Trans2);


Standard_EXPORT IntPatch_TheGLineOfIntersection(const gp_Circ& C,const Standard_Boolean Tang,const IntSurf_Situation Situ1,const IntSurf_Situation Situ2);


Standard_EXPORT IntPatch_TheGLineOfIntersection(const gp_Circ& C,const Standard_Boolean Tang);


Standard_EXPORT IntPatch_TheGLineOfIntersection(const gp_Elips& E,const Standard_Boolean Tang,const IntSurf_TypeTrans Trans1,const IntSurf_TypeTrans Trans2);


Standard_EXPORT IntPatch_TheGLineOfIntersection(const gp_Elips& E,const Standard_Boolean Tang,const IntSurf_Situation Situ1,const IntSurf_Situation Situ2);


Standard_EXPORT IntPatch_TheGLineOfIntersection(const gp_Elips& E,const Standard_Boolean Tang);


Standard_EXPORT IntPatch_TheGLineOfIntersection(const gp_Parab& P,const Standard_Boolean Tang,const IntSurf_TypeTrans Trans1,const IntSurf_TypeTrans Trans2);


Standard_EXPORT IntPatch_TheGLineOfIntersection(const gp_Parab& P,const Standard_Boolean Tang,const IntSurf_Situation Situ1,const IntSurf_Situation Situ2);


Standard_EXPORT IntPatch_TheGLineOfIntersection(const gp_Parab& P,const Standard_Boolean Tang);


Standard_EXPORT IntPatch_TheGLineOfIntersection(const gp_Hypr& H,const Standard_Boolean Tang,const IntSurf_TypeTrans Trans1,const IntSurf_TypeTrans Trans2);


Standard_EXPORT IntPatch_TheGLineOfIntersection(const gp_Hypr& H,const Standard_Boolean Tang,const IntSurf_Situation Situ1,const IntSurf_Situation Situ2);


Standard_EXPORT IntPatch_TheGLineOfIntersection(const gp_Hypr& H,const Standard_Boolean Tang);


Standard_EXPORT   void AddVertex(const IntPatch_ThePointOfIntersection& Pnt) ;


Standard_EXPORT   void Replace(const Standard_Integer Index,const IntPatch_ThePointOfIntersection& Pnt) ;

  void SetFirstPoint(const Standard_Integer IndFirst) ;

  void SetLastPoint(const Standard_Integer IndLast) ;

  gp_Lin Line() const;

  gp_Circ Circle() const;

  gp_Elips Ellipse() const;

  gp_Parab Parabola() const;

  gp_Hypr Hyperbola() const;

  Standard_Boolean HasFirstPoint() const;

  Standard_Boolean HasLastPoint() const;

 const IntPatch_ThePointOfIntersection& FirstPoint() const;

 const IntPatch_ThePointOfIntersection& LastPoint() const;

  Standard_Integer NbVertex() const;

 const IntPatch_ThePointOfIntersection& Vertex(const Standard_Integer Index) const;


Standard_EXPORT   void ComputeVertexParameters(const Standard_Real Tol) ;
//Standard_EXPORT ~IntPatch_TheGLineOfIntersection();




 // Type management
 //
 Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
 //Standard_EXPORT Standard_Boolean	       IsKind(const Handle(Standard_Type)&) const;

protected:

 // Methods PROTECTED
 // 


 // Fields PROTECTED
 //


private: 

 // Methods PRIVATE
 // 


 // Fields PRIVATE
 //
gp_Ax2 pos;
Standard_Real par1;
Standard_Real par2;
Standard_Boolean fipt;
Standard_Boolean lapt;
Standard_Integer indf;
Standard_Integer indl;
IntPatch_SequenceOfPointOfIntersection svtx;


};

#define TheVertex Handle_Adaptor3d_HVertex
#define TheVertex_hxx <Adaptor3d_HVertex.hxx>
#define TheArc Handle_Adaptor2d_HCurve2d
#define TheArc_hxx <Adaptor2d_HCurve2d.hxx>
#define ThePoint IntPatch_ThePointOfIntersection
#define ThePoint_hxx <IntPatch_ThePointOfIntersection.hxx>
#define TheSeqPoint IntPatch_SequenceOfPointOfIntersection
#define TheSeqPoint_hxx <IntPatch_SequenceOfPointOfIntersection.hxx>
#define IntPatch_GLine IntPatch_TheGLineOfIntersection
#define IntPatch_GLine_hxx <IntPatch_TheGLineOfIntersection.hxx>
#define Handle_IntPatch_GLine Handle_IntPatch_TheGLineOfIntersection
#define IntPatch_GLine_Type_() IntPatch_TheGLineOfIntersection_Type_()

#include <IntPatch_GLine.lxx>

#undef TheVertex
#undef TheVertex_hxx
#undef TheArc
#undef TheArc_hxx
#undef ThePoint
#undef ThePoint_hxx
#undef TheSeqPoint
#undef TheSeqPoint_hxx
#undef IntPatch_GLine
#undef IntPatch_GLine_hxx
#undef Handle_IntPatch_GLine
#undef IntPatch_GLine_Type_


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


#endif
