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
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _HLRAlgo_EdgesBlock_HeaderFile
18 #define _HLRAlgo_EdgesBlock_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
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>
32 class HLRAlgo_EdgesBlock;
33 DEFINE_STANDARD_HANDLE(HLRAlgo_EdgesBlock, MMgt_TShared)
35 //! An EdgesBlock is a set of Edges. It is used by the
36 //! DataStructure to structure the Edges.
38 //! An EdgesBlock contains :
40 //! * An Array of index of Edges.
42 //! * An Array of flagsf ( Orientation
47 class HLRAlgo_EdgesBlock : public MMgt_TShared
53 //! Create a Block of Edges for a wire.
54 Standard_EXPORT HLRAlgo_EdgesBlock(const Standard_Integer NbEdges);
56 Standard_Integer NbEdges() const;
58 void Edge (const Standard_Integer I, const Standard_Integer EI);
60 Standard_Integer Edge (const Standard_Integer I) const;
62 void Orientation (const Standard_Integer I, const TopAbs_Orientation Or);
64 TopAbs_Orientation Orientation (const Standard_Integer I) const;
66 Standard_Boolean OutLine (const Standard_Integer I) const;
68 void OutLine (const Standard_Integer I, const Standard_Boolean B);
70 Standard_Boolean Internal (const Standard_Integer I) const;
72 void Internal (const Standard_Integer I, const Standard_Boolean B);
74 Standard_Boolean Double (const Standard_Integer I) const;
76 void Double (const Standard_Integer I, const Standard_Boolean B);
78 Standard_Boolean IsoLine (const Standard_Integer I) const;
80 void IsoLine (const Standard_Integer I, const Standard_Boolean B);
82 Standard_EXPORT void UpdateMinMax (const Standard_Address TotMinMax);
84 Standard_Address MinMax() const;
89 DEFINE_STANDARD_RTTIEXT(HLRAlgo_EdgesBlock,MMgt_TShared)
99 TColStd_Array1OfInteger myEdges;
100 TColStd_Array1OfBoolean myFlags;
101 Standard_Integer myMinMax[16];
107 #include <HLRAlgo_EdgesBlock.lxx>
113 #endif // _HLRAlgo_EdgesBlock_HeaderFile