summaryrefslogtreecommitdiff
path: root/inc/BRepMAT2d_LinkTopoBilo.hxx
blob: 03f80a27f242de0a0a3437074e9780c5ba28a0d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _BRepMAT2d_LinkTopoBilo_HeaderFile
#define _BRepMAT2d_LinkTopoBilo_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif

#ifndef _BRepMAT2d_DataMapOfShapeSequenceOfBasicElt_HeaderFile
#include <BRepMAT2d_DataMapOfShapeSequenceOfBasicElt.hxx>
#endif
#ifndef _BRepMAT2d_DataMapOfBasicEltShape_HeaderFile
#include <BRepMAT2d_DataMapOfBasicEltShape.hxx>
#endif
#ifndef _TopoDS_Shape_HeaderFile
#include <TopoDS_Shape.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Handle_MAT_BasicElt_HeaderFile
#include <Handle_MAT_BasicElt.hxx>
#endif
class Standard_ConstructionError;
class BRepMAT2d_Explorer;
class BRepMAT2d_BisectingLocus;
class TopoDS_Shape;
class MAT_BasicElt;
class TopoDS_Wire;


//!Constucts links between the Face of the explorer and <br>
//!         the BasicElts contained in the bisecting locus. <br>
class BRepMAT2d_LinkTopoBilo  {
public:

  void* operator new(size_t,void* anAddress) 
  {
    return anAddress;
  }
  void* operator new(size_t size) 
  {
    return Standard::Allocate(size); 
  }
  void  operator delete(void *anAddress) 
  {
    if (anAddress) Standard::Free((Standard_Address&)anAddress); 
  }

  
  Standard_EXPORT   BRepMAT2d_LinkTopoBilo();
  //! Constructs the links Between S and BiLo. <br>
//! <br>//! raises if <S> is not a face. <br>
  Standard_EXPORT   BRepMAT2d_LinkTopoBilo(const BRepMAT2d_Explorer& Explo,const BRepMAT2d_BisectingLocus& BiLo);
  //! Constructs the links Between S and BiLo. <br>
//! <br>//! raises if <S> is not a face or a wire. <br>
  Standard_EXPORT     void Perform(const BRepMAT2d_Explorer& Explo,const BRepMAT2d_BisectingLocus& BiLo) ;
  //! Initialise the Iterator on <S> <br>
//!          <S> is an edge or a vertex of the initial <br>
//!          wire or face. <br>//! raises if <S> is not an edge or a vertex. <br>
  Standard_EXPORT     void Init(const TopoDS_Shape& S) ;
  //! Returns True if there  is a current  BasicElt. <br>
  Standard_EXPORT     Standard_Boolean More() ;
  //! Proceed to the next BasicElt. <br>
  Standard_EXPORT     void Next() ;
  //! Returns the current BasicElt. <br>
  Standard_EXPORT     Handle_MAT_BasicElt Value() const;
  //! Returns the Shape linked to <aBE>. <br>
  Standard_EXPORT     TopoDS_Shape GeneratingShape(const Handle(MAT_BasicElt)& aBE) const;





protected:





private:

  
  Standard_EXPORT     void LinkToWire(const TopoDS_Wire& W,const BRepMAT2d_Explorer& Explo,const Standard_Integer IndexContour,const BRepMAT2d_BisectingLocus& BiLo) ;


BRepMAT2d_DataMapOfShapeSequenceOfBasicElt myMap;
BRepMAT2d_DataMapOfBasicEltShape myBEShape;
TopoDS_Shape myKey;
Standard_Integer current;
Standard_Boolean isEmpty;


};





// other Inline functions and methods (like "C++: function call" methods)


#endif