0030675: Visualization - remove redundant proxy classes in hierarchy of PrsMgr_Presen...
[occt.git] / src / LocOpe / LocOpe_Gluer.hxx
CommitLineData
42cf5bc1 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#ifndef _LocOpe_Gluer_HeaderFile
18#define _LocOpe_Gluer_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_DefineAlloc.hxx>
22#include <Standard_Handle.hxx>
23
24#include <Standard_Boolean.hxx>
25#include <TopoDS_Shape.hxx>
26#include <TopAbs_Orientation.hxx>
27#include <LocOpe_Operation.hxx>
28#include <TopTools_IndexedDataMapOfShapeShape.hxx>
29#include <TopTools_DataMapOfShapeShape.hxx>
30#include <TopTools_DataMapOfShapeListOfShape.hxx>
31#include <TopTools_ListOfShape.hxx>
32class StdFail_NotDone;
33class Standard_NoSuchObject;
34class Standard_ConstructionError;
35class TopoDS_Shape;
36class TopoDS_Face;
37class TopoDS_Edge;
38
39
40
41class LocOpe_Gluer
42{
43public:
44
45 DEFINE_STANDARD_ALLOC
46
47
48 LocOpe_Gluer();
49
50 LocOpe_Gluer(const TopoDS_Shape& Sbase, const TopoDS_Shape& Snew);
51
52 Standard_EXPORT void Init (const TopoDS_Shape& Sbase, const TopoDS_Shape& Snew);
53
54 Standard_EXPORT void Bind (const TopoDS_Face& Fnew, const TopoDS_Face& Fbase);
55
56 Standard_EXPORT void Bind (const TopoDS_Edge& Enew, const TopoDS_Edge& Ebase);
57
58 LocOpe_Operation OpeType() const;
59
60 Standard_EXPORT void Perform();
61
62 Standard_Boolean IsDone() const;
63
64 const TopoDS_Shape& ResultingShape() const;
65
66 Standard_EXPORT const TopTools_ListOfShape& DescendantFaces (const TopoDS_Face& F) const;
67
68 const TopoDS_Shape& BasisShape() const;
69
70 const TopoDS_Shape& GluedShape() const;
71
0f57ab75 72 const TopTools_ListOfShape& Edges() const;
42cf5bc1 73
0f57ab75 74 const TopTools_ListOfShape& TgtEdges() const;
42cf5bc1 75
76
77
78
79protected:
80
81
82
83
84
85private:
86
87
88 Standard_EXPORT void AddEdges();
89
90
91 Standard_Boolean myDone;
92 TopoDS_Shape mySb;
93 TopoDS_Shape mySn;
94 TopoDS_Shape myRes;
95 TopAbs_Orientation myOri;
96 LocOpe_Operation myOpe;
97 TopTools_IndexedDataMapOfShapeShape myMapEF;
98 TopTools_DataMapOfShapeShape myMapEE;
99 TopTools_DataMapOfShapeListOfShape myDescF;
100 TopTools_ListOfShape myEdges;
101 TopTools_ListOfShape myTgtEdges;
102
103
104};
105
106
107#include <LocOpe_Gluer.lxx>
108
109
110
111
112
113#endif // _LocOpe_Gluer_HeaderFile