File: IGESToBRep_TopoCurve.hxx

package info (click to toggle)
oce 0.18.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 301,548 kB
  • sloc: cpp: 1,190,609; ansic: 67,225; sh: 11,630; tcl: 7,954; cs: 5,221; python: 2,867; java: 1,522; makefile: 342; xml: 292; perl: 37
file content (154 lines) | stat: -rw-r--r-- 5,916 bytes parent folder | download | duplicates (5)
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
154
// 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_TopoCurve_HeaderFile
#define _IGESToBRep_TopoCurve_HeaderFile

#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Macro.hxx>

#include <TColGeom_SequenceOfCurve.hxx>
#include <TColGeom2d_SequenceOfCurve.hxx>
#include <Standard_Boolean.hxx>
#include <IGESToBRep_CurveAndSurface.hxx>
#include <Standard_Real.hxx>
#include <Handle_IGESData_IGESEntity.hxx>
#include <Handle_IGESGeom_Point.hxx>
#include <Handle_IGESGeom_CompositeCurve.hxx>
#include <Handle_IGESGeom_OffsetCurve.hxx>
#include <Handle_IGESGeom_CurveOnSurface.hxx>
#include <Handle_IGESGeom_Boundary.hxx>
#include <Handle_Geom_BSplineCurve.hxx>
#include <Standard_Integer.hxx>
#include <Handle_Geom_Curve.hxx>
#include <Handle_Geom2d_BSplineCurve.hxx>
#include <Handle_Geom2d_Curve.hxx>
class IGESToBRep_CurveAndSurface;
class TopoDS_Shape;
class IGESData_IGESEntity;
class TopoDS_Face;
class gp_Trsf2d;
class TopoDS_Vertex;
class IGESGeom_Point;
class IGESGeom_CompositeCurve;
class IGESGeom_OffsetCurve;
class IGESGeom_CurveOnSurface;
class IGESGeom_Boundary;
class Geom_BSplineCurve;
class Geom_Curve;
class Geom2d_BSplineCurve;
class Geom2d_Curve;


//! Provides methods to transfer topologic curves entities
//! from IGES to CASCADE.
class IGESToBRep_TopoCurve  : public IGESToBRep_CurveAndSurface
{
public:

  DEFINE_STANDARD_ALLOC

  
  //! Creates  a tool TopoCurve  ready  to  run, with
  //! epsilons  set  to  1.E-04,  TheModeTopo  to  True,  the
  //! optimization of  the continuity to False.
  Standard_EXPORT IGESToBRep_TopoCurve();
  
  //! Creates a tool TopoCurve ready to run and sets its
  //! fields as CS's.
  Standard_EXPORT IGESToBRep_TopoCurve(const IGESToBRep_CurveAndSurface& CS);
  
  //! Creates a tool TopoCurve ready to run and sets its
  //! fields as CS's.
  Standard_EXPORT IGESToBRep_TopoCurve(const IGESToBRep_TopoCurve& CS);
  
  //! Creates a tool TopoCurve ready to run.
  Standard_EXPORT IGESToBRep_TopoCurve(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 TransferTopoCurve (const Handle(IGESData_IGESEntity)& start) ;
  
  Standard_EXPORT   TopoDS_Shape Transfer2dTopoCurve (const Handle(IGESData_IGESEntity)& start, const TopoDS_Face& face, const gp_Trsf2d& trans, const Standard_Real uFact) ;
  
  Standard_EXPORT   TopoDS_Shape TransferTopoBasicCurve (const Handle(IGESData_IGESEntity)& start) ;
  
  Standard_EXPORT   TopoDS_Shape Transfer2dTopoBasicCurve (const Handle(IGESData_IGESEntity)& start, const TopoDS_Face& face, const gp_Trsf2d& trans, const Standard_Real uFact) ;
  
  Standard_EXPORT   TopoDS_Vertex TransferPoint (const Handle(IGESGeom_Point)& start) ;
  
  Standard_EXPORT   TopoDS_Vertex Transfer2dPoint (const Handle(IGESGeom_Point)& start) ;
  
  Standard_EXPORT   TopoDS_Shape TransferCompositeCurve (const Handle(IGESGeom_CompositeCurve)& start) ;
  
  Standard_EXPORT   TopoDS_Shape Transfer2dCompositeCurve (const Handle(IGESGeom_CompositeCurve)& start, const TopoDS_Face& face, const gp_Trsf2d& trans, const Standard_Real uFact) ;
  
  Standard_EXPORT   TopoDS_Shape TransferOffsetCurve (const Handle(IGESGeom_OffsetCurve)& start) ;
  
  Standard_EXPORT   TopoDS_Shape Transfer2dOffsetCurve (const Handle(IGESGeom_OffsetCurve)& start, const TopoDS_Face& face, const gp_Trsf2d& trans, const Standard_Real uFact) ;
  
  Standard_EXPORT   TopoDS_Shape TransferCurveOnSurface (const Handle(IGESGeom_CurveOnSurface)& start) ;
  
  //! Transfers a CurveOnSurface directly on a face to trim it.
  //! The CurveOnSurface have to be defined Outer or Inner.
  Standard_EXPORT   TopoDS_Shape TransferCurveOnFace (TopoDS_Face& face, const Handle(IGESGeom_CurveOnSurface)& start, const gp_Trsf2d& trans, const Standard_Real uFact, const Standard_Boolean IsCurv) ;
  
  Standard_EXPORT   TopoDS_Shape TransferBoundary (const Handle(IGESGeom_Boundary)& start) ;
  
  //! Transfers a Boundary directly on a face to trim it.
  Standard_EXPORT   TopoDS_Shape TransferBoundaryOnFace (TopoDS_Face& face, const Handle(IGESGeom_Boundary)& start, const gp_Trsf2d& trans, const Standard_Real uFact) ;
  
  Standard_EXPORT   void ApproxBSplineCurve (const Handle(Geom_BSplineCurve)& start) ;
  
  //! Returns the count of Curves in "TheCurves"
  Standard_EXPORT   Standard_Integer NbCurves()  const;
  
  //! Returns a Curve given its rank, by default the first one
  //! (null Curvee if out of range) in "TheCurves"
  Standard_EXPORT   Handle(Geom_Curve) Curve (const Standard_Integer num = 1)  const;
  
  Standard_EXPORT   void Approx2dBSplineCurve (const Handle(Geom2d_BSplineCurve)& start) ;
  
  //! Returns the count of Curves in "TheCurves2d"
  Standard_EXPORT   Standard_Integer NbCurves2d()  const;
  
  //! Returns a Curve given its rank, by default the first one
  //! (null Curvee if out of range) in "TheCurves2d"
  Standard_EXPORT   Handle(Geom2d_Curve) Curve2d (const Standard_Integer num = 1)  const;
  
  //! Sets TheBadCase flag
  Standard_EXPORT   void SetBadCase (const Standard_Boolean value) ;
  
  //! Returns TheBadCase flag
  Standard_EXPORT   Standard_Boolean BadCase()  const;




protected:





private:

  
  Standard_EXPORT   TopoDS_Shape TransferCompositeCurveGeneral (const Handle(IGESGeom_CompositeCurve)& start, const Standard_Boolean is2d, const TopoDS_Face& face, const gp_Trsf2d& trans, const Standard_Real uFact) ;


  TColGeom_SequenceOfCurve TheCurves;
  TColGeom2d_SequenceOfCurve TheCurves2d;
  Standard_Boolean TheBadCase;


};







#endif // _IGESToBRep_TopoCurve_HeaderFile