b311480e |
1 | // Created on: 1995-06-15 |
2 | // Created by: Christophe MARION |
3 | // Copyright (c) 1995-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 <HLRAlgo_PolyAlgo.hxx> |
18 | |
19 | //======================================================================= |
20 | //function : NbShapes |
21 | //purpose : |
22 | //======================================================================= |
23 | |
24 | inline Standard_Integer HLRBRep_PolyAlgo::NbShapes () const |
25 | { return myShapes.Length(); } |
26 | |
27 | //======================================================================= |
28 | //function : Load |
29 | //purpose : |
30 | //======================================================================= |
31 | |
32 | inline void HLRBRep_PolyAlgo::Load (const TopoDS_Shape& S) |
33 | { myShapes.Append(S); } |
34 | |
35 | //======================================================================= |
36 | //function : Projector |
37 | //purpose : |
38 | //======================================================================= |
39 | |
40 | inline const HLRAlgo_Projector & HLRBRep_PolyAlgo::Projector () const |
41 | { return myProj; } |
42 | |
43 | //======================================================================= |
44 | //function : Projector |
45 | //purpose : |
46 | //======================================================================= |
47 | |
48 | inline void HLRBRep_PolyAlgo::Projector (const HLRAlgo_Projector& P) |
49 | { myProj = P; } |
50 | |
51 | //======================================================================= |
52 | //function : Angle |
53 | //purpose : |
54 | //======================================================================= |
55 | |
56 | inline Standard_Real HLRBRep_PolyAlgo::Angle () const |
57 | { return myAngle; } |
58 | |
59 | //======================================================================= |
60 | //function : Angle |
61 | //purpose : |
62 | //======================================================================= |
63 | |
64 | inline void HLRBRep_PolyAlgo::Angle (const Standard_Real Ang) |
65 | { myAngle = Ang; } |
66 | |
67 | //======================================================================= |
68 | //function : TolAngular |
69 | //purpose : |
70 | //======================================================================= |
71 | |
72 | inline Standard_Real HLRBRep_PolyAlgo::TolAngular () const |
73 | { return myTolAngular; } |
74 | |
75 | //======================================================================= |
76 | //function : TolAngular |
77 | //purpose : |
78 | //======================================================================= |
79 | |
80 | inline void HLRBRep_PolyAlgo::TolAngular (const Standard_Real Tol) |
81 | { myTolAngular = Tol; } |
82 | |
83 | //======================================================================= |
84 | //function : TolCoef |
85 | //purpose : |
86 | //======================================================================= |
87 | |
88 | inline Standard_Real HLRBRep_PolyAlgo::TolCoef () const |
89 | { return myTolSta; } |
90 | |
91 | //======================================================================= |
92 | //function : TolCoef |
93 | //purpose : |
94 | //======================================================================= |
95 | |
96 | inline void HLRBRep_PolyAlgo::TolCoef (const Standard_Real Tol) |
97 | { myTolSta = Tol; myTolEnd = 1 - Tol;} |
98 | |
99 | //======================================================================= |
100 | //function : InitHide |
101 | //purpose : |
102 | //======================================================================= |
103 | |
104 | inline void HLRBRep_PolyAlgo::InitHide () |
105 | { |
106 | myAlgo->InitHide(); |
107 | } |
108 | |
109 | //======================================================================= |
110 | //function : MoreHide |
111 | //purpose : |
112 | //======================================================================= |
113 | |
114 | inline Standard_Boolean HLRBRep_PolyAlgo::MoreHide () const |
115 | { return myAlgo->MoreHide(); } |
116 | |
117 | //======================================================================= |
118 | //function : NextHide |
119 | //purpose : |
120 | //======================================================================= |
121 | |
122 | inline void HLRBRep_PolyAlgo::NextHide () |
123 | { myAlgo->NextHide(); } |
124 | |
125 | //======================================================================= |
126 | //function : InitShow |
127 | //purpose : |
128 | //======================================================================= |
129 | |
130 | inline void HLRBRep_PolyAlgo::InitShow () |
131 | { myAlgo->InitShow(); } |
132 | |
133 | //======================================================================= |
134 | //function : MoreShow |
135 | //purpose : |
136 | //======================================================================= |
137 | |
138 | inline Standard_Boolean HLRBRep_PolyAlgo::MoreShow () const |
139 | { return myAlgo->MoreShow(); } |
140 | |
141 | //======================================================================= |
142 | //function : NextShow |
143 | //purpose : |
144 | //======================================================================= |
145 | |
146 | inline void HLRBRep_PolyAlgo::NextShow () |
147 | { myAlgo->NextShow(); } |
148 | |
149 | //======================================================================= |
150 | //function : Debug |
151 | //purpose : |
152 | //======================================================================= |
153 | |
154 | inline Standard_Boolean HLRBRep_PolyAlgo::Debug () const |
155 | { return myDebug; } |
156 | |
157 | //======================================================================= |
158 | //function : Debug |
159 | //purpose : |
160 | //======================================================================= |
161 | |
162 | inline void HLRBRep_PolyAlgo::Debug (const Standard_Boolean B) |
163 | { myDebug = B; } |