Back to home page

EIC code displayed by LXR

 
 

    


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

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