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_BezierSurface_HeaderFile
0018 #define _DrawTrSurf_BezierSurface_HeaderFile
0019
0020 #include <Draw_Color.hxx>
0021 #include <DrawTrSurf_Surface.hxx>
0022
0023 class Geom_BezierSurface;
0024
0025 DEFINE_STANDARD_HANDLE(DrawTrSurf_BezierSurface, DrawTrSurf_Surface)
0026
0027 class DrawTrSurf_BezierSurface : public DrawTrSurf_Surface
0028 {
0029 DEFINE_STANDARD_RTTIEXT(DrawTrSurf_BezierSurface, DrawTrSurf_Surface)
0030 Draw_Drawable3D_FACTORY
0031 public:
0032
0033
0034 Standard_EXPORT DrawTrSurf_BezierSurface (const Handle(Geom_BezierSurface)& S);
0035
0036 Standard_EXPORT DrawTrSurf_BezierSurface (const Handle(Geom_BezierSurface)& S,
0037 const Standard_Integer NbUIsos, const Standard_Integer NbVIsos, const Draw_Color& BoundsColor,
0038 const Draw_Color& IsosColor, const Draw_Color& PolesColor, const Standard_Boolean ShowPoles,
0039 const Standard_Integer Discret, const Standard_Real Deflection, const Standard_Integer DrawMode);
0040
0041 Standard_EXPORT virtual void DrawOn (Draw_Display& dis) const Standard_OVERRIDE;
0042
0043 void ShowPoles() { drawPoles = Standard_True; }
0044
0045 void ClearPoles() { drawPoles = Standard_False; }
0046
0047 Standard_EXPORT void FindPole (const Standard_Real X, const Standard_Real Y, const Draw_Display& D, const Standard_Real Prec, Standard_Integer& UIndex, Standard_Integer& VIndex) const;
0048
0049 void SetPolesColor (const Draw_Color& theColor) { polesLook = theColor; }
0050
0051 Draw_Color PolesColor() const { return polesLook; }
0052
0053
0054 Standard_EXPORT virtual Handle(Draw_Drawable3D) Copy() const Standard_OVERRIDE;
0055
0056 private:
0057
0058 Standard_Boolean drawPoles;
0059 Draw_Color polesLook;
0060
0061 };
0062
0063 #endif