author | francesco-ST <francesco.abbate@st.com> | 2010年07月27日 15:34:41 +0200 |
---|---|---|
committer | francesco-ST <francesco.abbate@st.com> | 2010年07月27日 15:34:41 +0200 |
commit | 5b7cd1356fb503390febbc21b2d535e98de7f776 (patch) | |
tree | 27a1131ef6d25892fc5aa771130a2a1144765975 /agg-plot/text.cpp | |
parent | 73378bdf0eddb1003fb3ad17e047da717b29a009 (diff) | |
download | gsl-shell-5b7cd1356fb503390febbc21b2d535e98de7f776.tar.gz |
-rw-r--r-- | agg-plot/text.cpp | 18 |
diff --git a/agg-plot/text.cpp b/agg-plot/text.cpp index 809884e1..36e5c332 100644 --- a/agg-plot/text.cpp +++ b/agg-plot/text.cpp @@ -4,10 +4,26 @@ namespace draw { void - text::apply_transform(agg:trans_affine& m) + text::rewind(unsigned path_id) + { + m_stroke.rewind(path_id); + } + + unsigned + text::vertex(double* x, double* y) + { + return m_stroke.vertex(x, y); + } + + void + text::apply_transform(agg::trans_affine& m) { double& x = m_matrix.tx; double& y = m_matrix.ty; + + x = m_x; + y = m_y; + m.transform(&x, &y); } |