0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / src / BRepMAT2d / BRepMAT2d_LinkTopoBilo.hxx
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
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 _BRepMAT2d_LinkTopoBilo_HeaderFile
18 #define _BRepMAT2d_LinkTopoBilo_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
23
24 #include <BRepMAT2d_DataMapOfShapeSequenceOfBasicElt.hxx>
25 #include <BRepMAT2d_DataMapOfBasicEltShape.hxx>
26 #include <TopoDS_Shape.hxx>
27 #include <Standard_Integer.hxx>
28 class BRepMAT2d_Explorer;
29 class BRepMAT2d_BisectingLocus;
30 class MAT_BasicElt;
31 class TopoDS_Wire;
32
33
34 //! Constructs links between the Wire or the Face of the explorer and
35 //! the BasicElts contained in the bisecting locus.
36 class BRepMAT2d_LinkTopoBilo 
37 {
38 public:
39
40   DEFINE_STANDARD_ALLOC
41
42   
43   Standard_EXPORT BRepMAT2d_LinkTopoBilo();
44   
45   //! Constructs the links Between S and BiLo.
46   //!
47   //! raises if <S> is not a face.
48   Standard_EXPORT BRepMAT2d_LinkTopoBilo(const BRepMAT2d_Explorer& Explo, const BRepMAT2d_BisectingLocus& BiLo);
49   
50   //! Constructs the links Between S and BiLo.
51   //!
52   //! raises if <S> is not a face or a wire.
53   Standard_EXPORT void Perform (const BRepMAT2d_Explorer& Explo, const BRepMAT2d_BisectingLocus& BiLo);
54   
55   //! Initialise the Iterator on <S>
56   //! <S> is an edge or a vertex of the initial
57   //! wire or face.
58   //! raises if <S> is not an edge or a vertex.
59   Standard_EXPORT void Init (const TopoDS_Shape& S);
60   
61   //! Returns True if there  is a current  BasicElt.
62   Standard_EXPORT Standard_Boolean More();
63   
64   //! Proceed to the next BasicElt.
65   Standard_EXPORT void Next();
66   
67   //! Returns the current BasicElt.
68   Standard_EXPORT Handle(MAT_BasicElt) Value() const;
69   
70   //! Returns the Shape linked to <aBE>.
71   Standard_EXPORT TopoDS_Shape GeneratingShape (const Handle(MAT_BasicElt)& aBE) const;
72
73
74
75
76 protected:
77
78
79
80
81
82 private:
83
84   
85   Standard_EXPORT void LinkToWire (const TopoDS_Wire& W, const BRepMAT2d_Explorer& Explo, const Standard_Integer IndexContour, const BRepMAT2d_BisectingLocus& BiLo);
86
87
88   BRepMAT2d_DataMapOfShapeSequenceOfBasicElt myMap;
89   BRepMAT2d_DataMapOfBasicEltShape myBEShape;
90   TopoDS_Shape myKey;
91   Standard_Integer current;
92   Standard_Boolean isEmpty;
93
94
95 };
96
97
98
99
100
101
102
103 #endif // _BRepMAT2d_LinkTopoBilo_HeaderFile