Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1996-01-30
0002 // Created by: Jacques GOUSSARD
0003 // Copyright (c) 1996-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 //=================================================================================================
0020 
0021 inline LocOpe_Gluer::LocOpe_Gluer()
0022     : myDone(false),
0023       myOri(TopAbs_INTERNAL),
0024       myOpe(LocOpe_INVALID)
0025 {
0026 }
0027 
0028 //=================================================================================================
0029 
0030 inline LocOpe_Gluer::LocOpe_Gluer(const TopoDS_Shape& Sbase, const TopoDS_Shape& Snew)
0031     : myDone(false),
0032       mySb(Sbase),
0033       mySn(Snew),
0034       myOri(TopAbs_INTERNAL),
0035       myOpe(LocOpe_INVALID)
0036 {
0037 }
0038 
0039 //=================================================================================================
0040 
0041 inline bool LocOpe_Gluer::IsDone() const
0042 {
0043   return myDone;
0044 }
0045 
0046 //=================================================================================================
0047 
0048 inline const TopoDS_Shape& LocOpe_Gluer::ResultingShape() const
0049 {
0050   if (!myDone)
0051   {
0052     throw StdFail_NotDone();
0053   }
0054   return myRes;
0055 }
0056 
0057 //=================================================================================================
0058 
0059 inline const TopoDS_Shape& LocOpe_Gluer::BasisShape() const
0060 {
0061   return mySb;
0062 }
0063 
0064 //=================================================================================================
0065 
0066 inline const TopoDS_Shape& LocOpe_Gluer::GluedShape() const
0067 {
0068   return mySn;
0069 }
0070 
0071 //=================================================================================================
0072 
0073 inline LocOpe_Operation LocOpe_Gluer::OpeType() const
0074 {
0075   return myOpe;
0076 }
0077 
0078 //=================================================================================================
0079 
0080 inline const NCollection_List<TopoDS_Shape>& LocOpe_Gluer::Edges() const
0081 {
0082   return myEdges;
0083 }
0084 
0085 //=================================================================================================
0086 
0087 inline const NCollection_List<TopoDS_Shape>& LocOpe_Gluer::TgtEdges() const
0088 {
0089   return myTgtEdges;
0090 }