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
52
53
54
55
|
#ifndef SEEN_PATH_OUTLINE_H
#define SEEN_PATH_OUTLINE_H
/* Author:
* Liam P. White <inkscapebrony@gmail.com>
*
* Copyright (C) 2014 Author
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <livarot/Path.h>
#include <livarot/LivarotDefs.h>
enum LineJoinType {
LINEJOIN_STRAIGHT,
LINEJOIN_ROUND,
LINEJOIN_POINTY,
LINEJOIN_REFLECTED,
LINEJOIN_EXTRAPOLATED
};
enum ButtTypeMod {
BUTT_STRAIGHT,
BUTT_ROUND,
BUTT_SQUARE,
BUTT_POINTY,
BUTT_LEANED
};
namespace Geom
{
Geom::CubicBezier sbasis_to_cubicbezier(Geom::D2<Geom::SBasis> const & sbasis_in);
std::vector<Geom::Path> split_at_cusps(const Geom::Path& in);
}
namespace Outline
{
unsigned bezierOrder (const Geom::Curve* curve_in);
std::vector<Geom::Path> PathVectorOutline(std::vector<Geom::Path> const & path_in, double line_width, ButtTypeMod linecap_type,
LineJoinType linejoin_type, double miter_limit, double start_lean = 0, double end_lean = 0);
Geom::Path PathOutsideOutline(Geom::Path const & path_in, double line_width, LineJoinType linejoin_type, double miter_limit);
}
#endif // SEEN_PATH_OUTLINE_H
/*
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:fileencoding=utf-8 :
|