MCPcopy Create free account
hub / github.com/MapServer/MapServer / path_attributes

Class path_attributes

renderers/agg/include/agg_svg_path_renderer.h:62–123  ·  view source on GitHub ↗

============================================================================ Basic path attributes

Source from the content-addressed store, hash-verified

60 //============================================================================
61 // Basic path attributes
62 struct path_attributes
63 {
64 unsigned index;
65 rgba8 fill_color;
66 rgba8 stroke_color;
67 bool fill_flag;
68 bool stroke_flag;
69 bool even_odd_flag;
70 line_join_e line_join;
71 line_cap_e line_cap;
72 double miter_limit;
73 double stroke_width;
74 trans_affine transform;
75
76 // Empty constructor
77 path_attributes() :
78 index(0),
79 fill_color(rgba(0,0,0)),
80 stroke_color(rgba(0,0,0)),
81 fill_flag(true),
82 stroke_flag(false),
83 even_odd_flag(false),
84 line_join(miter_join),
85 line_cap(butt_cap),
86 miter_limit(4.0),
87 stroke_width(1.0),
88 transform()
89 {
90 }
91
92 // Copy constructor
93 path_attributes(const path_attributes& attr) :
94 index(attr.index),
95 fill_color(attr.fill_color),
96 stroke_color(attr.stroke_color),
97 fill_flag(attr.fill_flag),
98 stroke_flag(attr.stroke_flag),
99 even_odd_flag(attr.even_odd_flag),
100 line_join(attr.line_join),
101 line_cap(attr.line_cap),
102 miter_limit(attr.miter_limit),
103 stroke_width(attr.stroke_width),
104 transform(attr.transform)
105 {
106 }
107
108 // Copy constructor with new index value
109 path_attributes(const path_attributes& attr, unsigned idx) :
110 index(idx),
111 fill_color(attr.fill_color),
112 stroke_color(attr.stroke_color),
113 fill_flag(attr.fill_flag),
114 stroke_flag(attr.stroke_flag),
115 even_odd_flag(attr.even_odd_flag),
116 line_join(attr.line_join),
117 line_cap(attr.line_cap),
118 miter_limit(attr.miter_limit),
119 stroke_width(attr.stroke_width),

Callers 2

begin_pathMethod · 0.85
push_attrMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected