summaryrefslogtreecommitdiff
path: root/inc/GeomFill_SectionPlacement.hxx
blob: 21a14cded1ba1c8875a021dcd19bedacfeb581c6 (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
// 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 _GeomFill_SectionPlacement_HeaderFile
#define _GeomFill_SectionPlacement_HeaderFile

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

#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _gp_Ax1_HeaderFile
#include <gp_Ax1.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Handle_GeomFill_LocationLaw_HeaderFile
#include <Handle_GeomFill_LocationLaw.hxx>
#endif
#ifndef _GeomAdaptor_Curve_HeaderFile
#include <GeomAdaptor_Curve.hxx>
#endif
#ifndef _Handle_Geom_Curve_HeaderFile
#include <Handle_Geom_Curve.hxx>
#endif
#ifndef _Extrema_ExtPC_HeaderFile
#include <Extrema_ExtPC.hxx>
#endif
#ifndef _gp_Pnt_HeaderFile
#include <gp_Pnt.hxx>
#endif
#ifndef _Handle_Geom_Geometry_HeaderFile
#include <Handle_Geom_Geometry.hxx>
#endif
#ifndef _Handle_Adaptor3d_HCurve_HeaderFile
#include <Handle_Adaptor3d_HCurve.hxx>
#endif
class GeomFill_LocationLaw;
class Geom_Curve;
class StdFail_NotDone;
class Geom_Geometry;
class Adaptor3d_HCurve;
class gp_Trsf;
class gp_Mat;
class gp_Vec;


//! To place section in sweep Function <br>
class GeomFill_SectionPlacement  {
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   GeomFill_SectionPlacement(const Handle(GeomFill_LocationLaw)& L,const Handle(Geom_Geometry)& Section);
  //! To change the section Law <br>
  Standard_EXPORT     void SetLocation(const Handle(GeomFill_LocationLaw)& L) ;
  
  Standard_EXPORT     void Perform(const Standard_Real Tol) ;
  
  Standard_EXPORT     void Perform(const Handle(Adaptor3d_HCurve)& Path,const Standard_Real Tol) ;
  
  Standard_EXPORT     void Perform(const Standard_Real ParamOnPath,const Standard_Real Tol) ;
  
  Standard_EXPORT     Standard_Boolean IsDone() const;
  
  Standard_EXPORT     Standard_Real ParameterOnPath() const;
  
  Standard_EXPORT     Standard_Real ParameterOnSection() const;
  
  Standard_EXPORT     Standard_Real Distance() const;
  
  Standard_EXPORT     Standard_Real Angle() const;
  
  Standard_EXPORT     gp_Trsf Transformation(const Standard_Boolean WithTranslation,const Standard_Boolean WithCorrection = Standard_False) const;
  //! Compute the Section, in the coordinate syteme given by <br>
//!          the Location Law. <br>
//!          If <WithTranslation> contact beetween <br>
//!          <Section> and <Path> is forced. <br>
  Standard_EXPORT     Handle_Geom_Curve Section(const Standard_Boolean WithTranslation) const;
  //! Compute the Section, in the coordinate syteme given by <br>
//!          the Location Law. <br>
//!          To have the Normal to section equal to the Location <br>
//!          Law Normal.  If <WithTranslation> contact beetween <br>
//!          <Section> and <Path> is forced. <br>
  Standard_EXPORT     Handle_Geom_Curve ModifiedSection(const Standard_Boolean WithTranslation) const;





protected:





private:

  
  Standard_EXPORT     void SectionAxis(const gp_Mat& M,gp_Vec& T,gp_Vec& N,gp_Vec& BN) const;
  
  Standard_EXPORT     Standard_Boolean Choix(const Standard_Real Dist,const Standard_Real Angle) const;


Standard_Boolean done;
Standard_Boolean isplan;
gp_Ax1 TheAxe;
Standard_Real Gabarit;
Handle_GeomFill_LocationLaw myLaw;
GeomAdaptor_Curve myAdpSection;
Handle_Geom_Curve mySection;
Standard_Real SecParam;
Standard_Real PathParam;
Standard_Real Dist;
Standard_Real AngleMax;
Extrema_ExtPC myExt;
Standard_Boolean myIsPoint;
gp_Pnt myPoint;


};





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


#endif