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

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

#include <Handle_Poly_Polygon2D.hxx>
#include <Standard_Boolean.hxx>
#include <Draw_Drawable2D.hxx>
#include <Handle_Draw_Drawable3D.hxx>
#include <Standard_OStream.hxx>
#include <Draw_Interpretor.hxx>
class Poly_Polygon2D;
class Draw_Display;
class Draw_Drawable3D;


//! Used to display a 2d polygon.
//!
//! Optional display of nodes.
class DrawTrSurf_Polygon2D : public Draw_Drawable2D
{

public:

  
  Standard_EXPORT DrawTrSurf_Polygon2D(const Handle(Poly_Polygon2D)& P);
  
  Standard_EXPORT   Handle(Poly_Polygon2D) Polygon2D()  const;
  
  Standard_EXPORT   void ShowNodes (const Standard_Boolean B) ;
  
  Standard_EXPORT   Standard_Boolean ShowNodes()  const;
  
  Standard_EXPORT   void DrawOn (Draw_Display& dis)  const;
  
  //! For variable copy.
  Standard_EXPORT virtual   Handle(Draw_Drawable3D) Copy()  const;
  
  //! For variable dump.
  Standard_EXPORT virtual   void Dump (Standard_OStream& S)  const;
  
  //! For variable whatis command. Set  as a result  the
  //! type of the variable.
  Standard_EXPORT virtual   void Whatis (Draw_Interpretor& I)  const;




  DEFINE_STANDARD_RTTI(DrawTrSurf_Polygon2D)

protected:




private: 


  Handle(Poly_Polygon2D) myPolygon2D;
  Standard_Boolean myNodes;


};







#endif // _DrawTrSurf_Polygon2D_HeaderFile
