summaryrefslogtreecommitdiff
path: root/inc/GC_MakeArcOfCircle.hxx
blob: 88b3eeece6ff11beb03e1c98b6e6efaccbaf12f3 (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 _GC_MakeArcOfCircle_HeaderFile
#define _GC_MakeArcOfCircle_HeaderFile

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

#ifndef _Handle_Geom_TrimmedCurve_HeaderFile
#include <Handle_Geom_TrimmedCurve.hxx>
#endif
#ifndef _GC_Root_HeaderFile
#include <GC_Root.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
class Geom_TrimmedCurve;
class StdFail_NotDone;
class gp_Circ;
class gp_Pnt;
class gp_Vec;


//! Implements construction algorithms for an <br>
//! arc of circle in 3D space. The result is a Geom_TrimmedCurve curve. <br>
//! A MakeArcOfCircle object provides a framework for: <br>
//! -   defining the construction of the arc of circle, <br>
//! -   implementing the construction algorithm, and <br>
//! -   consulting the results. In particular, the <br>
//!   Value function returns the constructed arc of circle. <br>
class GC_MakeArcOfCircle  : public GC_Root {
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); 
  }

  //! Make an arc of circle (TrimmedCurve from Geom) from <br>
//!          a circle between two angles Alpha1 and Alpha2 <br>
//!          given in radiians. <br>
  Standard_EXPORT   GC_MakeArcOfCircle(const gp_Circ& Circ,const Standard_Real Alpha1,const Standard_Real Alpha2,const Standard_Boolean Sense);
  //! Make an arc of circle (TrimmedCurve from Geom) from <br>
//!          a circle between point <P> and the angle Alpha <br>
//!          given in radians. <br>
  Standard_EXPORT   GC_MakeArcOfCircle(const gp_Circ& Circ,const gp_Pnt& P,const Standard_Real Alpha,const Standard_Boolean Sense);
  //! Make an arc of circle (TrimmedCurve from Geom) from <br>
//!          a circle between two points P1 and P2. <br>
  Standard_EXPORT   GC_MakeArcOfCircle(const gp_Circ& Circ,const gp_Pnt& P1,const gp_Pnt& P2,const Standard_Boolean Sense);
  //! Make an arc of circle (TrimmedCurve from Geom) from <br>
//!          three points P1,P2,P3 between two points P1 and P2. <br>
  Standard_EXPORT   GC_MakeArcOfCircle(const gp_Pnt& P1,const gp_Pnt& P2,const gp_Pnt& P3);
  //! Make an arc of circle (TrimmedCurve from Geom) from <br>
//!          two points P1,P2 and the tangente to the solution at <br>
//!          the point P1. <br>
//! The orientation of the arc is: <br>
//! -   the sense determined by the order of the points P1, P3 and P2; <br>
//! -   the sense defined by the vector V; or <br>
//! -   for other syntaxes: <br>
//!   -   the sense of Circ if Sense is true, or <br>
//!   -   the opposite sense if Sense is false. <br>
//! Note: Alpha1, Alpha2 and Alpha are angle values, given in radians. <br>
//! Warning <br>
//! If an error occurs (that is, when IsDone returns <br>
//! false), the Status function returns: <br>
//! -   gce_ConfusedPoints if: <br>
//!   -   any 2 of the 3 points P1, P2 and P3 are coincident, or <br>
//!   -   P1 and P2 are coincident; or <br>
//! -   gce_IntersectionError if: <br>
//!   -   P1, P2 and P3 are collinear and not coincident, or <br>
//!   -   the vector defined by the points P1 and <br>
//!    P2 is collinear with the vector V. <br>
  Standard_EXPORT   GC_MakeArcOfCircle(const gp_Pnt& P1,const gp_Vec& V,const gp_Pnt& P2);
  //! Returns the constructed arc of circle. <br>
//! Exceptions StdFail_NotDone if no arc of circle is constructed. <br>
  Standard_EXPORT    const Handle_Geom_TrimmedCurve& Value() const;
  
  Standard_EXPORT    const Handle_Geom_TrimmedCurve& Operator() const;
Standard_EXPORT operator Handle_Geom_TrimmedCurve() const;





protected:





private:



Handle_Geom_TrimmedCurve TheArc;


};





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


#endif