File indexing completed on 2026-09-15 09:15:23
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _DrawTrSurf_Polygon3D_HeaderFile
0018 #define _DrawTrSurf_Polygon3D_HeaderFile
0019
0020 #include <Draw_Drawable3D.hxx>
0021 #include <Draw_Interpretor.hxx>
0022
0023 class Poly_Polygon3D;
0024
0025
0026
0027 class DrawTrSurf_Polygon3D : public Draw_Drawable3D
0028 {
0029 DEFINE_STANDARD_RTTIEXT(DrawTrSurf_Polygon3D, Draw_Drawable3D)
0030 Draw_Drawable3D_FACTORY
0031 public:
0032 Standard_EXPORT DrawTrSurf_Polygon3D(const occ::handle<Poly_Polygon3D>& P);
0033
0034 occ::handle<Poly_Polygon3D> Polygon3D() const { return myPolygon3D; }
0035
0036 void ShowNodes(const bool theB) { myNodes = theB; }
0037
0038 bool ShowNodes() const { return myNodes; }
0039
0040 Standard_EXPORT void DrawOn(Draw_Display& dis) const override;
0041
0042
0043 Standard_EXPORT occ::handle<Draw_Drawable3D> Copy() const override;
0044
0045
0046 Standard_EXPORT void Dump(Standard_OStream& S) const override;
0047
0048
0049 Standard_EXPORT void Save(Standard_OStream& theStream) const override;
0050
0051
0052
0053 Standard_EXPORT void Whatis(Draw_Interpretor& I) const override;
0054
0055 private:
0056 occ::handle<Poly_Polygon3D> myPolygon3D;
0057 bool myNodes;
0058 };
0059
0060 #endif