0031668: Visualization - WebGL sample doesn't work on Emscripten 1.39
[occt.git] / src / LocOpe / LocOpe_Gluer.lxx
1 // Created on: 1996-01-30
2 // Created by: Jacques GOUSSARD
3 // Copyright (c) 1996-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
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.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #include <StdFail_NotDone.hxx>
18
19
20 //=======================================================================
21 //function : LocOpe_Gluer
22 //purpose  : 
23 //=======================================================================
24
25 inline LocOpe_Gluer::LocOpe_Gluer () : 
26    myDone(Standard_False),myOri(TopAbs_INTERNAL),myOpe(LocOpe_INVALID)
27 {}
28
29
30 //=======================================================================
31 //function : LocOpe_Gluer
32 //purpose  : 
33 //=======================================================================
34
35 inline LocOpe_Gluer::LocOpe_Gluer (const TopoDS_Shape& Sbase,
36                                const TopoDS_Shape& Snew) :
37    myDone(Standard_False),mySb(Sbase),mySn(Snew),myOri(TopAbs_INTERNAL),myOpe(LocOpe_INVALID)
38 {}
39
40
41 //=======================================================================
42 //function : IsDone
43 //purpose  : 
44 //=======================================================================
45
46 inline Standard_Boolean LocOpe_Gluer::IsDone() const
47 {
48   return myDone;
49 }
50
51
52 //=======================================================================
53 //function : ResultingShape
54 //purpose  : 
55 //=======================================================================
56
57 inline const TopoDS_Shape& LocOpe_Gluer::ResultingShape () const
58 {
59   if (!myDone) {
60     throw StdFail_NotDone();
61   }
62   return myRes;
63 }
64
65 //=======================================================================
66 //function : BasisShape
67 //purpose  : 
68 //=======================================================================
69
70 inline const TopoDS_Shape& LocOpe_Gluer::BasisShape () const
71 {
72   return mySb;
73 }
74
75 //=======================================================================
76 //function : GluedShape
77 //purpose  : 
78 //=======================================================================
79
80 inline const TopoDS_Shape& LocOpe_Gluer::GluedShape () const
81 {
82   return mySn;
83 }
84
85 //=======================================================================
86 //function : OpeType
87 //purpose  : 
88 //=======================================================================
89
90 inline LocOpe_Operation LocOpe_Gluer::OpeType() const
91 {
92   return myOpe;
93 }
94
95
96 //=======================================================================
97 //function : Edges
98 //purpose  : 
99 //=======================================================================
100
101 inline const TopTools_ListOfShape& LocOpe_Gluer::Edges() const
102 {
103   return myEdges;
104 }
105
106
107 //=======================================================================
108 //function : TgtEdges
109 //purpose  : 
110 //=======================================================================
111
112 inline const TopTools_ListOfShape& LocOpe_Gluer::TgtEdges() const
113 {
114   return myTgtEdges;
115 }