// File generated by CPPExt (Value)
//
//                     Copyright (C) 1991 - 2000 by  
//                      Matra Datavision SA.  All rights reserved.
//  
//                     Copyright (C) 2001 - 2004 by
//                     Open CASCADE SA.  All rights reserved.
// 
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//  
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.

#ifndef _GCE2d_MakeHyperbola_HeaderFile
#define _GCE2d_MakeHyperbola_HeaderFile

#ifndef _Handle_Geom2d_Hyperbola_HeaderFile
#include <Handle_Geom2d_Hyperbola.hxx>
#endif
#ifndef _GCE2d_Root_HeaderFile
#include <GCE2d_Root.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
class Geom2d_Hyperbola;
class StdFail_NotDone;
class gp_Hypr2d;
class gp_Ax2d;
class gp_Ax22d;
class gp_Pnt2d;


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

//!This class implements the following algorithms used to <br>
//!          create Hyperbola from Geom2d. <br>
//!          * Create an Hyperbola from two apex  and the center. <br>
//!  Defines the main branch of an hyperbola. <br>
//!  The parameterization range is ]-infinite,+infinite[ <br>
//!  It is possible to get the other branch and the two conjugate <br>
//!  branches of the main branch. <br>
class GCE2d_MakeHyperbola  : public GCE2d_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); 
      }
 // Methods PUBLIC
 // 


//!  Creates  an Hyperbola from a non persistent one from package gp <br>
Standard_EXPORT GCE2d_MakeHyperbola(const gp_Hypr2d& H);


//!  MajorAxis is the "XAxis" of the hyperbola. <br>
//!  The major radius of the hyperbola is on this "XAxis" and <br>
//!  the minor radius is on the "YAxis" of the hyperbola. <br>
//!  The status is "NegativeRadius" if MajorRadius < 0.0 or if <br>
//!  MinorRadius < 0.0 <br>
Standard_EXPORT GCE2d_MakeHyperbola(const gp_Ax2d& MajorAxis,const Standard_Real MajorRadius,const Standard_Real MinorRadius,const Standard_Boolean Sense);


//!  Axis is the local coordinate system of the hyperbola. <br>
//!  The major radius of the hyperbola is on this "XAxis" and <br>
//!  the minor radius is on the "YAxis" of the hyperbola. <br>
//!  The status is "NegativeRadius" if MajorRadius < 0.0 or if <br>
//!  MinorRadius < 0.0 <br>
Standard_EXPORT GCE2d_MakeHyperbola(const gp_Ax22d& Axis,const Standard_Real MajorRadius,const Standard_Real MinorRadius);

//! Creates a hyperbol centered on the origin of the coordinate system <br>
//!  Axis, with major and minor radii MajorRadius and <br>
//!   MinorRadius, where the major axis is the "X Axis" <br>
//!   of Axis (Axis is the local coordinate system of the hyperbola). <br>
//!   The implicit orientation of the ellipse is: <br>
//! -   the sense defined by Axis or H, <br>
//! -   the sense defined by points Center, S1 and S2, <br>
//! -   the trigonometric sense if Sense is not given or is true, or <br>
//! -   the opposite sense if Sense is false. <br>
//! Warning <br>
//! If an error occurs (that is, when IsDone returns <br>
//! false), the Status function returns: <br>
//! -   gce_NegativeRadius if MajorRadius or <br>
//!   MinorRadius is less than 0.0, or <br>
//! -   gce_InvertAxis if the major radius defined by <br>
//!   Center and S1 is less than the minor radius <br>
//!   defined by Center, S1 and S2.Make an Hyperbola with its center and two apexes. <br>
Standard_EXPORT GCE2d_MakeHyperbola(const gp_Pnt2d& S1,const gp_Pnt2d& S2,const gp_Pnt2d& Center);

//! Returns the constructed hyperbola. <br>
//! Exceptions: StdFail_NotDone if no hyperbola is constructed. <br>
Standard_EXPORT  const Handle_Geom2d_Hyperbola& Value() const;


Standard_EXPORT  const Handle_Geom2d_Hyperbola& Operator() const;
Standard_EXPORT operator Handle_Geom2d_Hyperbola() const;





protected:

 // Methods PROTECTED
 // 


 // Fields PROTECTED
 //


private: 

 // Methods PRIVATE
 // 


 // Fields PRIVATE
 //
Handle_Geom2d_Hyperbola TheHyperbola;


};





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


#endif
