Of course,we can use one templated member functions
to handle all symbolizers.
This commit is contained in:
parent
6a4070a32a
commit
a181d78403
1 changed files with 2 additions and 26 deletions
|
@ -43,36 +43,12 @@ namespace mapnik
|
||||||
symbol_dispatch (Processor & output,Feature const& f)
|
symbol_dispatch (Processor & output,Feature const& f)
|
||||||
: output_(output),f_(f) {}
|
: output_(output),f_(f) {}
|
||||||
|
|
||||||
void operator () (polygon_symbolizer const& sym) const
|
template <typename T>
|
||||||
|
void operator () (T const& sym) const
|
||||||
{
|
{
|
||||||
output_.process(sym,f_);
|
output_.process(sym,f_);
|
||||||
}
|
}
|
||||||
|
|
||||||
void operator () (polygon_pattern_symbolizer const& sym) const
|
|
||||||
{
|
|
||||||
output_.process(sym,f_);
|
|
||||||
}
|
|
||||||
|
|
||||||
void operator () (line_symbolizer const& sym) const
|
|
||||||
{
|
|
||||||
output_.process(sym,f_);
|
|
||||||
}
|
|
||||||
|
|
||||||
void operator () (line_pattern_symbolizer const& sym) const
|
|
||||||
{
|
|
||||||
output_.process(sym,f_);
|
|
||||||
}
|
|
||||||
|
|
||||||
void operator () (point_symbolizer const& sym) const
|
|
||||||
{
|
|
||||||
output_.process(sym,f_);
|
|
||||||
}
|
|
||||||
|
|
||||||
void operator () (raster_symbolizer const& sym) const
|
|
||||||
{
|
|
||||||
output_.process(sym,f_);
|
|
||||||
}
|
|
||||||
|
|
||||||
Processor & output_;
|
Processor & output_;
|
||||||
Feature const& f_;
|
Feature const& f_;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue