summaryrefslogtreecommitdiff
path: root/inc/BRepToIGES_BRWire.hxx
blob: 9d1cf84182e964a2487c543e4fc23f44d391a7fa (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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
// 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 _BRepToIGES_BRWire_HeaderFile
#define _BRepToIGES_BRWire_HeaderFile

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

#ifndef _BRepToIGES_BREntity_HeaderFile
#include <BRepToIGES_BREntity.hxx>
#endif
#ifndef _Handle_IGESData_IGESEntity_HeaderFile
#include <Handle_IGESData_IGESEntity.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Handle_Geom_Surface_HeaderFile
#include <Handle_Geom_Surface.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
class BRepToIGES_BREntity;
class IGESData_IGESEntity;
class TopoDS_Shape;
class TopoDS_Vertex;
class TopoDS_Edge;
class TopoDS_Face;
class Geom_Surface;
class TopLoc_Location;
class gp_Pnt2d;
class TopoDS_Wire;


//! This class implements the transfer of Shape Entities <br>
//!          from Geom To IGES. These can be : <br>
//!            . Vertex <br>
//!            . Edge <br>
//!            . Wire <br>
class BRepToIGES_BRWire  : public BRepToIGES_BREntity {
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   BRepToIGES_BRWire();
  
  Standard_EXPORT   BRepToIGES_BRWire(const BRepToIGES_BREntity& BR);
  //!  Transfert a Shape entity from TopoDS to IGES <br>
//!            this entity must be a Vertex or an Edge or a Wire. <br>
//!            If this Entity could not be converted, <br>
//!            this member returns a NullEntity. <br>
  Standard_EXPORT     Handle_IGESData_IGESEntity TransferWire(const TopoDS_Shape& start) ;
  //!  Transfert a Vertex entity from TopoDS to IGES <br>
//!            If this Entity could not be converted, <br>
//!            this member returns a NullEntity. <br>
  Standard_EXPORT     Handle_IGESData_IGESEntity TransferVertex(const TopoDS_Vertex& myvertex) ;
  //!  Transfert a Vertex entity on an Edge from TopoDS to IGES <br>
//!            Returns the parameter of myvertex on myedge. <br>
//!            If this Entity could not be converted, <br>
//!            this member returns a NullEntity. <br>
  Standard_EXPORT     Handle_IGESData_IGESEntity TransferVertex(const TopoDS_Vertex& myvertex,const TopoDS_Edge& myedge,Standard_Real& parameter) ;
  //!  Transfert a Vertex entity of an edge on a Face <br>
//!            from TopoDS to IGES <br>
//!            Returns the parameter of myvertex on the pcurve <br>
//!            of myedge on myface <br>
//!            If this Entity could not be converted, <br>
//!            this member returns a NullEntity. <br>
  Standard_EXPORT     Handle_IGESData_IGESEntity TransferVertex(const TopoDS_Vertex& myvertex,const TopoDS_Edge& myedge,const TopoDS_Face& myface,Standard_Real& parameter) ;
  //!  Transfert a Vertex entity of an edge on a Surface <br>
//!            from TopoDS to IGES <br>
//!            Returns the parameter of myvertex on the pcurve <br>
//!            of myedge on mysurface <br>
//!            If this Entity could not be converted, <br>
//!            this member returns a NullEntity. <br>
  Standard_EXPORT     Handle_IGESData_IGESEntity TransferVertex(const TopoDS_Vertex& myvertex,const TopoDS_Edge& myedge,const Handle(Geom_Surface)& mysurface,const TopLoc_Location& myloc,Standard_Real& parameter) ;
  //!  Transfert a Vertex entity on a Face from TopoDS to IGES <br>
//!            Returns the parameters of myvertex on myface <br>
//!            If this Entity could not be converted, <br>
//!            this member returns a NullEntity. <br>
  Standard_EXPORT     Handle_IGESData_IGESEntity TransferVertex(const TopoDS_Vertex& myvertex,const TopoDS_Face& myface,gp_Pnt2d& mypoint) ;
  //!  Transfert an Edge entity from TopoDS to IGES <br>
//!            If this Entity could not be converted, <br>
//!            this member returns a NullEntity. <br>
//!            isBRepMode indicates if write mode is BRep <br>
//!            (True when called from BRepToIGESBRep and False when from BRepToIGES) <br>
//!            If edge is REVERSED and isBRepMode is False 3D edge curve is reversed, <br>
//!            otherwise, not. <br>
  Standard_EXPORT     Handle_IGESData_IGESEntity TransferEdge(const TopoDS_Edge& myedge,const Standard_Boolean isBRepMode) ;
  //!  Transfert an Edge entity on a Face from TopoDS to IGES <br>
//!            If this Entity could not be converted, <br>
//!            this member returns a NullEntity. <br>
//!            isBRepMode indicates if write mode is BRep <br>
//!            (True when called from BRepToIGESBRep and False when from BRepToIGES) <br>
//!            passing into Transform2dCurve() <br>
  Standard_EXPORT     Handle_IGESData_IGESEntity TransferEdge(const TopoDS_Edge& myedge,const TopoDS_Face& myface,const Standard_Real length,const Standard_Boolean isBRepMode) ;
  //!  Transfert a Wire entity from TopoDS to IGES <br>
//!            If this Entity could not be converted, <br>
//!            this member returns a NullEntity. <br>
  Standard_EXPORT     Handle_IGESData_IGESEntity TransferWire(const TopoDS_Wire& mywire) ;
  //!  Transfert a Wire entity from TopoDS to IGES. <br>
//!            Returns the curve associated to mywire in <br>
//!            the parametric space of myface. <br>
//!            If this Entity could not be converted, <br>
//!            this member returns a NullEntity. <br>
//!            Parameter IsRevol is not used anymore <br>
  Standard_EXPORT     Handle_IGESData_IGESEntity TransferWire(const TopoDS_Wire& mywire,const TopoDS_Face& myface,Handle(IGESData_IGESEntity)& mycurve2d,const Standard_Real length) ;





protected:





private:





};





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


#endif