summaryrefslogtreecommitdiff
path: root/inc/IntTools_Curve.hxx
blob: 2fd1271d7ba53bdde31341ece303b2feab2c51cd (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
// 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 _IntTools_Curve_HeaderFile
#define _IntTools_Curve_HeaderFile

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

#ifndef _Handle_Geom_Curve_HeaderFile
#include <Handle_Geom_Curve.hxx>
#endif
#ifndef _Handle_Geom2d_Curve_HeaderFile
#include <Handle_Geom2d_Curve.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _GeomAbs_CurveType_HeaderFile
#include <GeomAbs_CurveType.hxx>
#endif
class Geom_Curve;
class Geom2d_Curve;
class gp_Pnt;



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

  
//! Empty constructor <br>
  Standard_EXPORT   IntTools_Curve();
  
//! Initializes me by a 3d curve <br>
//! and two 2d curves <br>
  Standard_EXPORT   IntTools_Curve(const Handle(Geom_Curve)& Curve3d,const Handle(Geom2d_Curve)& FirstCurve2d,const Handle(Geom2d_Curve)& SecondCurve2d);
  
//! Modifier <br>
  Standard_EXPORT     void SetCurves(const Handle(Geom_Curve)& Curve3d,const Handle(Geom2d_Curve)& FirstCurve2d,const Handle(Geom2d_Curve)& SecondCurve2d) ;
  
//! Modifier <br>
        void SetCurve(const Handle(Geom_Curve)& Curve3d) ;
  
//! Modifier <br>
        void SetFirstCurve2d(const Handle(Geom2d_Curve)& FirstCurve2d) ;
  
//! Modifier <br>
        void SetSecondCurve2d(const Handle(Geom2d_Curve)& SecondCurve2d) ;
  
//! Selector <br>
       const Handle_Geom_Curve& Curve() const;
  
//! Selector <br>
       const Handle_Geom2d_Curve& FirstCurve2d() const;
  
//! Selector <br>
       const Handle_Geom2d_Curve& SecondCurve2d() const;
  
//! Returns true if 3d curve is BoundedCurve from Geom <br>
  Standard_EXPORT     Standard_Boolean HasBounds() const;
  
//! Returns boundary parameters <br>
//! and corresponded 3d point. <br>
  Standard_EXPORT     void Bounds(Standard_Real& aT1,Standard_Real& aT2,gp_Pnt& aP1,gp_Pnt& aP2) const;
  
//! Computes 3d point corresponded to parameter aT1 <br>
//! Returns true if given parameter aT1 <br>
//! is inside the boundaries of the curve <br>
  Standard_EXPORT     Standard_Boolean D0(Standard_Real& aT1,gp_Pnt& aP1) const;
  
//! Returns the type of 3d curve <br>
  Standard_EXPORT     GeomAbs_CurveType Type() const;





protected:





private:



Handle_Geom_Curve my3dCurve;
Handle_Geom2d_Curve my2dCurve1;
Handle_Geom2d_Curve my2dCurve2;


};


#include <IntTools_Curve.lxx>



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


#endif