From d62dc09acfa84150fd51b53a46bb36213059cdd8 Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 23 Sep 2003 23:53:57 +0000 Subject: [PATCH] add set_thickness --- panda/src/parametrics/parametricCurveDrawer.cxx | 14 ++++++++++++++ panda/src/parametrics/parametricCurveDrawer.h | 2 ++ 2 files changed, 16 insertions(+) diff --git a/panda/src/parametrics/parametricCurveDrawer.cxx b/panda/src/parametrics/parametricCurveDrawer.cxx index c7ac6177d0..bb15c003ec 100644 --- a/panda/src/parametrics/parametricCurveDrawer.cxx +++ b/panda/src/parametrics/parametricCurveDrawer.cxx @@ -223,6 +223,7 @@ get_num_ticks() const { void ParametricCurveDrawer:: set_color(float r, float g, float b) { _lines.set_color(r, g, b); + redraw(); } @@ -235,8 +236,21 @@ set_color(float r, float g, float b) { void ParametricCurveDrawer:: set_tick_color(float r, float g, float b) { _ticks.set_color(r, g, b); + redraw(); } +//////////////////////////////////////////////////////////////////// +// Function: ParametricCurveDrawer::set_thickness +// Access: Public +// Description: Specifies the thickness of the line in pixels drawn +// to represent the curve. Note that pixel thickness of +// a line segment is not supported by DirectX. +//////////////////////////////////////////////////////////////////// +void ParametricCurveDrawer:: +set_thickness(float thick) { + _lines.set_thickness(thick); + redraw(); +} //////////////////////////////////////////////////////////////////// // Function: ParametricCurveDrawer::set_frame_accurate diff --git a/panda/src/parametrics/parametricCurveDrawer.h b/panda/src/parametrics/parametricCurveDrawer.h index df10be8e7c..2715128e44 100644 --- a/panda/src/parametrics/parametricCurveDrawer.h +++ b/panda/src/parametrics/parametricCurveDrawer.h @@ -53,6 +53,8 @@ PUBLISHED: void set_color(float r, float g, float b); void set_tick_color(float r, float g, float b); + void set_thickness(float thick); + void set_frame_accurate(bool frame_accurate); bool get_frame_accurate() const;