// File generated by CPPExt (Transient)
//
//
//                     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 _Adaptor3d_HSurface_HeaderFile
#define _Adaptor3d_HSurface_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Handle_Adaptor3d_HSurface_HeaderFile
#include <Handle_Adaptor3d_HSurface.hxx>
#endif

#ifndef _MMgt_TShared_HeaderFile
#include <MMgt_TShared.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _GeomAbs_Shape_HeaderFile
#include <GeomAbs_Shape.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _gp_Pnt_HeaderFile
#include <gp_Pnt.hxx>
#endif
#ifndef _gp_Vec_HeaderFile
#include <gp_Vec.hxx>
#endif
#ifndef _GeomAbs_SurfaceType_HeaderFile
#include <GeomAbs_SurfaceType.hxx>
#endif
#ifndef _gp_Pln_HeaderFile
#include <gp_Pln.hxx>
#endif
#ifndef _gp_Cylinder_HeaderFile
#include <gp_Cylinder.hxx>
#endif
#ifndef _gp_Cone_HeaderFile
#include <gp_Cone.hxx>
#endif
#ifndef _gp_Sphere_HeaderFile
#include <gp_Sphere.hxx>
#endif
#ifndef _gp_Torus_HeaderFile
#include <gp_Torus.hxx>
#endif
#ifndef _Handle_Geom_BezierSurface_HeaderFile
#include <Handle_Geom_BezierSurface.hxx>
#endif
#ifndef _Handle_Geom_BSplineSurface_HeaderFile
#include <Handle_Geom_BSplineSurface.hxx>
#endif
#ifndef _gp_Ax1_HeaderFile
#include <gp_Ax1.hxx>
#endif
#ifndef _gp_Dir_HeaderFile
#include <gp_Dir.hxx>
#endif
#ifndef _Handle_Adaptor3d_HCurve_HeaderFile
#include <Handle_Adaptor3d_HCurve.hxx>
#endif
class Standard_OutOfRange;
class Standard_NoSuchObject;
class Standard_DomainError;
class Standard_NotImplemented;
class Adaptor3d_Surface;
class TColStd_Array1OfReal;
class gp_Pnt;
class gp_Vec;
class Geom_BezierSurface;
class Geom_BSplineSurface;
class Adaptor3d_HCurve;


//! Root class for surfaces manipulated by handles, on <br>
//! which geometric algorithms work. <br>
//! An adapted surface is an interface between the <br>
//! services provided by a surface and those required of <br>
//! the surface by algorithms which use it. <br>
//! A derived concrete class is provided: <br>
//! GeomAdaptor_HSurface for a surface from the Geom package. <br>
class Adaptor3d_HSurface : public MMgt_TShared {

public:
 // Methods PUBLIC
 // 

//! Returns a reference to the Surface inside the HSurface. <br>
//! <br>
Standard_EXPORT virtual const Adaptor3d_Surface& Surface() const = 0;

  Standard_Real FirstUParameter() const;

  Standard_Real LastUParameter() const;

  Standard_Real FirstVParameter() const;

  Standard_Real LastVParameter() const;

  GeomAbs_Shape UContinuity() const;

  GeomAbs_Shape VContinuity() const;

  Standard_Integer NbUIntervals(const GeomAbs_Shape S) const;

  Standard_Integer NbVIntervals(const GeomAbs_Shape S) const;

  void UIntervals(TColStd_Array1OfReal& T,const GeomAbs_Shape S) const;

  void VIntervals(TColStd_Array1OfReal& T,const GeomAbs_Shape S) const;

  Handle_Adaptor3d_HSurface UTrim(const Standard_Real First,const Standard_Real Last,const Standard_Real Tol) const;

  Handle_Adaptor3d_HSurface VTrim(const Standard_Real First,const Standard_Real Last,const Standard_Real Tol) const;

  Standard_Boolean IsUClosed() const;

  Standard_Boolean IsVClosed() const;

  Standard_Boolean IsUPeriodic() const;

  Standard_Real UPeriod() const;

  Standard_Boolean IsVPeriodic() const;

  Standard_Real VPeriod() const;

  gp_Pnt Value(const Standard_Real U,const Standard_Real V) const;

  void D0(const Standard_Real U,const Standard_Real V,gp_Pnt& P) const;

  void D1(const Standard_Real U,const Standard_Real V,gp_Pnt& P,gp_Vec& D1U,gp_Vec& D1V) const;

  void D2(const Standard_Real U,const Standard_Real V,gp_Pnt& P,gp_Vec& D1U,gp_Vec& D1V,gp_Vec& D2U,gp_Vec& D2V,gp_Vec& D2UV) const;

  void D3(const Standard_Real U,const Standard_Real V,gp_Pnt& P,gp_Vec& D1U,gp_Vec& D1V,gp_Vec& D2U,gp_Vec& D2V,gp_Vec& D2UV,gp_Vec& D3U,gp_Vec& D3V,gp_Vec& D3UUV,gp_Vec& D3UVV) const;

  gp_Vec DN(const Standard_Real U,const Standard_Real V,const Standard_Integer Nu,const Standard_Integer Nv) const;

  Standard_Real UResolution(const Standard_Real R3d) const;

  Standard_Real VResolution(const Standard_Real R3d) const;

  GeomAbs_SurfaceType GetType() const;

  gp_Pln Plane() const;

  gp_Cylinder Cylinder() const;

  gp_Cone Cone() const;

  gp_Sphere Sphere() const;

  gp_Torus Torus() const;

  Standard_Integer UDegree() const;

  Standard_Integer NbUPoles() const;

  Standard_Integer VDegree() const;

  Standard_Integer NbVPoles() const;

  Standard_Integer NbUKnots() const;

  Standard_Integer NbVKnots() const;

  Standard_Boolean IsURational() const;

  Standard_Boolean IsVRational() const;

  Handle_Geom_BezierSurface Bezier() const;

  Handle_Geom_BSplineSurface BSpline() const;

  gp_Ax1 AxeOfRevolution() const;

  gp_Dir Direction() const;

  Handle_Adaptor3d_HCurve BasisCurve() const;

  Handle_Adaptor3d_HSurface BasisSurface() const;

  Standard_Real OffsetValue() const;
//Standard_EXPORT ~Adaptor3d_HSurface();




 // Type management
 //
 Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
 //Standard_EXPORT Standard_Boolean	       IsKind(const Handle(Standard_Type)&) const;

protected:

 // Methods PROTECTED
 // 


 // Fields PROTECTED
 //


private: 

 // Methods PRIVATE
 // 


 // Fields PRIVATE
 //


};


#include <Adaptor3d_HSurface.lxx>



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


#endif
