// 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 _Contap_ContAna_HeaderFile
#define _Contap_ContAna_HeaderFile

#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Macro.hxx>

#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
#include <GeomAbs_CurveType.hxx>
#include <gp_Pnt.hxx>
#include <gp_Dir.hxx>
#include <Standard_Real.hxx>
#include <gp_Circ.hxx>
class StdFail_NotDone;
class Standard_DomainError;
class Standard_OutOfRange;
class gp_Sphere;
class gp_Dir;
class gp_Pnt;
class gp_Cylinder;
class gp_Cone;
class gp_Lin;


//! This class provides the computation of the contours
//! for quadric surfaces.
class Contap_ContAna 
{
public:

  DEFINE_STANDARD_ALLOC

  
  Standard_EXPORT Contap_ContAna();
  
  Standard_EXPORT   void Perform (const gp_Sphere& S, const gp_Dir& D) ;
  
  Standard_EXPORT   void Perform (const gp_Sphere& S, const gp_Dir& D, const Standard_Real Ang) ;
  
  Standard_EXPORT   void Perform (const gp_Sphere& S, const gp_Pnt& Eye) ;
  
  Standard_EXPORT   void Perform (const gp_Cylinder& C, const gp_Dir& D) ;
  
  Standard_EXPORT   void Perform (const gp_Cylinder& C, const gp_Dir& D, const Standard_Real Ang) ;
  
  Standard_EXPORT   void Perform (const gp_Cylinder& C, const gp_Pnt& Eye) ;
  
  Standard_EXPORT   void Perform (const gp_Cone& C, const gp_Dir& D) ;
  
  Standard_EXPORT   void Perform (const gp_Cone& C, const gp_Dir& D, const Standard_Real Ang) ;
  
  Standard_EXPORT   void Perform (const gp_Cone& C, const gp_Pnt& Eye) ;
  
      Standard_Boolean IsDone()  const;
  
      Standard_Integer NbContours()  const;
  
  //! Returns GeomAbs_Line or GeomAbs_Circle, when
  //! IsDone() returns True.
      GeomAbs_CurveType TypeContour()  const;
  
      gp_Circ Circle()  const;
  
  Standard_EXPORT   gp_Lin Line (const Standard_Integer Index)  const;




protected:





private:



  Standard_Boolean done;
  Standard_Integer nbSol;
  GeomAbs_CurveType typL;
  gp_Pnt pt1;
  gp_Pnt pt2;
  gp_Pnt pt3;
  gp_Pnt pt4;
  gp_Dir dir1;
  gp_Dir dir2;
  gp_Dir dir3;
  gp_Dir dir4;
  Standard_Real prm;


};


#include <Contap_ContAna.lxx>





#endif // _Contap_ContAna_HeaderFile
