Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:06

0001 // Created on: 1992-03-04
0002 // Created by: Laurent BUCHARD
0003 // Copyright (c) 1992-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _IntCurve_IntImpConicParConic_HeaderFile
0018 #define _IntCurve_IntImpConicParConic_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <IntRes2d_Intersection.hxx>
0025 #include <TColStd_Array1OfReal.hxx>
0026 class Standard_ConstructionError;
0027 class IntCurve_IConicTool;
0028 class IntCurve_PConic;
0029 class IntCurve_PConicTool;
0030 class IntCurve_ProjectOnPConicTool;
0031 class IntCurve_MyImpParToolOfIntImpConicParConic;
0032 class IntRes2d_Domain;
0033 class gp_Pnt2d;
0034 
0035 
0036 
0037 class IntCurve_IntImpConicParConic  : public IntRes2d_Intersection
0038 {
0039 public:
0040 
0041   DEFINE_STANDARD_ALLOC
0042 
0043   
0044   //! Empty constructor.
0045   Standard_EXPORT IntCurve_IntImpConicParConic();
0046   
0047   //! Intersection between an implicit curve and
0048   //! a parametrised curve.
0049   //! The exception ConstructionError is raised if the domain
0050   //! of the parametrised curve does not verify HasFirstPoint
0051   //! and HasLastPoint return True.
0052   Standard_EXPORT IntCurve_IntImpConicParConic(const IntCurve_IConicTool& ITool, const IntRes2d_Domain& Dom1, const IntCurve_PConic& PCurve, const IntRes2d_Domain& Dom2, const Standard_Real TolConf, const Standard_Real Tol);
0053   
0054   //! Intersection between an implicit curve and
0055   //! a parametrised curve.
0056   //! The exception ConstructionError is raised if the domain
0057   //! of the parametrised curve does not verify HasFirstPoint
0058   //! and HasLastPoint return True.
0059   Standard_EXPORT void Perform (const IntCurve_IConicTool& ITool, const IntRes2d_Domain& Dom1, const IntCurve_PConic& PCurve, const IntRes2d_Domain& Dom2, const Standard_Real TolConf, const Standard_Real Tol);
0060   
0061   Standard_EXPORT Standard_Real FindU (const Standard_Real parameter, gp_Pnt2d& point, const IntCurve_PConic& TheParCurev, const IntCurve_IConicTool& TheImpTool) const;
0062   
0063   Standard_EXPORT Standard_Real FindV (const Standard_Real parameter, gp_Pnt2d& point, const IntCurve_IConicTool& TheImpTool, const IntCurve_PConic& ParCurve, const IntRes2d_Domain& TheParCurveDomain, const Standard_Real V0, const Standard_Real V1, const Standard_Real Tolerance) const;
0064   
0065   Standard_EXPORT void And_Domaine_Objet1_Intersections (const IntCurve_IConicTool& TheImpTool, const IntCurve_PConic& TheParCurve, const IntRes2d_Domain& TheImpCurveDomain, const IntRes2d_Domain& TheParCurveDomain, Standard_Integer& NbResultats, TColStd_Array1OfReal& Inter2_And_Domain2, TColStd_Array1OfReal& Inter1, TColStd_Array1OfReal& Resultat1, TColStd_Array1OfReal& Resultat2, const Standard_Real EpsNul) const;
0066 
0067 
0068 
0069 
0070 protected:
0071 
0072 
0073 
0074 
0075 
0076 private:
0077 
0078 
0079 
0080 
0081 
0082 };
0083 
0084 
0085 
0086 
0087 
0088 
0089 
0090 #endif // _IntCurve_IntImpConicParConic_HeaderFile