added plot_auto as a derived class of plot that compute bounding box - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/window.cpp
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/window.cpp
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/window.cpp')
-rw-r--r--agg-plot/window.cpp 2
1 files changed, 1 insertions, 1 deletions
diff --git a/agg-plot/window.cpp b/agg-plot/window.cpp
index 0d7f6c8b..fb4c86a5 100644
--- a/agg-plot/window.cpp
+++ b/agg-plot/window.cpp
@@ -263,7 +263,7 @@ int window::attach(lua_plot *plot, const char *spec)
if (! r)
return -1;
- r->plot = & plot->self();
+ r->plot = plot;
return r->slot_id;
}
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月13日 10:32:48 +0000

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