Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-21 09:16:45

0001 // Created on: 1993-11-16
0002 // Created by: Laurent BOURESCHE
0003 // Copyright (c) 1993-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 _ChFiDS_FaceInterference_HeaderFile
0018 #define _ChFiDS_FaceInterference_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <Standard_Real.hxx>
0025 #include <Standard_Integer.hxx>
0026 #include <TopAbs_Orientation.hxx>
0027 #include <Standard_Boolean.hxx>
0028 class Geom2d_Curve;
0029 
0030 //! interference face/fillet
0031 class ChFiDS_FaceInterference
0032 {
0033 public:
0034   DEFINE_STANDARD_ALLOC
0035 
0036   Standard_EXPORT ChFiDS_FaceInterference();
0037 
0038   void SetInterference(const int                        LineIndex,
0039                        const TopAbs_Orientation         Trans,
0040                        const occ::handle<Geom2d_Curve>& PCurv1,
0041                        const occ::handle<Geom2d_Curve>& PCurv2);
0042 
0043   Standard_EXPORT void SetTransition(const TopAbs_Orientation Trans);
0044 
0045   void SetFirstParameter(const double U1);
0046 
0047   void SetLastParameter(const double U1);
0048 
0049   Standard_EXPORT void SetParameter(const double U1, const bool IsFirst);
0050 
0051   int LineIndex() const;
0052 
0053   void SetLineIndex(const int I);
0054 
0055   TopAbs_Orientation Transition() const;
0056 
0057   const occ::handle<Geom2d_Curve>& PCurveOnFace() const;
0058 
0059   const occ::handle<Geom2d_Curve>& PCurveOnSurf() const;
0060 
0061   occ::handle<Geom2d_Curve>& ChangePCurveOnFace();
0062 
0063   occ::handle<Geom2d_Curve>& ChangePCurveOnSurf();
0064 
0065   double FirstParameter() const;
0066 
0067   double LastParameter() const;
0068 
0069   Standard_EXPORT double Parameter(const bool IsFirst) const;
0070 
0071 private:
0072   double                    firstParam;
0073   double                    lastParam;
0074   occ::handle<Geom2d_Curve> pCurveOnFace;
0075   occ::handle<Geom2d_Curve> pCurveOnSurf;
0076   int                       lineindex;
0077   TopAbs_Orientation        LineTransition;
0078 };
0079 
0080 #include <ChFiDS_FaceInterference.lxx>
0081 
0082 #endif // _ChFiDS_FaceInterference_HeaderFile