3aa1286f451b69d553514c8b8f9cbb6b30a01d5d
[occt.git] / src / HLRAlgo / HLRAlgo_EdgesBlock.hxx
1 // Created on: 1992-04-06
2 // Created by: Christophe MARION
3 // Copyright (c) 1992-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_EdgesBlock_HeaderFile
18 #define _HLRAlgo_EdgesBlock_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
22
23 #include <TColStd_Array1OfInteger.hxx>
24 #include <TColStd_Array1OfBoolean.hxx>
25 #include <Standard_Integer.hxx>
26 #include <MMgt_TShared.hxx>
27 #include <TopAbs_Orientation.hxx>
28 #include <Standard_Boolean.hxx>
29 #include <Standard_Address.hxx>
30
31
32 class HLRAlgo_EdgesBlock;
33 DEFINE_STANDARD_HANDLE(HLRAlgo_EdgesBlock, MMgt_TShared)
34
35 //! An EdgesBlock is a set of Edges. It is used by the
36 //! DataStructure to structure the Edges.
37 //!
38 //! An EdgesBlock contains :
39 //!
40 //! * An Array  of index of Edges.
41 //!
42 //! * An Array of flagsf ( Orientation
43 //! OutLine
44 //! Internal
45 //! Double
46 //! IsoLine)
47 class HLRAlgo_EdgesBlock : public MMgt_TShared
48 {
49
50 public:
51
52   
53   //! Create a Block of Edges for a wire.
54   Standard_EXPORT HLRAlgo_EdgesBlock(const Standard_Integer NbEdges);
55   
56     Standard_Integer NbEdges() const;
57   
58     void Edge (const Standard_Integer I, const Standard_Integer EI);
59   
60     Standard_Integer Edge (const Standard_Integer I) const;
61   
62     void Orientation (const Standard_Integer I, const TopAbs_Orientation Or);
63   
64     TopAbs_Orientation Orientation (const Standard_Integer I) const;
65   
66     Standard_Boolean OutLine (const Standard_Integer I) const;
67   
68     void OutLine (const Standard_Integer I, const Standard_Boolean B);
69   
70     Standard_Boolean Internal (const Standard_Integer I) const;
71   
72     void Internal (const Standard_Integer I, const Standard_Boolean B);
73   
74     Standard_Boolean Double (const Standard_Integer I) const;
75   
76     void Double (const Standard_Integer I, const Standard_Boolean B);
77   
78     Standard_Boolean IsoLine (const Standard_Integer I) const;
79   
80     void IsoLine (const Standard_Integer I, const Standard_Boolean B);
81   
82   Standard_EXPORT void UpdateMinMax (const Standard_Address TotMinMax);
83   
84     Standard_Address MinMax() const;
85
86
87
88
89   DEFINE_STANDARD_RTTIEXT(HLRAlgo_EdgesBlock,MMgt_TShared)
90
91 protected:
92
93
94
95
96 private:
97
98
99   TColStd_Array1OfInteger myEdges;
100   TColStd_Array1OfBoolean myFlags;
101   Standard_Integer myMinMax[16];
102
103
104 };
105
106
107 #include <HLRAlgo_EdgesBlock.lxx>
108
109
110
111
112
113 #endif // _HLRAlgo_EdgesBlock_HeaderFile