b311480e |
1 | // Created on: 1993-11-02 |
2 | // Created by: Christophe MARION |
3 | // Copyright (c) 1993-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 <TopoDS_Shape.hxx> |
18 | |
19 | //======================================================================= |
20 | //function : Show |
21 | //purpose : |
22 | //======================================================================= |
23 | |
24 | inline void HLRBRep_PolyHLRToShape::Show() |
25 | { myHideMode = Standard_False; } |
26 | |
27 | //======================================================================= |
28 | //function : Hide |
29 | //purpose : |
30 | //======================================================================= |
31 | |
32 | inline void HLRBRep_PolyHLRToShape::Hide() |
33 | { myHideMode = Standard_True; } |
34 | |
35 | //======================================================================= |
36 | //function : VCompound |
37 | //purpose : |
38 | //======================================================================= |
39 | |
40 | inline TopoDS_Shape HLRBRep_PolyHLRToShape::VCompound() |
41 | { return InternalCompound(4,Standard_True,TopoDS_Shape()); } |
42 | |
43 | //======================================================================= |
44 | //function : VCompound |
45 | //purpose : |
46 | //======================================================================= |
47 | |
48 | inline TopoDS_Shape |
49 | HLRBRep_PolyHLRToShape::VCompound(const TopoDS_Shape& S) |
50 | { return InternalCompound(4,Standard_True,S); } |
51 | |
52 | //======================================================================= |
53 | //function : Rg1LineVCompound |
54 | //purpose : |
55 | //======================================================================= |
56 | |
57 | inline TopoDS_Shape HLRBRep_PolyHLRToShape::Rg1LineVCompound() |
58 | { return InternalCompound(2,Standard_True,TopoDS_Shape()); } |
59 | |
60 | //======================================================================= |
61 | //function : Rg1LineVCompound |
62 | //purpose : |
63 | //======================================================================= |
64 | |
65 | inline TopoDS_Shape |
66 | HLRBRep_PolyHLRToShape::Rg1LineVCompound(const TopoDS_Shape& S) |
67 | { return InternalCompound(2,Standard_True,S); } |
68 | |
69 | //======================================================================= |
70 | //function : RgNLineVCompound |
71 | //purpose : |
72 | //======================================================================= |
73 | |
74 | inline TopoDS_Shape HLRBRep_PolyHLRToShape::RgNLineVCompound() |
75 | { return InternalCompound(3,Standard_True,TopoDS_Shape()); } |
76 | |
77 | //======================================================================= |
78 | //function : RgNLineVCompound |
79 | //purpose : |
80 | //======================================================================= |
81 | |
82 | inline TopoDS_Shape |
83 | HLRBRep_PolyHLRToShape::RgNLineVCompound(const TopoDS_Shape& S) |
84 | { return InternalCompound(3,Standard_True,S); } |
85 | |
86 | //======================================================================= |
87 | //function : OutLineVCompound |
88 | //purpose : |
89 | //======================================================================= |
90 | |
91 | inline TopoDS_Shape HLRBRep_PolyHLRToShape::OutLineVCompound() |
92 | { return InternalCompound(1,Standard_True,TopoDS_Shape()); } |
93 | |
94 | //======================================================================= |
95 | //function : OutLineVCompound |
96 | //purpose : |
97 | //======================================================================= |
98 | |
99 | inline TopoDS_Shape |
100 | HLRBRep_PolyHLRToShape::OutLineVCompound(const TopoDS_Shape& S) |
101 | { return InternalCompound(1,Standard_True,S); } |
102 | |
103 | //======================================================================= |
104 | //function : HCompound |
105 | //purpose : |
106 | //======================================================================= |
107 | |
108 | inline TopoDS_Shape HLRBRep_PolyHLRToShape::HCompound() |
109 | { return InternalCompound(4,Standard_False,TopoDS_Shape()); } |
110 | |
111 | //======================================================================= |
112 | //function : HCompound |
113 | //purpose : |
114 | //======================================================================= |
115 | |
116 | inline TopoDS_Shape |
117 | HLRBRep_PolyHLRToShape::HCompound(const TopoDS_Shape& S) |
118 | { return InternalCompound(4,Standard_False,S); } |
119 | |
120 | //======================================================================= |
121 | //function : Rg1LineHCompound |
122 | //purpose : |
123 | //======================================================================= |
124 | |
125 | inline TopoDS_Shape HLRBRep_PolyHLRToShape::Rg1LineHCompound() |
126 | { return InternalCompound(2,Standard_False,TopoDS_Shape()); } |
127 | |
128 | //======================================================================= |
129 | //function : Rg1LineHCompound |
130 | //purpose : |
131 | //======================================================================= |
132 | |
133 | inline TopoDS_Shape |
134 | HLRBRep_PolyHLRToShape::Rg1LineHCompound(const TopoDS_Shape& S) |
135 | { return InternalCompound(2,Standard_False,S); } |
136 | |
137 | //======================================================================= |
138 | //function : RgNLineHCompound |
139 | //purpose : |
140 | //======================================================================= |
141 | |
142 | inline TopoDS_Shape HLRBRep_PolyHLRToShape::RgNLineHCompound() |
143 | { return InternalCompound(3,Standard_False,TopoDS_Shape()); } |
144 | |
145 | //======================================================================= |
146 | //function : RgNLineHCompound |
147 | //purpose : |
148 | //======================================================================= |
149 | |
150 | inline TopoDS_Shape |
151 | HLRBRep_PolyHLRToShape::RgNLineHCompound(const TopoDS_Shape& S) |
152 | { return InternalCompound(3,Standard_False,S); } |
153 | |
154 | //======================================================================= |
155 | //function : OutLineHCompound |
156 | //purpose : |
157 | //======================================================================= |
158 | |
159 | inline TopoDS_Shape HLRBRep_PolyHLRToShape::OutLineHCompound() |
160 | { return InternalCompound(1,Standard_False,TopoDS_Shape()); } |
161 | |
162 | //======================================================================= |
163 | //function : OutLineHCompound |
164 | //purpose : |
165 | //======================================================================= |
166 | |
167 | inline TopoDS_Shape |
168 | HLRBRep_PolyHLRToShape::OutLineHCompound(const TopoDS_Shape& S) |
169 | { return InternalCompound(1,Standard_False,S); } |