Warning, /include/opencascade/HLRAlgo_EdgeIterator.lxx is written in an unsupported language. File is not indexed.
0001 // Created on: 1993-01-11
0002 // Created by: Christophe MARION
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 #include <HLRAlgo_EdgeStatus.hxx>
0018
0019 //=======================================================================
0020 //function : MoreHidden
0021 //purpose :
0022 //=======================================================================
0023
0024 inline Standard_Boolean HLRAlgo_EdgeIterator::MoreHidden () const
0025 { return iHid <= myNbHid + 1; }
0026
0027 //=======================================================================
0028 //function : Hidden
0029 //purpose :
0030 //=======================================================================
0031
0032 inline void
0033 HLRAlgo_EdgeIterator::Hidden (Standard_Real& Start,
0034 Standard_ShortReal& TolStart,
0035 Standard_Real& End ,
0036 Standard_ShortReal& TolEnd) const
0037 {
0038 Start = myHidStart;
0039 TolStart = myHidTolStart;
0040 End = myHidEnd;
0041 TolEnd = myHidTolEnd;
0042 }
0043
0044 //=======================================================================
0045 //function : InitVisible
0046 //purpose :
0047 //=======================================================================
0048
0049 inline void
0050 HLRAlgo_EdgeIterator::InitVisible(HLRAlgo_EdgeStatus& status)
0051 {
0052 EVis = &status;
0053 iVis = 1;
0054 myNbVis = ((HLRAlgo_EdgeStatus*)EVis)->NbVisiblePart();
0055 }
0056
0057 //=======================================================================
0058 //function : MoreVisible
0059 //purpose :
0060 //=======================================================================
0061
0062 inline Standard_Boolean HLRAlgo_EdgeIterator::MoreVisible () const
0063 { return iVis <= myNbVis; }
0064
0065 //=======================================================================
0066 //function : NextVisible
0067 //purpose :
0068 //=======================================================================
0069
0070 inline void HLRAlgo_EdgeIterator::NextVisible ()
0071 { iVis++; }
0072
0073 //=======================================================================
0074 //function : Visible
0075 //purpose :
0076 //=======================================================================
0077
0078 inline void
0079 HLRAlgo_EdgeIterator::Visible (Standard_Real& Start,
0080 Standard_ShortReal& TolStart,
0081 Standard_Real& End ,
0082 Standard_ShortReal& TolEnd)
0083 {
0084 ((HLRAlgo_EdgeStatus*)EVis)->VisiblePart
0085 (iVis,Start,TolStart,End,TolEnd);
0086 }