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