1 // Created on: 1992-02-18
2 // Created by: Christophe MARION
3 // Copyright (c) 1992-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #define EMaskAllHidden ((Standard_Boolean)1)
18 #define EMaskAllVisible ((Standard_Boolean)2)
20 //=======================================================================
23 //=======================================================================
25 inline void HLRAlgo_EdgeStatus::Bounds
26 ( Standard_Real& Start, Standard_ShortReal& TolStart,
27 Standard_Real& End , Standard_ShortReal& TolEnd ) const
30 TolStart = myTolStart;
35 //=======================================================================
38 //=======================================================================
40 inline void HLRAlgo_EdgeStatus::HideAll()
42 AllVisible(Standard_False);
43 AllHidden (Standard_True);
46 //=======================================================================
49 //=======================================================================
51 inline void HLRAlgo_EdgeStatus::ShowAll()
53 AllVisible(Standard_True);
54 AllHidden (Standard_False);
57 //=======================================================================
58 //function : AllHidden
60 //=======================================================================
62 inline Standard_Boolean HLRAlgo_EdgeStatus::AllHidden () const
63 { return (myFlags & EMaskAllHidden) != 0; }
65 //=======================================================================
66 //function : AllHidden
68 //=======================================================================
70 inline void HLRAlgo_EdgeStatus::AllHidden (const Standard_Boolean B)
72 if (B) myFlags |= EMaskAllHidden;
73 else myFlags &= ~EMaskAllHidden;
76 //=======================================================================
77 //function : AllVisible
79 //=======================================================================
81 inline Standard_Boolean HLRAlgo_EdgeStatus::AllVisible () const
82 { return (myFlags & EMaskAllVisible) != 0; }
84 //=======================================================================
85 //function : AllVisible
87 //=======================================================================
89 inline void HLRAlgo_EdgeStatus::AllVisible (const Standard_Boolean B)
91 if (B) myFlags |= EMaskAllVisible;
92 else myFlags &= ~EMaskAllVisible;