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

#include <Standard.hxx>
#include <Standard_DefineHandle.hxx>
#include <Handle_BRep_PolygonOnSurface.hxx>

#include <Handle_Poly_Polygon2D.hxx>
#include <Handle_Geom_Surface.hxx>
#include <BRep_CurveRepresentation.hxx>
#include <Standard_Boolean.hxx>
#include <Handle_BRep_CurveRepresentation.hxx>
class Poly_Polygon2D;
class Geom_Surface;
class Standard_DomainError;
class TopLoc_Location;
class BRep_CurveRepresentation;


//! Representation of a 2D polygon in the parametric
//! space of a surface.
class BRep_PolygonOnSurface : public BRep_CurveRepresentation
{

public:

  
  Standard_EXPORT BRep_PolygonOnSurface(const Handle(Poly_Polygon2D)& P, const Handle(Geom_Surface)& S, const TopLoc_Location& L);
  
  //! A   2D polygon  representation  in the  parametric
  //! space of a surface.
  Standard_EXPORT virtual   Standard_Boolean IsPolygonOnSurface()  const;
  
  //! A   2D polygon  representation  in the  parametric
  //! space of a surface.
  Standard_EXPORT virtual   Standard_Boolean IsPolygonOnSurface (const Handle(Geom_Surface)& S, const TopLoc_Location& L)  const;
  
  Standard_EXPORT virtual  const  Handle(Geom_Surface)& Surface()  const;
  
  Standard_EXPORT virtual  const  Handle(Poly_Polygon2D)& Polygon()  const;
  
  Standard_EXPORT virtual   void Polygon (const Handle(Poly_Polygon2D)& P) ;
  
  //! Return a copy of this representation.
  Standard_EXPORT virtual   Handle(BRep_CurveRepresentation) Copy()  const;




  DEFINE_STANDARD_RTTI(BRep_PolygonOnSurface)

protected:




private: 


  Handle(Poly_Polygon2D) myPolygon2D;
  Handle(Geom_Surface) mySurface;


};







#endif // _BRep_PolygonOnSurface_HeaderFile
