summaryrefslogtreecommitdiff
path: root/inc/LocOpe_WiresOnShape.hxx
blob: c4337f54f0fbbeeb3eb5992af80aa5a79ef5507d (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
114
115
116
117
118
119
120
// 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 _LocOpe_WiresOnShape_HeaderFile
#define _LocOpe_WiresOnShape_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_LocOpe_WiresOnShape_HeaderFile
#include <Handle_LocOpe_WiresOnShape.hxx>
#endif

#ifndef _TopoDS_Shape_HeaderFile
#include <TopoDS_Shape.hxx>
#endif
#ifndef _TopTools_IndexedDataMapOfShapeShape_HeaderFile
#include <TopTools_IndexedDataMapOfShapeShape.hxx>
#endif
#ifndef _TopTools_DataMapOfShapeShape_HeaderFile
#include <TopTools_DataMapOfShapeShape.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _LocOpe_ProjectedWires_HeaderFile
#include <LocOpe_ProjectedWires.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
class TopoDS_Shape;
class TopoDS_Wire;
class TopoDS_Face;
class TopoDS_Edge;
class TopoDS_Vertex;



class LocOpe_WiresOnShape : public LocOpe_ProjectedWires {

public:

  
  Standard_EXPORT   LocOpe_WiresOnShape(const TopoDS_Shape& S);
  
  Standard_EXPORT     void Init(const TopoDS_Shape& S) ;
  
  Standard_EXPORT     void Bind(const TopoDS_Wire& W,const TopoDS_Face& F) ;
  
  Standard_EXPORT     void Bind(const TopoDS_Edge& E,const TopoDS_Face& F) ;
  
  Standard_EXPORT     void Bind(const TopoDS_Edge& EfromW,const TopoDS_Edge& EonFace) ;
  
  Standard_EXPORT     void BindAll() ;
  
        Standard_Boolean IsDone() const;
  
  Standard_EXPORT     void InitEdgeIterator() ;
  
  Standard_EXPORT     Standard_Boolean MoreEdge() ;
  
  Standard_EXPORT     TopoDS_Edge Edge() ;
  //! Returns the face of the shape on which the current <br>
//!          edge is projected. <br>
  Standard_EXPORT     TopoDS_Face OnFace() ;
  //! If the   current  edge is  projected  on  an edge, <br>
//!          returns <Standard_True> and sets the value of <E>. <br>
//!          Otherwise, returns <Standard_False>. <br>
  Standard_EXPORT     Standard_Boolean OnEdge(TopoDS_Edge& E) ;
  
  Standard_EXPORT     void NextEdge() ;
  
  Standard_EXPORT     Standard_Boolean OnVertex(const TopoDS_Vertex& Vwire,TopoDS_Vertex& Vshape) ;
  //! If the vertex <V> lies on  an edge of the original <br>
//!          shape,  returns     <Standard_True> and   sets the <br>
//!          concerned edge in  <E>,  and the parameter on  the <br>
//!          edge in <P>. <br>
//!          Else returns <Standard_False>. <br>
  Standard_EXPORT     Standard_Boolean OnEdge(const TopoDS_Vertex& V,TopoDS_Edge& E,Standard_Real& P) ;




  DEFINE_STANDARD_RTTI(LocOpe_WiresOnShape)

protected:




private: 


TopoDS_Shape myShape;
TopTools_IndexedDataMapOfShapeShape myMapEF;
TopTools_DataMapOfShapeShape myMap;
Standard_Boolean myDone;
Standard_Integer myIndex;


};


#include <LocOpe_WiresOnShape.lxx>



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


#endif