File indexing completed on 2025-01-18 10:03:25
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _DrawTrSurf_Polygon2D_HeaderFile
0018 #define _DrawTrSurf_Polygon2D_HeaderFile
0019
0020 #include <Draw_Drawable2D.hxx>
0021 #include <Draw_Interpretor.hxx>
0022
0023 class Poly_Polygon2D;
0024
0025 DEFINE_STANDARD_HANDLE(DrawTrSurf_Polygon2D, Draw_Drawable2D)
0026
0027
0028
0029 class DrawTrSurf_Polygon2D : public Draw_Drawable2D
0030 {
0031 DEFINE_STANDARD_RTTIEXT(DrawTrSurf_Polygon2D, Draw_Drawable2D)
0032 Draw_Drawable3D_FACTORY
0033 public:
0034
0035 Standard_EXPORT DrawTrSurf_Polygon2D (const Handle(Poly_Polygon2D)& P);
0036
0037 Handle(Poly_Polygon2D) Polygon2D() const { return myPolygon2D; }
0038
0039 void ShowNodes (const Standard_Boolean theB) { myNodes = theB; }
0040
0041 Standard_Boolean ShowNodes() const { return myNodes; }
0042
0043 Standard_EXPORT virtual void DrawOn (Draw_Display& dis) const Standard_OVERRIDE;
0044
0045
0046 Standard_EXPORT virtual Handle(Draw_Drawable3D) Copy() const Standard_OVERRIDE;
0047
0048
0049 Standard_EXPORT virtual void Dump (Standard_OStream& S) const Standard_OVERRIDE;
0050
0051
0052 Standard_EXPORT virtual void Save (Standard_OStream& theStream) const Standard_OVERRIDE;
0053
0054
0055 Standard_EXPORT virtual void Whatis (Draw_Interpretor& I) const Standard_OVERRIDE;
0056
0057 private:
0058
0059 Handle(Poly_Polygon2D) myPolygon2D;
0060 Standard_Boolean myNodes;
0061
0062 };
0063
0064 #endif