0027961: Visualization - remove unused and no more working OpenGl_AVIWriter
[occt.git] / src / BRepFeat / BRepFeat_SplitShape.lxx
1 // Created on: 1995-09-04
2 // Created by: Jacques GOUSSARD
3 // Copyright (c) 1995-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 <LocOpe_WiresOnShape.hxx>
18
19
20 //=======================================================================
21 //function : BRepFeat_SplitShape
22 //purpose  : 
23 //=======================================================================
24
25 inline BRepFeat_SplitShape::BRepFeat_SplitShape () {}
26
27
28
29
30 //=======================================================================
31 //function : BRepFeat_SplitShape
32 //purpose  : 
33 //=======================================================================
34
35 inline BRepFeat_SplitShape::BRepFeat_SplitShape (const TopoDS_Shape& S) :
36    mySShape(S)
37 {
38   myWOnShape = new LocOpe_WiresOnShape(S);
39 }
40
41 //=======================================================================
42 //function :  Add
43 //purpose  : 
44 //=======================================================================
45  inline Standard_Boolean BRepFeat_SplitShape::Add(const TopTools_SequenceOfShape& theEdges)
46  {
47    return myWOnShape->Add(theEdges);
48  }
49
50 //=======================================================================
51 //function : Init
52 //purpose  : 
53 //=======================================================================
54
55 inline void BRepFeat_SplitShape::Init(const TopoDS_Shape& S)
56 {
57   mySShape.Init(S);
58   if (myWOnShape.IsNull()) {
59     myWOnShape = new LocOpe_WiresOnShape(S);
60   }
61   else {
62     myWOnShape->Init(S);
63   }
64 }
65
66 //=======================================================================
67 //function : SetCheckInterior
68 //purpose  : 
69 //=======================================================================
70
71 inline void BRepFeat_SplitShape::SetCheckInterior(const Standard_Boolean ToCheckInterior)
72 {
73   myWOnShape->SetCheckInterior(ToCheckInterior);
74 }
75
76 //=======================================================================
77 //function : Add
78 //purpose  : 
79 //=======================================================================
80
81 inline void BRepFeat_SplitShape::Add(const TopoDS_Wire& W,
82                                      const TopoDS_Face& F)
83 {
84   myWOnShape->Bind(W,F);
85 }
86
87
88 //=======================================================================
89 //function : Add
90 //purpose  : 
91 //=======================================================================
92
93 inline void BRepFeat_SplitShape::Add(const TopoDS_Edge& E,
94                                      const TopoDS_Face& F)
95 {
96   myWOnShape->Bind(E,F);
97 }
98
99 //=======================================================================
100 //function : Add
101 //purpose  : 
102 //=======================================================================
103
104 inline void BRepFeat_SplitShape::Add(const TopoDS_Compound& Comp,
105                                      const TopoDS_Face& F)
106 {
107   myWOnShape->Bind(Comp,F);
108 }
109
110
111 //=======================================================================
112 //function : Add
113 //purpose  : 
114 //=======================================================================
115
116 inline void BRepFeat_SplitShape::Add(const TopoDS_Edge& E,
117                                      const TopoDS_Edge& EOn)
118 {
119   myWOnShape->Bind(E,EOn);
120 }
121
122