From d50cced431bcf32ded6a58a8ffad6e642b7d410b Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Tue, 7 Sep 2010 23:40:05 +0200 Subject: added plot_auto as a derived class of plot that compute bounding box The code of plot.h is now factored in two classes, a base class plus a derived class, "plot_auto". This latter class enhance the base class by automatically calculating the bounding box for the graphical elements. Added Lua function "canvas", it does create a plot without automatic bounding box calculation. Needs to be developed. --- agg-plot/lua-plot-cpp.h | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'agg-plot/lua-plot-cpp.h') diff --git a/agg-plot/lua-plot-cpp.h b/agg-plot/lua-plot-cpp.h index a3420708..d360decd 100644 --- a/agg-plot/lua-plot-cpp.h +++ b/agg-plot/lua-plot-cpp.h @@ -7,20 +7,10 @@ extern "C" { #include "lua.h" } -#include "plot.h" +#include "plot-auto.h" #include "resource-manager.h" #include "drawable.h" -class lua_plot { -public: - typedef plot plot_type; - - lua_plot() : m_plot() { }; - - plot_type& self() { return m_plot; }; - -private: - plot_type m_plot; -}; +typedef plot lua_plot; #endif -- cgit v1.2.3

AltStyle によって変換されたページ (->オリジナル) /