summaryrefslogtreecommitdiff
path: root/inc/IntAna2d_Conic.hxx
blob: 339b8cc18715eb4d175b1e9cd8a00e5e924db59a (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
// 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 _IntAna2d_Conic_HeaderFile
#define _IntAna2d_Conic_HeaderFile

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

#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
class gp_Circ2d;
class gp_Lin2d;
class gp_Parab2d;
class gp_Hypr2d;
class gp_Elips2d;
class gp_XY;
class gp_Ax2d;


//! Definition of a conic by its implicit quadaratic equation: <br>
//!          A.X**2 + B.Y**2 + 2.C.X*Y + 2.D.X + 2.E.Y + F = 0. <br>
class IntAna2d_Conic  {
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   IntAna2d_Conic(const gp_Circ2d& C);
  
  Standard_EXPORT   IntAna2d_Conic(const gp_Lin2d& C);
  
  Standard_EXPORT   IntAna2d_Conic(const gp_Parab2d& C);
  
  Standard_EXPORT   IntAna2d_Conic(const gp_Hypr2d& C);
  
  Standard_EXPORT   IntAna2d_Conic(const gp_Elips2d& C);
  //! value of the function F at the point X,Y. <br>
  Standard_EXPORT     Standard_Real Value(const Standard_Real X,const Standard_Real Y) const;
  //! returns the value of the gradient of F at the point X,Y. <br>
  Standard_EXPORT     gp_XY Grad(const Standard_Real X,const Standard_Real Y) const;
  //! Returns the value of the function and its gradient at <br>
//!          the point X,Y. <br>
  Standard_EXPORT     void ValAndGrad(const Standard_Real X,const Standard_Real Y,Standard_Real& Val,gp_XY& Grd) const;
  //! returns the coefficients of the polynomial equation <br>
//!          wich defines the conic: <br>
//!          A.X**2 + B.Y**2 + 2.C.X*Y + 2.D.X + 2.E.Y + F = 0. <br>
  Standard_EXPORT     void Coefficients(Standard_Real& A,Standard_Real& B,Standard_Real& C,Standard_Real& D,Standard_Real& E,Standard_Real& F) const;
  //! Returns the coefficients of the polynomial equation <br>
//!          ( written in the natural coordinates system ) <br>
//!          A x x + B y y + 2 C x y + 2 D x + 2 E y + F <br>
//!          in the local coordinates system defined by Axis <br>
  Standard_EXPORT     void NewCoefficients(Standard_Real& A,Standard_Real& B,Standard_Real& C,Standard_Real& D,Standard_Real& E,Standard_Real& F,const gp_Ax2d& Axis) const;





protected:





private:



Standard_Real a;
Standard_Real b;
Standard_Real c;
Standard_Real d;
Standard_Real e;
Standard_Real f;


};





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


#endif