+ format
This commit is contained in:
parent
6e03fd7bb1
commit
04589282bb
1 changed files with 171 additions and 171 deletions
|
@ -35,16 +35,16 @@
|
|||
|
||||
namespace mapnik { namespace svg {
|
||||
|
||||
using namespace boost::fusion;
|
||||
using namespace boost::fusion;
|
||||
|
||||
inline double deg2rad(double deg)
|
||||
{
|
||||
inline double deg2rad(double deg)
|
||||
{
|
||||
return (M_PI * deg)/180.0;
|
||||
}
|
||||
}
|
||||
|
||||
template <typename PathType>
|
||||
struct move_to
|
||||
{
|
||||
template <typename PathType>
|
||||
struct move_to
|
||||
{
|
||||
template <typename T0, typename T1>
|
||||
struct result
|
||||
{
|
||||
|
@ -61,11 +61,11 @@ namespace mapnik { namespace svg {
|
|||
}
|
||||
|
||||
PathType & path_;
|
||||
};
|
||||
};
|
||||
|
||||
template <typename PathType>
|
||||
struct hline_to
|
||||
{
|
||||
template <typename PathType>
|
||||
struct hline_to
|
||||
{
|
||||
template <typename T0, typename T1>
|
||||
struct result
|
||||
{
|
||||
|
@ -82,12 +82,12 @@ namespace mapnik { namespace svg {
|
|||
}
|
||||
|
||||
PathType & path_;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
template <typename PathType>
|
||||
struct vline_to
|
||||
{
|
||||
template <typename PathType>
|
||||
struct vline_to
|
||||
{
|
||||
template <typename T0, typename T1>
|
||||
struct result
|
||||
{
|
||||
|
@ -104,11 +104,11 @@ namespace mapnik { namespace svg {
|
|||
}
|
||||
|
||||
PathType & path_;
|
||||
};
|
||||
};
|
||||
|
||||
template <typename PathType>
|
||||
struct line_to
|
||||
{
|
||||
template <typename PathType>
|
||||
struct line_to
|
||||
{
|
||||
template <typename T0, typename T1>
|
||||
struct result
|
||||
{
|
||||
|
@ -125,12 +125,12 @@ namespace mapnik { namespace svg {
|
|||
}
|
||||
|
||||
PathType & path_;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
template <typename PathType>
|
||||
struct curve4
|
||||
{
|
||||
template <typename PathType>
|
||||
struct curve4
|
||||
{
|
||||
template <typename T0, typename T1, typename T2, typename T3>
|
||||
struct result
|
||||
{
|
||||
|
@ -150,12 +150,12 @@ namespace mapnik { namespace svg {
|
|||
}
|
||||
|
||||
PathType & path_;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
template <typename PathType>
|
||||
struct curve4_smooth
|
||||
{
|
||||
template <typename PathType>
|
||||
struct curve4_smooth
|
||||
{
|
||||
template <typename T0, typename T1, typename T2>
|
||||
struct result
|
||||
{
|
||||
|
@ -173,11 +173,11 @@ namespace mapnik { namespace svg {
|
|||
rel); // impl
|
||||
}
|
||||
PathType & path_;
|
||||
};
|
||||
};
|
||||
|
||||
template <typename PathType>
|
||||
struct curve3
|
||||
{
|
||||
template <typename PathType>
|
||||
struct curve3
|
||||
{
|
||||
template <typename T0, typename T1, typename T2>
|
||||
struct result
|
||||
{
|
||||
|
@ -196,11 +196,11 @@ namespace mapnik { namespace svg {
|
|||
}
|
||||
|
||||
PathType & path_;
|
||||
};
|
||||
};
|
||||
|
||||
template <typename PathType>
|
||||
struct curve3_smooth
|
||||
{
|
||||
template <typename PathType>
|
||||
struct curve3_smooth
|
||||
{
|
||||
template <typename T0, typename T1>
|
||||
struct result
|
||||
{
|
||||
|
@ -218,11 +218,11 @@ namespace mapnik { namespace svg {
|
|||
}
|
||||
|
||||
PathType & path_;
|
||||
};
|
||||
};
|
||||
|
||||
template <typename PathType>
|
||||
struct arc_to
|
||||
{
|
||||
template <typename PathType>
|
||||
struct arc_to
|
||||
{
|
||||
template <typename T0, typename T1, typename T2, typename T3, typename T4, typename T5>
|
||||
struct result
|
||||
{
|
||||
|
@ -242,11 +242,11 @@ namespace mapnik { namespace svg {
|
|||
}
|
||||
|
||||
PathType & path_;
|
||||
};
|
||||
};
|
||||
|
||||
template <typename PathType>
|
||||
struct close
|
||||
{
|
||||
template <typename PathType>
|
||||
struct close
|
||||
{
|
||||
typedef void result_type;
|
||||
|
||||
explicit close(PathType & path)
|
||||
|
@ -258,9 +258,9 @@ namespace mapnik { namespace svg {
|
|||
}
|
||||
|
||||
PathType & path_;
|
||||
};
|
||||
};
|
||||
|
||||
}}
|
||||
}}
|
||||
|
||||
|
||||
#endif // MAPNIK_SVG_COMMANDS_HPP
|
||||
|
|
Loading…
Add table
Reference in a new issue