0026936: Drawbacks of inlining in new type system in OCCT 7.0 -- automatic
[occt.git] / src / HLRAlgo / HLRAlgo_PolyInternalData.hxx
1 // Created on: 1993-10-29
2 // Created by: Christophe MARION
3 // Copyright (c) 1993-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 _HLRAlgo_PolyInternalData_HeaderFile
18 #define _HLRAlgo_PolyInternalData_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
22
23 #include <Standard_Integer.hxx>
24 #include <Standard_Boolean.hxx>
25 #include <HLRAlgo_HArray1OfTData.hxx>
26 #include <HLRAlgo_HArray1OfPISeg.hxx>
27 #include <HLRAlgo_HArray1OfPINod.hxx>
28 #include <MMgt_TShared.hxx>
29 #include <Standard_Address.hxx>
30 #include <Standard_Real.hxx>
31 #include <HLRAlgo_Array1OfTData.hxx>
32 #include <HLRAlgo_Array1OfPISeg.hxx>
33 #include <HLRAlgo_Array1OfPINod.hxx>
34
35
36 class HLRAlgo_PolyInternalData;
37 DEFINE_STANDARD_HANDLE(HLRAlgo_PolyInternalData, MMgt_TShared)
38
39 //! to Update OutLines.
40 class HLRAlgo_PolyInternalData : public MMgt_TShared
41 {
42
43 public:
44
45   
46   Standard_EXPORT HLRAlgo_PolyInternalData(const Standard_Integer nbNod, const Standard_Integer nbTri);
47   
48   Standard_EXPORT void UpdateLinks (Standard_Address& TData, Standard_Address& PISeg, Standard_Address& PINod);
49   
50   Standard_EXPORT Standard_Integer AddNode (const Standard_Address Nod1RValues, const Standard_Address Nod2RValues, Standard_Address& PINod1, Standard_Address& PINod2, const Standard_Real coef1, const Standard_Real X3, const Standard_Real Y3, const Standard_Real Z3);
51   
52   Standard_EXPORT void UpdateLinks (const Standard_Integer ip1, const Standard_Integer ip2, const Standard_Integer ip3, Standard_Address& TData1, Standard_Address& TData2, Standard_Address& PISeg1, Standard_Address& PISeg2, Standard_Address& PINod1, Standard_Address& PINod2);
53   
54   Standard_EXPORT void Dump() const;
55   
56   Standard_EXPORT void IncTData (Standard_Address& TData1, Standard_Address& TData2);
57   
58   Standard_EXPORT void IncPISeg (Standard_Address& PISeg1, Standard_Address& PISeg2);
59   
60   Standard_EXPORT void IncPINod (Standard_Address& PINod1, Standard_Address& PINod2);
61   
62     void DecTData();
63   
64     void DecPISeg();
65   
66     void DecPINod();
67   
68     Standard_Integer NbTData() const;
69   
70     Standard_Integer NbPISeg() const;
71   
72     Standard_Integer NbPINod() const;
73   
74     Standard_Boolean Planar() const;
75   
76     void Planar (const Standard_Boolean B);
77   
78     Standard_Boolean IntOutL() const;
79   
80     void IntOutL (const Standard_Boolean B);
81   
82     HLRAlgo_Array1OfTData& TData() const;
83   
84     HLRAlgo_Array1OfPISeg& PISeg() const;
85   
86     HLRAlgo_Array1OfPINod& PINod() const;
87
88
89
90
91   DEFINE_STANDARD_RTTIEXT(HLRAlgo_PolyInternalData,MMgt_TShared)
92
93 protected:
94
95
96
97
98 private:
99
100
101   Standard_Integer myNbTData;
102   Standard_Integer myNbPISeg;
103   Standard_Integer myNbPINod;
104   Standard_Integer myMxTData;
105   Standard_Integer myMxPISeg;
106   Standard_Integer myMxPINod;
107   Standard_Boolean myIntOutL;
108   Standard_Boolean myPlanar;
109   Handle(HLRAlgo_HArray1OfTData) myTData;
110   Handle(HLRAlgo_HArray1OfPISeg) myPISeg;
111   Handle(HLRAlgo_HArray1OfPINod) myPINod;
112
113
114 };
115
116
117 #include <HLRAlgo_PolyInternalData.lxx>
118
119
120
121
122
123 #endif // _HLRAlgo_PolyInternalData_HeaderFile