1 // Created on: 1994-10-07
2 // Created by: Yves FRICAUD
3 // Copyright (c) 1994-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 _BRepMAT2d_LinkTopoBilo_HeaderFile
18 #define _BRepMAT2d_LinkTopoBilo_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <BRepMAT2d_DataMapOfShapeSequenceOfBasicElt.hxx>
25 #include <BRepMAT2d_DataMapOfBasicEltShape.hxx>
26 #include <TopoDS_Shape.hxx>
27 #include <Standard_Integer.hxx>
28 #include <Standard_Boolean.hxx>
29 class Standard_ConstructionError;
30 class BRepMAT2d_Explorer;
31 class BRepMAT2d_BisectingLocus;
37 //! Constucts links between the Wire or the Face of the explorer and
38 //! the BasicElts contained in the bisecting locus.
39 class BRepMAT2d_LinkTopoBilo
46 Standard_EXPORT BRepMAT2d_LinkTopoBilo();
48 //! Constructs the links Between S and BiLo.
50 //! raises if <S> is not a face.
51 Standard_EXPORT BRepMAT2d_LinkTopoBilo(const BRepMAT2d_Explorer& Explo, const BRepMAT2d_BisectingLocus& BiLo);
53 //! Constructs the links Between S and BiLo.
55 //! raises if <S> is not a face or a wire.
56 Standard_EXPORT void Perform (const BRepMAT2d_Explorer& Explo, const BRepMAT2d_BisectingLocus& BiLo);
58 //! Initialise the Iterator on <S>
59 //! <S> is an edge or a vertex of the initial
61 //! raises if <S> is not an edge or a vertex.
62 Standard_EXPORT void Init (const TopoDS_Shape& S);
64 //! Returns True if there is a current BasicElt.
65 Standard_EXPORT Standard_Boolean More();
67 //! Proceed to the next BasicElt.
68 Standard_EXPORT void Next();
70 //! Returns the current BasicElt.
71 Standard_EXPORT Handle(MAT_BasicElt) Value() const;
73 //! Returns the Shape linked to <aBE>.
74 Standard_EXPORT TopoDS_Shape GeneratingShape (const Handle(MAT_BasicElt)& aBE) const;
88 Standard_EXPORT void LinkToWire (const TopoDS_Wire& W, const BRepMAT2d_Explorer& Explo, const Standard_Integer IndexContour, const BRepMAT2d_BisectingLocus& BiLo);
91 BRepMAT2d_DataMapOfShapeSequenceOfBasicElt myMap;
92 BRepMAT2d_DataMapOfBasicEltShape myBEShape;
94 Standard_Integer current;
95 Standard_Boolean isEmpty;
106 #endif // _BRepMAT2d_LinkTopoBilo_HeaderFile