b311480e |
1 | // Created on: 1993-01-11 |
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 <TColStd_HArray1OfInteger.hxx> |
18 | #include <TColStd_HArray1OfBoolean.hxx> |
19 | #include <TColStd_HArray1OfReal.hxx> |
20 | #include <TColgp_HArray1OfPnt.hxx> |
21 | #include <TColgp_HArray1OfPnt2d.hxx> |
22 | #include <TColgp_HArray1OfDir.hxx> |
23 | #include <HLRAlgo_HArray1OfTData.hxx> |
24 | #include <HLRAlgo_HArray1OfPISeg.hxx> |
25 | #include <HLRAlgo_HArray1OfPINod.hxx> |
26 | |
27 | //======================================================================= |
28 | //function : DecTData |
29 | //purpose : |
30 | //======================================================================= |
31 | |
32 | inline void HLRAlgo_PolyInternalData::DecTData () |
33 | { myNbTData--; } |
34 | |
35 | //======================================================================= |
36 | //function : DecPISeg |
37 | //purpose : |
38 | //======================================================================= |
39 | |
40 | inline void HLRAlgo_PolyInternalData::DecPISeg () |
41 | { myNbPISeg--; } |
42 | |
43 | //======================================================================= |
44 | //function : DecPINod |
45 | //purpose : |
46 | //======================================================================= |
47 | |
48 | inline void HLRAlgo_PolyInternalData::DecPINod () |
49 | { myNbPINod--; } |
50 | |
51 | //======================================================================= |
52 | //function : NbTData |
53 | //purpose : |
54 | //======================================================================= |
55 | |
56 | inline Standard_Integer |
57 | HLRAlgo_PolyInternalData::NbTData () const |
58 | { return myNbTData; } |
59 | |
60 | //======================================================================= |
61 | //function : NbPISeg |
62 | //purpose : |
63 | //======================================================================= |
64 | |
65 | inline Standard_Integer |
66 | HLRAlgo_PolyInternalData::NbPISeg () const |
67 | { return myNbPISeg; } |
68 | |
69 | //======================================================================= |
70 | //function : NbPINod |
71 | //purpose : |
72 | //======================================================================= |
73 | |
74 | inline Standard_Integer |
75 | HLRAlgo_PolyInternalData::NbPINod () const |
76 | { return myNbPINod; } |
77 | |
78 | //======================================================================= |
79 | //function : Planar |
80 | //purpose : |
81 | //======================================================================= |
82 | |
83 | inline Standard_Boolean |
84 | HLRAlgo_PolyInternalData::Planar () const |
85 | { return myPlanar; } |
86 | |
87 | //======================================================================= |
88 | //function : Planar |
89 | //purpose : |
90 | //======================================================================= |
91 | |
92 | inline void |
93 | HLRAlgo_PolyInternalData::Planar (const Standard_Boolean B) |
94 | { myPlanar = B; } |
95 | |
96 | //======================================================================= |
97 | //function : IntOutL |
98 | //purpose : |
99 | //======================================================================= |
100 | |
101 | inline Standard_Boolean |
102 | HLRAlgo_PolyInternalData::IntOutL () const |
103 | { return myIntOutL; } |
104 | |
105 | //======================================================================= |
106 | //function : IntOutL |
107 | //purpose : |
108 | //======================================================================= |
109 | |
110 | inline void |
111 | HLRAlgo_PolyInternalData::IntOutL (const Standard_Boolean B) |
112 | { myIntOutL = B; } |
113 | |
114 | //======================================================================= |
115 | //function : TData |
116 | //purpose : |
117 | //======================================================================= |
118 | |
119 | inline HLRAlgo_Array1OfTData & |
120 | HLRAlgo_PolyInternalData::TData () const |
121 | { return myTData->ChangeArray1(); } |
122 | |
123 | //======================================================================= |
124 | //function : PINod |
125 | //purpose : |
126 | //======================================================================= |
127 | |
128 | inline HLRAlgo_Array1OfPINod & |
129 | HLRAlgo_PolyInternalData::PINod () const |
130 | { return myPINod->ChangeArray1(); } |
131 | |
132 | //======================================================================= |
133 | //function : PISeg |
134 | //purpose : |
135 | //======================================================================= |
136 | |
137 | inline HLRAlgo_Array1OfPISeg & |
138 | HLRAlgo_PolyInternalData::PISeg () const |
139 | { return myPISeg->ChangeArray1(); } |