summaryrefslogtreecommitdiff
path: root/inc/TopOpeBRepTool_GeomTool.hxx
blob: 7970e7205a1a7a2a88dcbdde5af5f5c9c83d3e7c (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
// 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 _TopOpeBRepTool_GeomTool_HeaderFile
#define _TopOpeBRepTool_GeomTool_HeaderFile

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

#ifndef _TopOpeBRepTool_OutCurveType_HeaderFile
#include <TopOpeBRepTool_OutCurveType.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif



class TopOpeBRepTool_GeomTool  {
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); 
  }

  //! Boolean flags <CompC3D>, <CompPC1>, <CompPC2> <br>
//!          indicate whether  the  corresponding result curves <br>
//!          <C3D>, <PC1>, <PC2> of MakeCurves method  must or not <br>
//!          be computed from an intersection line <L>. <br>
//!          When  the line <L> is a walking one, <TypeC3D> is the <br>
//!          kind  of the 3D curve <C3D>  to  compute  : <br>
//!          - BSPLINE1 to compute  a BSpline of  degree 1 on the <br>
//!          walking   points  of  <L>, <br>
//!          - APPROX  to build  an  approximation curve on the <br>
//!          walking points of <L>. <br>
  Standard_EXPORT   TopOpeBRepTool_GeomTool(const TopOpeBRepTool_OutCurveType TypeC3D = TopOpeBRepTool_BSPLINE1,const Standard_Boolean CompC3D = Standard_True,const Standard_Boolean CompPC1 = Standard_True,const Standard_Boolean CompPC2 = Standard_True);
  
  Standard_EXPORT     void Define(const TopOpeBRepTool_OutCurveType TypeC3D,const Standard_Boolean CompC3D,const Standard_Boolean CompPC1,const Standard_Boolean CompPC2) ;
  
  Standard_EXPORT     void Define(const TopOpeBRepTool_OutCurveType TypeC3D) ;
  
  Standard_EXPORT     void DefineCurves(const Standard_Boolean CompC3D) ;
  
  Standard_EXPORT     void DefinePCurves1(const Standard_Boolean CompPC1) ;
  
  Standard_EXPORT     void DefinePCurves2(const Standard_Boolean CompPC2) ;
  
  Standard_EXPORT     void Define(const TopOpeBRepTool_GeomTool& GT) ;
  
  Standard_EXPORT     void GetTolerances(Standard_Real& tol3d,Standard_Real& tol2d) const;
  
  Standard_EXPORT     void SetTolerances(const Standard_Real tol3d,const Standard_Real tol2d) ;
  
  Standard_EXPORT     void GetTolerances(Standard_Real& tol3d,Standard_Real& tol2d,Standard_Boolean& relative) const;
  
  Standard_EXPORT     void SetTolerances(const Standard_Real tol3d,const Standard_Real tol2d,const Standard_Boolean relative) ;
  
  Standard_EXPORT     Standard_Integer NbPntMax() const;
  
  Standard_EXPORT     void SetNbPntMax(const Standard_Integer NbPntMax) ;
  
  Standard_EXPORT     TopOpeBRepTool_OutCurveType TypeC3D() const;
  
  Standard_EXPORT     Standard_Boolean CompC3D() const;
  
  Standard_EXPORT     Standard_Boolean CompPC1() const;
  
  Standard_EXPORT     Standard_Boolean CompPC2() const;





protected:



TopOpeBRepTool_OutCurveType myTypeC3D;
Standard_Boolean myCompC3D;
Standard_Boolean myCompPC1;
Standard_Boolean myCompPC2;


private:



Standard_Real myTol3d;
Standard_Real myTol2d;
Standard_Boolean myRelativeTol;
Standard_Integer myNbPntMax;


};





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


#endif