summaryrefslogtreecommitdiff
path: root/inc/IGESToBRep_TopoSurface.hxx
blob: bed638b6565d4493b32d548e8044ab828e1b8c2c (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
// 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 _IGESToBRep_TopoSurface_HeaderFile
#define _IGESToBRep_TopoSurface_HeaderFile

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

#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _IGESToBRep_CurveAndSurface_HeaderFile
#include <IGESToBRep_CurveAndSurface.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Handle_IGESData_IGESEntity_HeaderFile
#include <Handle_IGESData_IGESEntity.hxx>
#endif
#ifndef _Handle_IGESGeom_RuledSurface_HeaderFile
#include <Handle_IGESGeom_RuledSurface.hxx>
#endif
#ifndef _Handle_IGESGeom_SurfaceOfRevolution_HeaderFile
#include <Handle_IGESGeom_SurfaceOfRevolution.hxx>
#endif
#ifndef _Handle_IGESGeom_TabulatedCylinder_HeaderFile
#include <Handle_IGESGeom_TabulatedCylinder.hxx>
#endif
#ifndef _Handle_IGESGeom_OffsetSurface_HeaderFile
#include <Handle_IGESGeom_OffsetSurface.hxx>
#endif
#ifndef _Handle_IGESGeom_TrimmedSurface_HeaderFile
#include <Handle_IGESGeom_TrimmedSurface.hxx>
#endif
#ifndef _Handle_IGESGeom_BoundedSurface_HeaderFile
#include <Handle_IGESGeom_BoundedSurface.hxx>
#endif
#ifndef _Handle_IGESGeom_Plane_HeaderFile
#include <Handle_IGESGeom_Plane.hxx>
#endif
#ifndef _Handle_IGESSolid_PlaneSurface_HeaderFile
#include <Handle_IGESSolid_PlaneSurface.hxx>
#endif
#ifndef _Handle_IGESBasic_SingleParent_HeaderFile
#include <Handle_IGESBasic_SingleParent.hxx>
#endif
class IGESToBRep_CurveAndSurface;
class TopoDS_Shape;
class IGESData_IGESEntity;
class IGESGeom_RuledSurface;
class IGESGeom_SurfaceOfRevolution;
class IGESGeom_TabulatedCylinder;
class IGESGeom_OffsetSurface;
class IGESGeom_TrimmedSurface;
class IGESGeom_BoundedSurface;
class IGESGeom_Plane;
class IGESSolid_PlaneSurface;
class IGESBasic_SingleParent;
class gp_Pln;
class gp_Trsf;
class gp_Trsf2d;


//! Provides methods to transfer topologic surfaces entities <br>
//!           from IGES to CASCADE. <br>
class IGESToBRep_TopoSurface  : public IGESToBRep_CurveAndSurface {
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); 
  }

  //! Creates  a tool TopoSurface  ready  to  run, with <br>
//!         epsilons  set  to  1.E-04,  TheModeTopo  to  True,  the <br>
//!         optimization of  the continuity to False. <br>
  Standard_EXPORT   IGESToBRep_TopoSurface();
  //! Creates a tool TopoSurface ready to run and sets its <br>
//!         fields as CS's. <br>
  Standard_EXPORT   IGESToBRep_TopoSurface(const IGESToBRep_CurveAndSurface& CS);
  //! Creates a tool TopoSurface ready to run. <br>
  Standard_EXPORT   IGESToBRep_TopoSurface(const Standard_Real eps,const Standard_Real epsGeom,const Standard_Real epsCoeff,const Standard_Boolean mode,const Standard_Boolean modeapprox,const Standard_Boolean optimized);
  
  Standard_EXPORT     TopoDS_Shape TransferTopoSurface(const Handle(IGESData_IGESEntity)& start) ;
  
  Standard_EXPORT     TopoDS_Shape TransferTopoBasicSurface(const Handle(IGESData_IGESEntity)& start) ;
  
  Standard_EXPORT     TopoDS_Shape TransferRuledSurface(const Handle(IGESGeom_RuledSurface)& start) ;
  
  Standard_EXPORT     TopoDS_Shape TransferSurfaceOfRevolution(const Handle(IGESGeom_SurfaceOfRevolution)& start) ;
  
  Standard_EXPORT     TopoDS_Shape TransferTabulatedCylinder(const Handle(IGESGeom_TabulatedCylinder)& start) ;
  
  Standard_EXPORT     TopoDS_Shape TransferOffsetSurface(const Handle(IGESGeom_OffsetSurface)& start) ;
  
  Standard_EXPORT     TopoDS_Shape TransferTrimmedSurface(const Handle(IGESGeom_TrimmedSurface)& start) ;
  
  Standard_EXPORT     TopoDS_Shape TransferBoundedSurface(const Handle(IGESGeom_BoundedSurface)& start) ;
  
  Standard_EXPORT     TopoDS_Shape TransferPlane(const Handle(IGESGeom_Plane)& start) ;
  
  Standard_EXPORT     TopoDS_Shape TransferPlaneSurface(const Handle(IGESSolid_PlaneSurface)& start) ;
  
  Standard_EXPORT     TopoDS_Shape TransferPerforate(const Handle(IGESBasic_SingleParent)& start) ;
  
  Standard_EXPORT     TopoDS_Shape ParamSurface(const Handle(IGESData_IGESEntity)& start,gp_Trsf2d& trans,Standard_Real& uFact) ;





protected:





private:

  
  Standard_EXPORT     TopoDS_Shape TransferPlaneParts(const Handle(IGESGeom_Plane)& start,gp_Pln& gplan,gp_Trsf& locat,const Standard_Boolean first) ;


Standard_Real TheULength;


};





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


#endif