Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:22

0001 // Created on: 1993-02-05
0002 // Created by: Jacques GOUSSARD
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 _Contap_TheSegmentOfTheSearch_HeaderFile
0018 #define _Contap_TheSegmentOfTheSearch_HeaderFile
0019 
0020 #include <Adaptor2d_Curve2d.hxx>
0021 #include <Contap_ThePathPointOfTheSearch.hxx>
0022 
0023 class Standard_DomainError;
0024 class Adaptor3d_HVertex;
0025 class Contap_ThePathPointOfTheSearch;
0026 
0027 class Contap_TheSegmentOfTheSearch 
0028 {
0029 public:
0030 
0031   DEFINE_STANDARD_ALLOC
0032 
0033   
0034   //! Empty constructor.
0035   Standard_EXPORT Contap_TheSegmentOfTheSearch();
0036   
0037   //! Defines the concerned arc.
0038     void SetValue (const Handle(Adaptor2d_Curve2d)& A);
0039   
0040   //! Defines the first point or the last point,
0041   //! depending on the value of the boolean First.
0042   Standard_EXPORT void SetLimitPoint (const Contap_ThePathPointOfTheSearch& V, const Standard_Boolean First);
0043   
0044   //! Returns the geometric curve on the surface 's domain
0045   //! which is solution.
0046     const Handle(Adaptor2d_Curve2d)& Curve() const;
0047   
0048   //! Returns True if there is a vertex (ThePathPoint) defining
0049   //! the lowest valid parameter on the arc.
0050     Standard_Boolean HasFirstPoint() const;
0051   
0052   //! Returns the first point.
0053     const Contap_ThePathPointOfTheSearch& FirstPoint() const;
0054   
0055   //! Returns True if there is a vertex (ThePathPoint) defining
0056   //! the greatest valid parameter on the arc.
0057     Standard_Boolean HasLastPoint() const;
0058   
0059   //! Returns the last point.
0060     const Contap_ThePathPointOfTheSearch& LastPoint() const;
0061 
0062 
0063 
0064 
0065 protected:
0066 
0067 
0068 
0069 
0070 
0071 private:
0072 
0073 
0074 
0075   Handle(Adaptor2d_Curve2d) arc;
0076   Standard_Boolean hasfp;
0077   Contap_ThePathPointOfTheSearch thefp;
0078   Standard_Boolean haslp;
0079   Contap_ThePathPointOfTheSearch thelp;
0080 
0081 
0082 };
0083 
0084 #define TheVertex Handle(Adaptor3d_HVertex)
0085 #define TheVertex_hxx <Adaptor3d_HVertex.hxx>
0086 #define TheArc Handle(Adaptor2d_Curve2d)
0087 #define TheArc_hxx <Adaptor2d_Curve2d.hxx>
0088 #define ThePathPoint Contap_ThePathPointOfTheSearch
0089 #define ThePathPoint_hxx <Contap_ThePathPointOfTheSearch.hxx>
0090 #define IntStart_Segment Contap_TheSegmentOfTheSearch
0091 #define IntStart_Segment_hxx <Contap_TheSegmentOfTheSearch.hxx>
0092 
0093 #include <IntStart_Segment.lxx>
0094 
0095 #undef TheVertex
0096 #undef TheVertex_hxx
0097 #undef TheArc
0098 #undef TheArc_hxx
0099 #undef ThePathPoint
0100 #undef ThePathPoint_hxx
0101 #undef IntStart_Segment
0102 #undef IntStart_Segment_hxx
0103 
0104 
0105 
0106 
0107 #endif // _Contap_TheSegmentOfTheSearch_HeaderFile