23 for (
unsigned i = 0; i <
n; ++i)
24 CGContextFillRect(ctx, CGRectMake(xy[i].fX, xy[i].fY, 1.
f, 1.
f));
32 const Double_t im = 4 * markerSize + 0.5;
34 for (
UInt_t i = 0; i <
n; ++i) {
38 CGContextBeginPath(ctx);
39 CGContextMoveToPoint(ctx, -im + x, y);
40 CGContextAddLineToPoint(ctx, im + x, y);
41 CGContextStrokePath(ctx);
43 CGContextBeginPath(ctx);
44 CGContextMoveToPoint(ctx, x, -im + y);
45 CGContextAddLineToPoint(ctx, x, im + y);
46 CGContextStrokePath(ctx);
58 star[0].
fX = -im; star[0].
fY = 0;
59 star[1].
fX = im; star[1].
fY = 0;
60 star[2].
fX = 0 ; star[2].
fY = -im;
61 star[3].
fX = 0 ; star[3].
fY = im;
63 im = 0.707 * im + 0.5;
64 star[4].
fX = -im; star[4].
fY = -im;
65 star[5].
fX = im; star[5].
fY = im;
66 star[6].
fX = -im; star[6].
fY = im;
67 star[7].
fX = im; star[7].
fY = -im;
69 for (
UInt_t i = 0; i <
n; ++i) {
73 CGContextBeginPath(ctx);
74 CGContextMoveToPoint(ctx, star[0].fX + x, star[0].fY + y);
75 CGContextAddLineToPoint(ctx, star[1].fX + x, star[1].fY + y);
76 CGContextStrokePath(ctx);
78 CGContextBeginPath(ctx);
79 CGContextMoveToPoint(ctx, star[2].fX + x, star[2].fY + y);
80 CGContextAddLineToPoint(ctx, star[3].fX + x, star[3].fY + y);
81 CGContextStrokePath(ctx);
83 CGContextBeginPath(ctx);
84 CGContextMoveToPoint(ctx, star[4].fX + x, star[4].fY + y);
85 CGContextAddLineToPoint(ctx, star[5].fX + x, star[5].fY + y);
86 CGContextStrokePath(ctx);
88 CGContextBeginPath(ctx);
89 CGContextMoveToPoint(ctx, star[6].fX + x, star[6].fY + y);
90 CGContextAddLineToPoint(ctx, star[7].fX + x, star[7].fY + y);
91 CGContextStrokePath(ctx);
106 for (
unsigned i = 0; i <
n; ++i) {
110 const CGRect rect = CGRectMake(x - r, y - r, d, d);
111 CGContextStrokeEllipseInRect(ctx, rect);
120 const Double_t im = 0.707 * (4 * markerSize + 0.5) + 0.5;
121 for (
unsigned i = 0; i <
n; ++i) {
125 CGContextBeginPath(ctx);
126 CGContextMoveToPoint(ctx, -im + x, -im + y);
127 CGContextAddLineToPoint(ctx, im + x, im + y);
128 CGContextStrokePath(ctx);
130 CGContextBeginPath(ctx);
131 CGContextMoveToPoint(ctx, -im + x, im + y);
132 CGContextAddLineToPoint(ctx, im + x, -im + y);
133 CGContextStrokePath(ctx);
141 for (
unsigned i = 0; i <
n; ++i) {
145 CGContextBeginPath(ctx);
146 CGContextMoveToPoint(ctx, -1. + x, y);
147 CGContextAddLineToPoint(ctx, x + 1., y);
148 CGContextStrokePath(ctx);
150 CGContextBeginPath(ctx);
151 CGContextMoveToPoint(ctx, x, -1. + y);
152 CGContextAddLineToPoint(ctx, x, 1. + y);
153 CGContextStrokePath(ctx);
161 for (
unsigned i = 0; i <
n; ++i)
162 CGContextFillRect(ctx, CGRectMake(xy[i].fX - 1, xy[i].fY - 1, 3.
f, 3.
f));
170 Double_t radius = 4 * markerSize + 0.5;
176 for (
unsigned i = 0; i <
n; ++i) {
180 const CGRect rect = CGRectMake(x - radius, y - radius, d, d);
181 CGContextFillEllipseInRect(ctx, rect);
190 const Double_t im = 4 * markerSize + 0.5;
191 for (
unsigned i = 0; i <
n; ++i) {
192 const CGRect rect = CGRectMake(xy[i].fX - im, xy[i].fY - im, im * 2, im * 2);
193 CGContextFillRect(ctx, rect);
202 const Double_t im = 4 * markerSize + 0.5;
203 for (
unsigned i = 0; i <
n; ++i) {
204 const CGRect rect = CGRectMake(xy[i].fX - im, xy[i].fY - im, im * 2, im * 2);
205 CGContextStrokeRect(ctx, rect);
214 const Double_t im = 4 * markerSize + 0.5;
215 for (
unsigned i = 0; i <
n; ++i) {
218 CGContextBeginPath(ctx);
219 CGContextMoveToPoint(ctx, x - im, y - im);
220 CGContextAddLineToPoint(ctx, x + im, y - im);
221 CGContextAddLineToPoint(ctx, x, im + y);
222 CGContextFillPath(ctx);
231 const Double_t im = 4 * markerSize + 0.5;
232 for (
unsigned i = 0; i <
n; ++i) {
235 CGContextBeginPath(ctx);
236 CGContextMoveToPoint(ctx, x - im, y - im);
237 CGContextAddLineToPoint(ctx, x + im, y - im);
238 CGContextAddLineToPoint(ctx, x, im + y);
239 CGContextAddLineToPoint(ctx, x - im, y - im);
240 CGContextStrokePath(ctx);
250 for (
unsigned i = 0; i <
n; ++i) {
254 CGContextBeginPath(ctx);
255 CGContextMoveToPoint(ctx, x - im, y + im);
256 CGContextAddLineToPoint(ctx, x, y - im);
257 CGContextAddLineToPoint(ctx, im + x, y + im);
258 CGContextAddLineToPoint(ctx, x - im, y + im);
259 CGContextStrokePath(ctx);
269 for (
unsigned i = 0; i <
n; ++i) {
273 CGContextBeginPath(ctx);
274 CGContextMoveToPoint(ctx, x - im, y + im);
275 CGContextAddLineToPoint(ctx, x, y - im);
276 CGContextAddLineToPoint(ctx, im + x, y + im);
277 CGContextFillPath(ctx);
287 const Int_t imx =
Int_t(2.66 * markerSize + 0.5);
289 for (
unsigned i = 0; i <
n; ++i) {
293 CGContextBeginPath(ctx);
294 CGContextMoveToPoint(ctx, x - imx, y);
295 CGContextAddLineToPoint(ctx, x, y - im);
296 CGContextAddLineToPoint(ctx, x + imx, y);
297 CGContextAddLineToPoint(ctx, x, y + im);
298 CGContextDrawPath(ctx, kCGPathFillStroke);
308 const Int_t imx =
Int_t(2.66 * markerSize + 0.5);
310 for (
unsigned i = 0; i <
n; ++i) {
314 CGContextBeginPath(ctx);
315 CGContextMoveToPoint(ctx, x - imx, y);
316 CGContextAddLineToPoint(ctx, x, y - im);
317 CGContextAddLineToPoint(ctx, x + imx, y);
318 CGContextAddLineToPoint(ctx, x, y + im);
319 CGContextAddLineToPoint(ctx, x - imx, y);
320 CGContextStrokePath(ctx);
330 const Int_t imx =
Int_t(1.33 * markerSize + 0.5);
332 for (
unsigned i = 0; i <
n; ++i) {
336 CGContextBeginPath(ctx);
337 CGContextMoveToPoint(ctx, x - im, y - imx);
338 CGContextAddLineToPoint(ctx, x - imx, y - imx);
339 CGContextAddLineToPoint(ctx, x - imx, y - im);
340 CGContextAddLineToPoint(ctx, x + imx, y - im);
341 CGContextAddLineToPoint(ctx, x + imx, y - imx);
342 CGContextAddLineToPoint(ctx, x + im, y - imx);
343 CGContextAddLineToPoint(ctx, x + im, y + imx);
344 CGContextAddLineToPoint(ctx, x + imx, y + imx);
345 CGContextAddLineToPoint(ctx, x + imx, y + im);
346 CGContextAddLineToPoint(ctx, x - imx, y + im);
347 CGContextAddLineToPoint(ctx, x - imx, y + imx);
348 CGContextAddLineToPoint(ctx, x - im, y + imx);
349 CGContextAddLineToPoint(ctx, x - im, y - imx);
350 CGContextFillPath(ctx);
360 const Int_t imx =
Int_t(1.33 * markerSize + 0.5);
362 for (
unsigned i = 0; i <
n; ++i) {
366 CGContextBeginPath(ctx);
367 CGContextMoveToPoint(ctx, x - im, y - imx);
368 CGContextAddLineToPoint(ctx, x - imx, y - imx);
369 CGContextAddLineToPoint(ctx, x - imx, y - im);
370 CGContextAddLineToPoint(ctx, x + imx, y - im);
371 CGContextAddLineToPoint(ctx, x + imx, y - imx);
372 CGContextAddLineToPoint(ctx, x + im, y - imx);
373 CGContextAddLineToPoint(ctx, x + im, y + imx);
374 CGContextAddLineToPoint(ctx, x + imx, y + imx);
375 CGContextAddLineToPoint(ctx, x + imx, y + im);
376 CGContextAddLineToPoint(ctx, x - imx, y + im);
377 CGContextAddLineToPoint(ctx, x - imx, y + imx);
378 CGContextAddLineToPoint(ctx, x - im, y + imx);
379 CGContextAddLineToPoint(ctx, x - im, y - imx);
380 CGContextStrokePath(ctx);
391 const Int_t im1 =
Int_t(0.66 * markerSize + 0.5);
392 const Int_t im2 =
Int_t(2.00 * markerSize + 0.5);
393 const Int_t im3 =
Int_t(2.66 * markerSize + 0.5);
394 const Int_t im4 =
Int_t(1.33 * markerSize + 0.5);
396 for (
unsigned i = 0; i <
n; ++i) {
400 CGContextBeginPath(ctx);
401 CGContextMoveToPoint(ctx, x - im, y - im4);
402 CGContextAddLineToPoint(ctx, x - im2, y + im1);
403 CGContextAddLineToPoint(ctx, x - im4, y - im4);
404 CGContextFillPath(ctx);
406 CGContextBeginPath(ctx);
407 CGContextMoveToPoint(ctx, x - im2, y + im1);
408 CGContextAddLineToPoint(ctx, x - im3, y + im);
409 CGContextAddLineToPoint(ctx, x, y + im2);
410 CGContextFillPath(ctx);
412 CGContextBeginPath(ctx);
413 CGContextMoveToPoint(ctx, x, y + im2);
414 CGContextAddLineToPoint(ctx, x + im3, y + im);
415 CGContextAddLineToPoint(ctx, x + im2, y + im1);
416 CGContextFillPath(ctx);
418 CGContextBeginPath(ctx);
419 CGContextMoveToPoint(ctx, x + im2, y + im1);
420 CGContextAddLineToPoint(ctx, x + im, y - im4);
421 CGContextAddLineToPoint(ctx,x + im4, y - im4);
422 CGContextFillPath(ctx);
424 CGContextBeginPath(ctx);
425 CGContextMoveToPoint(ctx, x + im4, y - im4);
426 CGContextAddLineToPoint(ctx, x, y - im);
427 CGContextAddLineToPoint(ctx, x - im4, y - im4);
428 CGContextFillPath(ctx);
430 CGContextBeginPath(ctx);
431 CGContextMoveToPoint(ctx, x - im4, y - im4);
432 CGContextAddLineToPoint(ctx, x - im2, y + im1);
433 CGContextAddLineToPoint(ctx, x, y + im2);
434 CGContextFillPath(ctx);
436 CGContextBeginPath(ctx);
437 CGContextMoveToPoint(ctx, x - im4, y - im4);
438 CGContextAddLineToPoint(ctx, x, y + im2);
439 CGContextAddLineToPoint(ctx, x + im2, y + im1);
440 CGContextFillPath(ctx);
442 CGContextBeginPath(ctx);
443 CGContextMoveToPoint(ctx, x - im4, y - im4);
444 CGContextAddLineToPoint(ctx, x + im2, y + im1);
445 CGContextAddLineToPoint(ctx, x + im4, y - im4);
446 CGContextFillPath(ctx);
456 const Int_t im1 =
Int_t(0.66 * markerSize + 0.5);
457 const Int_t im2 =
Int_t(2.00 * markerSize + 0.5);
458 const Int_t im3 =
Int_t(2.66 * markerSize + 0.5);
459 const Int_t im4 =
Int_t(1.33 * markerSize + 0.5);
461 for (
unsigned i = 0; i <
n; ++i) {
465 CGContextBeginPath(ctx);
466 CGContextMoveToPoint(ctx, x - im, y - im4);
467 CGContextAddLineToPoint(ctx, x - im2, y + im1);
468 CGContextAddLineToPoint(ctx, x - im3, y + im);
469 CGContextAddLineToPoint(ctx, x, y + im2);
470 CGContextAddLineToPoint(ctx, x + im3, y + im);
471 CGContextAddLineToPoint(ctx, x + im2, y + im1);
472 CGContextAddLineToPoint(ctx, x + im, y - im4);
473 CGContextAddLineToPoint(ctx, x + im4, y - im4);
474 CGContextAddLineToPoint(ctx, x, y - im);
475 CGContextAddLineToPoint(ctx, x - im4, y - im4);
476 CGContextAddLineToPoint(ctx, x - im, y - im4);
477 CGContextStrokePath(ctx);
486 switch (markerStyle) {
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
void DrawMarkerOpenDiamond(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerFullDotMedium(CGContextRef ctx, unsigned n, const TPoint *xy)
void DrawMarkerOpenTriangleUp(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerOpenTriangleDown(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerX(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerOpenCircle(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerFullSquare(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerFullDiamond(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerFullDotSmall(CGContextRef ctx, unsigned n, const TPoint *xy)
void DrawMarkerOpenSquare(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawPolyMarker(CGContextRef ctx, const std::vector< TPoint > &marker, Size_t markerSize, Style_t markerStyle)
void DrawMarkerStar(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerFullStar(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerOpenStar(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerDot(CGContextRef ctx, unsigned n, const TPoint *xy)
void DrawMarkerFullDotLarge(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerFullTriangleDown(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerOpenCross(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerPlus(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerFullTriangleUp(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerFullCross(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)