Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1997-04-17
0002 // Created by: Christophe MARION
0003 // Copyright (c) 1997-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 _HLRBRep_AreaLimit_HeaderFile
0018 #define _HLRBRep_AreaLimit_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <HLRAlgo_Intersection.hxx>
0024 #include <TopAbs_State.hxx>
0025 #include <Standard_Transient.hxx>
0026 
0027 
0028 class HLRBRep_AreaLimit;
0029 DEFINE_STANDARD_HANDLE(HLRBRep_AreaLimit, Standard_Transient)
0030 
0031 //! The  private  nested class AreaLimit represents   a --
0032 //! vertex on  the Edge with the  state on the left and --
0033 //! the right.
0034 class HLRBRep_AreaLimit : public Standard_Transient
0035 {
0036 
0037 public:
0038 
0039   
0040   //! The previous and next field are set to NULL.
0041   Standard_EXPORT HLRBRep_AreaLimit(const HLRAlgo_Intersection& V, const Standard_Boolean Boundary, const Standard_Boolean Interference, const TopAbs_State StateBefore, const TopAbs_State StateAfter, const TopAbs_State EdgeBefore, const TopAbs_State EdgeAfter);
0042   
0043   Standard_EXPORT void StateBefore (const TopAbs_State St);
0044   
0045   Standard_EXPORT void StateAfter (const TopAbs_State St);
0046   
0047   Standard_EXPORT void EdgeBefore (const TopAbs_State St);
0048   
0049   Standard_EXPORT void EdgeAfter (const TopAbs_State St);
0050   
0051   Standard_EXPORT void Previous (const Handle(HLRBRep_AreaLimit)& P);
0052   
0053   Standard_EXPORT void Next (const Handle(HLRBRep_AreaLimit)& N);
0054   
0055   Standard_EXPORT const HLRAlgo_Intersection& Vertex() const;
0056   
0057   Standard_EXPORT Standard_Boolean IsBoundary() const;
0058   
0059   Standard_EXPORT Standard_Boolean IsInterference() const;
0060   
0061   Standard_EXPORT TopAbs_State StateBefore() const;
0062   
0063   Standard_EXPORT TopAbs_State StateAfter() const;
0064   
0065   Standard_EXPORT TopAbs_State EdgeBefore() const;
0066   
0067   Standard_EXPORT TopAbs_State EdgeAfter() const;
0068   
0069   Standard_EXPORT Handle(HLRBRep_AreaLimit) Previous() const;
0070   
0071   Standard_EXPORT Handle(HLRBRep_AreaLimit) Next() const;
0072   
0073   Standard_EXPORT void Clear();
0074 
0075 
0076 
0077 
0078   DEFINE_STANDARD_RTTIEXT(HLRBRep_AreaLimit,Standard_Transient)
0079 
0080 protected:
0081 
0082 
0083 
0084 
0085 private:
0086 
0087 
0088   HLRAlgo_Intersection myVertex;
0089   Standard_Boolean myBoundary;
0090   Standard_Boolean myInterference;
0091   TopAbs_State myStateBefore;
0092   TopAbs_State myStateAfter;
0093   TopAbs_State myEdgeBefore;
0094   TopAbs_State myEdgeAfter;
0095   Handle(HLRBRep_AreaLimit) myPrevious;
0096   Handle(HLRBRep_AreaLimit) myNext;
0097 
0098 
0099 };
0100 
0101 
0102 
0103 
0104 
0105 
0106 
0107 #endif // _HLRBRep_AreaLimit_HeaderFile