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 // function : LocOpe_Gluer
0021 // purpose :
0022 //=======================================================================
0023
0024 inline LocOpe_Gluer::LocOpe_Gluer()
0025 : myDone(Standard_False),
0026 myOri(TopAbs_INTERNAL),
0027 myOpe(LocOpe_INVALID)
0028 {
0029 }
0030
0031 //=======================================================================
0032 // function : LocOpe_Gluer
0033 // purpose :
0034 //=======================================================================
0035
0036 inline LocOpe_Gluer::LocOpe_Gluer(const TopoDS_Shape& Sbase, const TopoDS_Shape& Snew)
0037 : myDone(Standard_False),
0038 mySb(Sbase),
0039 mySn(Snew),
0040 myOri(TopAbs_INTERNAL),
0041 myOpe(LocOpe_INVALID)
0042 {
0043 }
0044
0045 //=======================================================================
0046 // function : IsDone
0047 // purpose :
0048 //=======================================================================
0049
0050 inline Standard_Boolean LocOpe_Gluer::IsDone() const
0051 {
0052 return myDone;
0053 }
0054
0055 //=======================================================================
0056 // function : ResultingShape
0057 // purpose :
0058 //=======================================================================
0059
0060 inline const TopoDS_Shape& LocOpe_Gluer::ResultingShape() const
0061 {
0062 if (!myDone)
0063 {
0064 throw StdFail_NotDone();
0065 }
0066 return myRes;
0067 }
0068
0069 //=======================================================================
0070 // function : BasisShape
0071 // purpose :
0072 //=======================================================================
0073
0074 inline const TopoDS_Shape& LocOpe_Gluer::BasisShape() const
0075 {
0076 return mySb;
0077 }
0078
0079 //=======================================================================
0080 // function : GluedShape
0081 // purpose :
0082 //=======================================================================
0083
0084 inline const TopoDS_Shape& LocOpe_Gluer::GluedShape() const
0085 {
0086 return mySn;
0087 }
0088
0089 //=======================================================================
0090 // function : OpeType
0091 // purpose :
0092 //=======================================================================
0093
0094 inline LocOpe_Operation LocOpe_Gluer::OpeType() const
0095 {
0096 return myOpe;
0097 }
0098
0099 //=======================================================================
0100 // function : Edges
0101 // purpose :
0102 //=======================================================================
0103
0104 inline const TopTools_ListOfShape& LocOpe_Gluer::Edges() const
0105 {
0106 return myEdges;
0107 }
0108
0109 //=======================================================================
0110 // function : TgtEdges
0111 // purpose :
0112 //=======================================================================
0113
0114 inline const TopTools_ListOfShape& LocOpe_Gluer::TgtEdges() const
0115 {
0116 return myTgtEdges;
0117 }