gnash::agg_style_gradient< color_type, span_allocator_type, interpolator_type, gradient_func_type, gradient_adaptor_type, color_func_type, sg_type > Class Template Reference

#include <render_handler_agg_style.h>

Inheritance diagram for gnash::agg_style_gradient< color_type, span_allocator_type, interpolator_type, gradient_func_type, gradient_adaptor_type, color_func_type, sg_type >:

gnash::agg_style_base

List of all members.

Public Member Functions

 agg_style_gradient (const gnash::fill_style &fs, gnash::matrix mat, gnash::cxform cx, int norm_size)
virtual ~agg_style_gradient ()
void generate_span (color_type *span, int x, int y, unsigned len)
gradient_adaptor_type & get_gradient_adaptor ()

Protected Attributes

gnash::cxform m_cx
span_allocator_type m_sa
agg::trans_affine m_tr
interpolator_type m_span_interpolator
gradient_func_type m_gradient_func
gradient_adaptor_type m_gradient_adaptor
color_func_type m_gradient_lut
sg_type m_sg


Detailed Description

template<class color_type, class span_allocator_type, class interpolator_type, class gradient_func_type, class gradient_adaptor_type, class color_func_type, class sg_type>
class gnash::agg_style_gradient< color_type, span_allocator_type, interpolator_type, gradient_func_type, gradient_adaptor_type, color_func_type, sg_type >

AGG gradient fill style. Don't use Gnash texture bitmaps as this is slower and less accurate. Even worse, the bitmap fill would need to be tweaked to have non-repeating gradients (first and last color stops continue forever on each side). This class can be used for any kind of gradient, so even focal gradients should be possible.

Constructor & Destructor Documentation

template<class color_type, class span_allocator_type, class interpolator_type, class gradient_func_type, class gradient_adaptor_type, class color_func_type, class sg_type>
gnash::agg_style_gradient< color_type, span_allocator_type, interpolator_type, gradient_func_type, gradient_adaptor_type, color_func_type, sg_type >::agg_style_gradient ( const gnash::fill_style fs,
gnash::matrix  mat,
gnash::cxform  cx,
int  norm_size 
) [inline]

template<class color_type, class span_allocator_type, class interpolator_type, class gradient_func_type, class gradient_adaptor_type, class color_func_type, class sg_type>
virtual gnash::agg_style_gradient< color_type, span_allocator_type, interpolator_type, gradient_func_type, gradient_adaptor_type, color_func_type, sg_type >::~agg_style_gradient (  )  [inline, virtual]


Member Function Documentation

template<class color_type, class span_allocator_type, class interpolator_type, class gradient_func_type, class gradient_adaptor_type, class color_func_type, class sg_type>
void gnash::agg_style_gradient< color_type, span_allocator_type, interpolator_type, gradient_func_type, gradient_adaptor_type, color_func_type, sg_type >::generate_span ( color_type *  span,
int  x,
int  y,
unsigned  len 
) [inline]

template<class color_type, class span_allocator_type, class interpolator_type, class gradient_func_type, class gradient_adaptor_type, class color_func_type, class sg_type>
gradient_adaptor_type& gnash::agg_style_gradient< color_type, span_allocator_type, interpolator_type, gradient_func_type, gradient_adaptor_type, color_func_type, sg_type >::get_gradient_adaptor (  )  [inline]


Member Data Documentation

template<class color_type, class span_allocator_type, class interpolator_type, class gradient_func_type, class gradient_adaptor_type, class color_func_type, class sg_type>
gnash::cxform gnash::agg_style_gradient< color_type, span_allocator_type, interpolator_type, gradient_func_type, gradient_adaptor_type, color_func_type, sg_type >::m_cx [protected]

template<class color_type, class span_allocator_type, class interpolator_type, class gradient_func_type, class gradient_adaptor_type, class color_func_type, class sg_type>
span_allocator_type gnash::agg_style_gradient< color_type, span_allocator_type, interpolator_type, gradient_func_type, gradient_adaptor_type, color_func_type, sg_type >::m_sa [protected]

template<class color_type, class span_allocator_type, class interpolator_type, class gradient_func_type, class gradient_adaptor_type, class color_func_type, class sg_type>
agg::trans_affine gnash::agg_style_gradient< color_type, span_allocator_type, interpolator_type, gradient_func_type, gradient_adaptor_type, color_func_type, sg_type >::m_tr [protected]

template<class color_type, class span_allocator_type, class interpolator_type, class gradient_func_type, class gradient_adaptor_type, class color_func_type, class sg_type>
interpolator_type gnash::agg_style_gradient< color_type, span_allocator_type, interpolator_type, gradient_func_type, gradient_adaptor_type, color_func_type, sg_type >::m_span_interpolator [protected]

template<class color_type, class span_allocator_type, class interpolator_type, class gradient_func_type, class gradient_adaptor_type, class color_func_type, class sg_type>
gradient_func_type gnash::agg_style_gradient< color_type, span_allocator_type, interpolator_type, gradient_func_type, gradient_adaptor_type, color_func_type, sg_type >::m_gradient_func [protected]

template<class color_type, class span_allocator_type, class interpolator_type, class gradient_func_type, class gradient_adaptor_type, class color_func_type, class sg_type>
gradient_adaptor_type gnash::agg_style_gradient< color_type, span_allocator_type, interpolator_type, gradient_func_type, gradient_adaptor_type, color_func_type, sg_type >::m_gradient_adaptor [protected]

template<class color_type, class span_allocator_type, class interpolator_type, class gradient_func_type, class gradient_adaptor_type, class color_func_type, class sg_type>
color_func_type gnash::agg_style_gradient< color_type, span_allocator_type, interpolator_type, gradient_func_type, gradient_adaptor_type, color_func_type, sg_type >::m_gradient_lut [protected]

template<class color_type, class span_allocator_type, class interpolator_type, class gradient_func_type, class gradient_adaptor_type, class color_func_type, class sg_type>
sg_type gnash::agg_style_gradient< color_type, span_allocator_type, interpolator_type, gradient_func_type, gradient_adaptor_type, color_func_type, sg_type >::m_sg [protected]


The documentation for this class was generated from the following file:
Generated on Thu Mar 6 18:25:09 2008 for Gnash by  doxygen 1.5.4