21 #ifndef AGG_SPAN_INTERPOLATOR_TRANS_INCLUDED 22 #define AGG_SPAN_INTERPOLATOR_TRANS_INCLUDED 24 #include "agg_basics.h" 29 template<
class Transformer,
unsigned SubpixelShift = 8>
33 typedef Transformer trans_type;
36 subpixel_shift = SubpixelShift,
37 subpixel_scale = 1 << subpixel_shift
44 double x,
double y,
unsigned) :
51 const trans_type& transformer()
const {
return *m_trans; }
52 void transformer(
const trans_type& trans) { m_trans = &trans; }
55 void begin(
double x,
double y,
unsigned)
59 m_trans->transform(&x, &y);
60 m_ix = iround(x * subpixel_scale);
61 m_iy = iround(y * subpixel_scale);
70 m_trans->transform(&x, &y);
71 m_ix = iround(x * subpixel_scale);
72 m_iy = iround(y * subpixel_scale);
76 void coordinates(
int* x,
int* y)
const