gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/lua-plot-cpp.h
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2010年09月07日 23:40:05 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2010年09月07日 23:40:05 +0200
commitd50cced431bcf32ded6a58a8ffad6e642b7d410b (patch)
treecb5c33a3bfe359d1b8a78901e3297f56a985cbd8 /agg-plot/lua-plot-cpp.h
parent8b197f7c910e80c791082e925da4535b780a90be (diff)
downloadgsl-shell-d50cced431bcf32ded6a58a8ffad6e642b7d410b.tar.gz
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.
Diffstat (limited to 'agg-plot/lua-plot-cpp.h')
-rw-r--r--agg-plot/lua-plot-cpp.h 14
1 files changed, 2 insertions, 12 deletions
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<drawable, lua_management> plot_type;
-
- lua_plot() : m_plot() { };
-
- plot_type& self() { return m_plot; };
-
-private:
- plot_type m_plot;
-};
+typedef plot<drawable, lua_management> lua_plot;
#endif
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月17日 23:44:44 +0000

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