blob: 90d9ebff98a66069e13540a2f66a632d8b4a135b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
#define INKSCAPE_LIVEPATHEFFECT_PARAMETER_VECTOR_CPP
/*
* Copyright (C) Johan Engelen 2008 <j.b.c.engelen@utwente.nl>
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "live_effects/parameter/vector.h"
#include "svg/svg.h"
#include "svg/stringstream.h"
#include <2geom/coord.h>
namespace Inkscape {
namespace LivePathEffect {
template <>
double
VectorParam<double>::readsvg(const gchar * str)
{
double newx = Geom::infinity();
sp_svg_number_read_d(str, &newx);
return newx;
}
template <>
float
VectorParam<float>::readsvg(const gchar * str)
{
float newx = Geom::infinity();
sp_svg_number_read_f(str, &newx);
return newx;
}
} /* namespace LivePathEffect */
} /* namespace Inkscape */
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :
|