gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/trans.h
diff options
context:
space:
mode:
Diffstat (limited to 'agg-plot/trans.h')
-rw-r--r--agg-plot/trans.h 20
1 files changed, 20 insertions, 0 deletions
diff --git a/agg-plot/trans.h b/agg-plot/trans.h
index 0649ddaa..35dec2a7 100644
--- a/agg-plot/trans.h
+++ b/agg-plot/trans.h
@@ -6,6 +6,7 @@
#include "agg_conv_curve.h"
#include "agg_conv_dash.h"
#include "agg_conv_transform.h"
+#include "agg_conv_contour.h"
#include "agg_vcgen_markers_term.h"
#include "agg_arrowhead.h"
#include "agg_bounding_rect.h"
@@ -59,6 +60,7 @@ typedef vs_trans_proxy<agg::conv_stroke<vertex_source> > vs_stroke;
typedef vs_trans_proxy<agg::conv_curve<vertex_source> > vs_curve;
typedef vs_trans_proxy<agg::conv_dash<vertex_source> > vs_dash;
typedef vs_trans_proxy<agg::conv_transform<vertex_source> > vs_transform;
+typedef vs_trans_proxy<agg::conv_contour<vertex_source> > vs_contour;
namespace trans {
@@ -127,6 +129,24 @@ namespace trans {
m_source->apply_transform(m, as);
};
};
+
+ class extend : public vs_contour {
+ public:
+ typedef agg::conv_contour<vertex_source> base_type;
+
+ extend(vertex_source* src, double width): vs_contour(src)
+ {
+ base_type& v = self();
+ v.width(width);
+ v.auto_detect_orientation(true);
+ };
+
+ virtual void apply_transform(agg::trans_affine& m, double as)
+ {
+ m_output.approximation_scale(as);
+ m_source->apply_transform(m, as);
+ };
+ };
class resize : public vs_transform {
agg::trans_affine m_matrix;
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月15日 22:13:11 +0000

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