author | Francesco Abbate <francesco.bbt@gmail.com> | 2012年01月24日 18:19:41 +0100 |
---|---|---|
committer | Francesco Abbate <francesco.bbt@gmail.com> | 2012年01月30日 21:26:02 +0100 |
commit | 336b7b2386f8021a3dc569addf2e2876b10d711b (patch) | |
tree | 9abffd4b383ce85c64352d2dd26c7df99fde8bb8 /agg-plot/sg_object.h | |
parent | 17a0c5fb5ebaed9a694b8f48e14eb085ffcb9ab1 (diff) | |
download | gsl-shell-336b7b2386f8021a3dc569addf2e2876b10d711b.tar.gz |
-rw-r--r-- | agg-plot/sg_object.h | 16 |
diff --git a/agg-plot/sg_object.h b/agg-plot/sg_object.h index f1d5ec7b..00dabda1 100644 --- a/agg-plot/sg_object.h +++ b/agg-plot/sg_object.h @@ -43,16 +43,16 @@ struct sg_object : public vertex_source { virtual bool affine_compose(agg::trans_affine& m) { return false; } - virtual str write_svg(int id, agg::rgba8 c) { + virtual str write_svg(int id, agg::rgba8 c, double h) { str path; - svg_property_list* ls = this->svg_path(path); + svg_property_list* ls = this->svg_path(path, h); str s = svg_fill_path(path, id, c, ls); list::free(ls); return s; } - virtual svg_property_list* svg_path(str& s) { - svg_coords_from_vs(this, s); + virtual svg_property_list* svg_path(str& s, double h) { + svg_coords_from_vs(this, s, h); return 0; } @@ -188,9 +188,13 @@ public: virtual void bounding_box(double *x1, double *y1, double *x2, double *y2) { this->m_source->bounding_box(x1, y1, x2, y2); } - virtual str write_svg(int id, agg::rgba8 c) { return this->m_source->write_svg(id, c); } + virtual str write_svg(int id, agg::rgba8 c, double h) { + return this->m_source->write_svg(id, c, h); + } - virtual svg_property_list* svg_path(str& s) { return this->m_source->svg_path(s); } + virtual svg_property_list* svg_path(str& s, double h) { + return this->m_source->svg_path(s, h); + } virtual bool affine_compose(agg::trans_affine& m) { return this->m_source->affine_compose(m); } |