Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/opencascade/BRepBlend_RstRstLineBuilder.lxx is written in an unsupported language. File is not indexed.

0001 // Created on: 1997-01-24
0002 // Created by: Laurent BOURESCHE
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 #include <StdFail_NotDone.hxx>
0018 //=======================================================================
0019 //function : IsDone
0020 //purpose  : 
0021 //=======================================================================
0022 
0023 inline Standard_Boolean BRepBlend_RstRstLineBuilder::IsDone() const
0024 {
0025   return done;
0026 }
0027 
0028 //=======================================================================
0029 //function : Line
0030 //purpose  : 
0031 //=======================================================================
0032 
0033 inline const Handle(BRepBlend_Line)& BRepBlend_RstRstLineBuilder::Line() const
0034 {
0035   if (!done) {throw StdFail_NotDone();}
0036   return line;
0037 }
0038 
0039 
0040 //=======================================================================
0041 //function : Decroch1Start
0042 //purpose  : 
0043 //=======================================================================
0044 
0045 inline Standard_Boolean BRepBlend_RstRstLineBuilder::Decroch1Start() const
0046 {
0047   if (decrochdeb == Blend_DecrochRst1 
0048       || decrochdeb == Blend_DecrochBoth)  return Standard_True;
0049 
0050   return Standard_False; 
0051 }
0052 
0053 
0054 //=======================================================================
0055 //function : Decroch1End
0056 //purpose  : 
0057 //=======================================================================
0058 
0059 inline Standard_Boolean BRepBlend_RstRstLineBuilder::Decroch1End() const
0060 {
0061   if (decrochfin == Blend_DecrochRst1 
0062       || decrochfin == Blend_DecrochBoth)  return Standard_True;
0063 
0064   return Standard_False;
0065 }
0066 
0067 //=======================================================================
0068 //function : Decroch2Start
0069 //purpose  : 
0070 //=======================================================================
0071 
0072 inline Standard_Boolean BRepBlend_RstRstLineBuilder::Decroch2Start() const
0073 {
0074   if (decrochdeb == Blend_DecrochRst2 
0075       || decrochdeb == Blend_DecrochBoth)  return Standard_True;
0076 
0077   return Standard_False; 
0078 }
0079 
0080 
0081 //=======================================================================
0082 //function : Decroch2End
0083 //purpose  : 
0084 //=======================================================================
0085 
0086 inline Standard_Boolean BRepBlend_RstRstLineBuilder::Decroch2End() const
0087 {
0088   if (decrochfin == Blend_DecrochRst2 
0089       || decrochfin == Blend_DecrochBoth)  return Standard_True;
0090 
0091   return Standard_False;
0092 }