// 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_TheRLineOfIntersection_HeaderFile
#define _IntPatch_TheRLineOfIntersection_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Handle_IntPatch_TheRLineOfIntersection_HeaderFile
#include <Handle_IntPatch_TheRLineOfIntersection.hxx>
#endif

#ifndef _Handle_Adaptor2d_HCurve2d_HeaderFile
#include <Handle_Adaptor2d_HCurve2d.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Handle_IntSurf_LineOn2S_HeaderFile
#include <Handle_IntSurf_LineOn2S.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 _IntSurf_TypeTrans_HeaderFile
#include <IntSurf_TypeTrans.hxx>
#endif
#ifndef _IntSurf_Situation_HeaderFile
#include <IntSurf_Situation.hxx>
#endif
class Adaptor2d_HCurve2d;
class IntSurf_LineOn2S;
class Standard_DomainError;
class Standard_OutOfRange;
class Adaptor3d_HVertex;
class IntPatch_ThePointOfIntersection;
class IntPatch_SequenceOfPointOfIntersection;
class IntSurf_PntOn2S;



class IntPatch_TheRLineOfIntersection : public IntPatch_Line {

public:
 // Methods PUBLIC
 // 


Standard_EXPORT IntPatch_TheRLineOfIntersection(const Standard_Boolean Tang,const IntSurf_TypeTrans Trans1,const IntSurf_TypeTrans Trans2);


Standard_EXPORT IntPatch_TheRLineOfIntersection(const Standard_Boolean Tang,const IntSurf_Situation Situ1,const IntSurf_Situation Situ2);


Standard_EXPORT IntPatch_TheRLineOfIntersection(const Standard_Boolean Tang);

  void AddVertex(const IntPatch_ThePointOfIntersection& Pnt) ;

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

  void SetFirstPoint(const Standard_Integer IndFirst) ;

  void SetLastPoint(const Standard_Integer IndLast) ;

  void Add(const Handle(IntSurf_LineOn2S)& L) ;

  Standard_Boolean IsArcOnS1() const;

  Standard_Boolean IsArcOnS2() const;


Standard_EXPORT   void SetArcOnS1(const Handle(Adaptor2d_HCurve2d)& A) ;


Standard_EXPORT   void SetArcOnS2(const Handle(Adaptor2d_HCurve2d)& A) ;


Standard_EXPORT   void SetParamOnS1(const Standard_Real p1,const Standard_Real p2) ;


Standard_EXPORT   void SetParamOnS2(Standard_Real& p1,Standard_Real& p2) ;

 const Handle_Adaptor2d_HCurve2d& ArcOnS1() const;

 const Handle_Adaptor2d_HCurve2d& ArcOnS2() const;


Standard_EXPORT   void ParamOnS1(Standard_Real& p1,Standard_Real& p2) const;


Standard_EXPORT   void ParamOnS2(Standard_Real& p1,Standard_Real& p2) 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_Boolean HasPolygon() const;

  Standard_Integer NbPnts() const;

 const IntSurf_PntOn2S& Point(const Standard_Integer Index) const;


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


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




 // 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
 //
Handle_Adaptor2d_HCurve2d theArcOnS1;
Handle_Adaptor2d_HCurve2d theArcOnS2;
Standard_Boolean onS1;
Standard_Boolean onS2;
Standard_Real ParamInf1;
Standard_Real ParamSup1;
Standard_Real ParamInf2;
Standard_Real ParamSup2;
Handle_IntSurf_LineOn2S curv;
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_RLine IntPatch_TheRLineOfIntersection
#define IntPatch_RLine_hxx <IntPatch_TheRLineOfIntersection.hxx>
#define Handle_IntPatch_RLine Handle_IntPatch_TheRLineOfIntersection
#define IntPatch_RLine_Type_() IntPatch_TheRLineOfIntersection_Type_()

#include <IntPatch_RLine.lxx>

#undef TheVertex
#undef TheVertex_hxx
#undef TheArc
#undef TheArc_hxx
#undef ThePoint
#undef ThePoint_hxx
#undef TheSeqPoint
#undef TheSeqPoint_hxx
#undef IntPatch_RLine
#undef IntPatch_RLine_hxx
#undef Handle_IntPatch_RLine
#undef IntPatch_RLine_Type_


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


#endif
