Warning, file /include/opencascade/DrawTrSurf_BezierCurve.hxx was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _DrawTrSurf_BezierCurve_HeaderFile
0018 #define _DrawTrSurf_BezierCurve_HeaderFile
0019
0020 #include <Draw_Color.hxx>
0021 #include <DrawTrSurf_Curve.hxx>
0022
0023 class Geom_BezierCurve;
0024
0025 class DrawTrSurf_BezierCurve : public DrawTrSurf_Curve
0026 {
0027 DEFINE_STANDARD_RTTIEXT(DrawTrSurf_BezierCurve, DrawTrSurf_Curve)
0028 Draw_Drawable3D_FACTORY
0029 public:
0030
0031 Standard_EXPORT DrawTrSurf_BezierCurve(const occ::handle<Geom_BezierCurve>& C);
0032
0033 Standard_EXPORT DrawTrSurf_BezierCurve(const occ::handle<Geom_BezierCurve>& C,
0034 const Draw_Color& CurvColor,
0035 const Draw_Color& PolesColor,
0036 const bool ShowPoles,
0037 const int Discret,
0038 const double Deflection,
0039 const int DrawMode);
0040
0041 Standard_EXPORT void DrawOn(Draw_Display& dis) const override;
0042
0043 void ShowPoles() { drawPoles = true; }
0044
0045 void ClearPoles() { drawPoles = false; }
0046
0047
0048
0049
0050
0051
0052 Standard_EXPORT void FindPole(const double X,
0053 const double Y,
0054 const Draw_Display& D,
0055 const double Prec,
0056 int& Index) const;
0057
0058 void SetPolesColor(const Draw_Color& theColor) { polesLook = theColor; }
0059
0060 Draw_Color PolesColor() const { return polesLook; }
0061
0062
0063 Standard_EXPORT occ::handle<Draw_Drawable3D> Copy() const override;
0064
0065 private:
0066 bool drawPoles;
0067 Draw_Color polesLook;
0068 };
0069
0070 #endif