arrow.diff
src/core/symbology/qgsmarkercatalogue.cpp (working copy) | ||
---|---|---|
50 | 50 |
mList.append( "hard:cross2" ); |
51 | 51 |
mList.append( "hard:triangle" ); |
52 | 52 |
mList.append( "hard:star" ); |
53 |
mList.append( "hard:arrow" ); |
|
53 | 54 | |
54 | 55 |
// SVG |
55 | 56 |
QString svgPath = QgsApplication::svgPath(); |
... | ... | |
282 | 283 |
pa.setPoint( 9, x_c + oneSixth, y_c - oneSixth ); |
283 | 284 |
thepPainter->drawPolygon( pa ); |
284 | 285 |
} |
286 | ||
287 |
else if (name == "arrow") |
|
288 |
{ |
|
289 |
int quater = r/4; |
|
290 |
int half = r/2; |
|
291 | ||
292 |
QPolygon pa(7); |
|
293 |
pa.setPoint( 0, x_c, y_c-r); |
|
294 |
pa.setPoint( 1, x_c + half, y_c- half); |
|
295 |
pa.setPoint( 2, x_c + quater, y_c- half); |
|
296 |
pa.setPoint( 3, x_c + quater, y_c + r); |
|
297 |
pa.setPoint( 4, x_c - quater, y_c + r); |
|
298 |
pa.setPoint( 5, x_c - quater, y_c - half); |
|
299 |
pa.setPoint( 6, x_c - half, y_c - half); |
|
300 |
thepPainter->drawPolygon ( pa ); |
|
301 |
} |
|
285 | 302 |
thepPainter->end(); |
286 | 303 |
} |