new C++ class hierarchy for graphical object - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/text.cpp
diff options
context:
space:
mode:
authorfrancesco-ST <francesco.abbate@st.com>2010年07月27日 15:34:41 +0200
committerfrancesco-ST <francesco.abbate@st.com>2010年07月27日 15:34:41 +0200
commit5b7cd1356fb503390febbc21b2d535e98de7f776 (patch)
tree27a1131ef6d25892fc5aa771130a2a1144765975 /agg-plot/text.cpp
parent73378bdf0eddb1003fb3ad17e047da717b29a009 (diff)
downloadgsl-shell-5b7cd1356fb503390febbc21b2d535e98de7f776.tar.gz
new C++ class hierarchy for graphical object
Now the design of the class hierarchy is ok. The code is still not working.
Diffstat (limited to 'agg-plot/text.cpp')
-rw-r--r--agg-plot/text.cpp 18
1 files changed, 17 insertions, 1 deletions
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);
}
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月29日 04:58:52 +0000

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