5#if defined(AST_WITH_AGG)
7A_SUPPRESS_WARNINGS_BEGIN
8#include "agg/agg_color_rgba.h"
9#include "agg/agg_math_stroke.h"
10A_SUPPRESS_WARNINGS_END
11#include "path_converters.h"
19 double linewidth = 1.5;
20 agg::rgba color{0.122, 0.467, 0.706, 1.0};
21 agg::line_cap_e cap = agg::square_cap;
22 agg::line_join_e join = agg::round_join;
23 bool antialiased =
true;
24 e_snap_mode snap = SNAP_AUTO;
26 double dash_offset = 0.0;
27 std::vector<double> dash_pattern{};
30 double simplify_threshold = 0.111111;
32 double sketch_scale = 0.0;
33 double sketch_length = 0.0;
34 double sketch_randomness = 0.0;
36 bool is_dashed()
const {
return !dash_pattern.empty(); }
37 double linewidth_px(
double dpi)
const {
return linewidth * dpi / 72.0; }