27 for (
unsigned i = 0; i <
n; ++i)
28 CGContextFillRect(ctx, CGRectMake(
xy[i].fX,
xy[i].fY, markerSize, markerSize));
36 const Double_t im = 4 * markerSize + 0.5;
38 for (
UInt_t i = 0; i <
n; ++i) {
42 CGContextBeginPath(ctx);
43 CGContextMoveToPoint(ctx, -im +
x,
y);
44 CGContextAddLineToPoint(ctx, im +
x,
y);
45 CGContextStrokePath(ctx);
47 CGContextBeginPath(ctx);
48 CGContextMoveToPoint(ctx,
x, -im +
y);
49 CGContextAddLineToPoint(ctx,
x, im +
y);
50 CGContextStrokePath(ctx);
62 star[0].
fX = -im; star[0].
fY = 0;
63 star[1].
fX = im; star[1].
fY = 0;
64 star[2].
fX = 0 ; star[2].
fY = -im;
65 star[3].
fX = 0 ; star[3].
fY = im;
67 im = 0.707 * im + 0.5;
68 star[4].
fX = -im; star[4].
fY = -im;
69 star[5].
fX = im; star[5].
fY = im;
70 star[6].
fX = -im; star[6].
fY = im;
71 star[7].
fX = im; star[7].
fY = -im;
73 for (
UInt_t i = 0; i <
n; ++i) {
77 CGContextBeginPath(ctx);
78 CGContextMoveToPoint(ctx, star[0].fX +
x, star[0].fY +
y);
79 CGContextAddLineToPoint(ctx, star[1].fX +
x, star[1].fY +
y);
80 CGContextStrokePath(ctx);
82 CGContextBeginPath(ctx);
83 CGContextMoveToPoint(ctx, star[2].fX +
x, star[2].fY +
y);
84 CGContextAddLineToPoint(ctx, star[3].fX +
x, star[3].fY +
y);
85 CGContextStrokePath(ctx);
87 CGContextBeginPath(ctx);
88 CGContextMoveToPoint(ctx, star[4].fX +
x, star[4].fY +
y);
89 CGContextAddLineToPoint(ctx, star[5].fX +
x, star[5].fY +
y);
90 CGContextStrokePath(ctx);
92 CGContextBeginPath(ctx);
93 CGContextMoveToPoint(ctx, star[6].fX +
x, star[6].fY +
y);
94 CGContextAddLineToPoint(ctx, star[7].fX +
x, star[7].fY +
y);
95 CGContextStrokePath(ctx);
110 for (
unsigned i = 0; i <
n; ++i) {
114 const CGRect
rect = CGRectMake(
x -
r,
y -
r,
d,
d);
115 CGContextStrokeEllipseInRect(ctx,
rect);
124 const Double_t im = 0.707 * (4 * markerSize + 0.5) + 0.5;
125 for (
unsigned i = 0; i <
n; ++i) {
129 CGContextBeginPath(ctx);
130 CGContextMoveToPoint(ctx, -im +
x, -im +
y);
131 CGContextAddLineToPoint(ctx, im +
x, im +
y);
132 CGContextStrokePath(ctx);
134 CGContextBeginPath(ctx);
135 CGContextMoveToPoint(ctx, -im +
x, im +
y);
136 CGContextAddLineToPoint(ctx, im +
x, -im +
y);
137 CGContextStrokePath(ctx);
145 for (
unsigned i = 0; i <
n; ++i) {
149 CGContextBeginPath(ctx);
150 CGContextMoveToPoint(ctx, -1. +
x,
y);
151 CGContextAddLineToPoint(ctx,
x + 1.,
y);
152 CGContextStrokePath(ctx);
154 CGContextBeginPath(ctx);
155 CGContextMoveToPoint(ctx,
x, -1. +
y);
156 CGContextAddLineToPoint(ctx,
x, 1. +
y);
157 CGContextStrokePath(ctx);
165 for (
unsigned i = 0; i <
n; ++i)
166 CGContextFillRect(ctx, CGRectMake(
xy[i].fX - 1,
xy[i].fY - 1, 3.f, 3.f));
174 Double_t radius = 4 * markerSize + 0.5;
180 for (
unsigned i = 0; i <
n; ++i) {
184 const CGRect
rect = CGRectMake(
x - radius,
y - radius,
d,
d);
185 CGContextFillEllipseInRect(ctx,
rect);
194 const Double_t im = 4 * markerSize + 0.5;
195 for (
unsigned i = 0; i <
n; ++i) {
196 const CGRect
rect = CGRectMake(
xy[i].fX - im,
xy[i].fY - im, im * 2, im * 2);
197 CGContextFillRect(ctx,
rect);
206 const Double_t im = 4 * markerSize + 0.5;
207 for (
unsigned i = 0; i <
n; ++i) {
208 const CGRect
rect = CGRectMake(
xy[i].fX - im,
xy[i].fY - im, im * 2, im * 2);
209 CGContextStrokeRect(ctx,
rect);
218 const Double_t im = 4 * markerSize + 0.5;
219 for (
unsigned i = 0; i <
n; ++i) {
222 CGContextBeginPath(ctx);
223 CGContextMoveToPoint(ctx,
x - im,
y - im);
224 CGContextAddLineToPoint(ctx,
x + im,
y - im);
225 CGContextAddLineToPoint(ctx,
x, im +
y);
226 CGContextFillPath(ctx);
235 const Double_t im = 4 * markerSize + 0.5;
236 for (
unsigned i = 0; i <
n; ++i) {
239 CGContextBeginPath(ctx);
240 CGContextMoveToPoint(ctx,
x - im,
y - im);
241 CGContextAddLineToPoint(ctx,
x + im,
y - im);
242 CGContextAddLineToPoint(ctx,
x, im +
y);
243 CGContextAddLineToPoint(ctx,
x - im,
y - im);
244 CGContextStrokePath(ctx);
254 for (
unsigned i = 0; i <
n; ++i) {
258 CGContextBeginPath(ctx);
259 CGContextMoveToPoint(ctx,
x - im,
y + im);
260 CGContextAddLineToPoint(ctx,
x,
y - im);
261 CGContextAddLineToPoint(ctx, im +
x,
y + im);
262 CGContextAddLineToPoint(ctx,
x - im,
y + im);
263 CGContextStrokePath(ctx);
273 for (
unsigned i = 0; i <
n; ++i) {
277 CGContextBeginPath(ctx);
278 CGContextMoveToPoint(ctx,
x - im,
y + im);
279 CGContextAddLineToPoint(ctx,
x,
y - im);
280 CGContextAddLineToPoint(ctx, im +
x,
y + im);
281 CGContextFillPath(ctx);
291 const Int_t imx =
Int_t(2.66 * markerSize + 0.5);
293 for (
unsigned i = 0; i <
n; ++i) {
297 CGContextBeginPath(ctx);
298 CGContextMoveToPoint(ctx,
x - imx,
y);
299 CGContextAddLineToPoint(ctx,
x,
y - im);
300 CGContextAddLineToPoint(ctx,
x + imx,
y);
301 CGContextAddLineToPoint(ctx,
x,
y + im);
302 CGContextDrawPath(ctx, kCGPathFillStroke);
312 const Int_t imx =
Int_t(2.66 * markerSize + 0.5);
314 for (
unsigned i = 0; i <
n; ++i) {
318 CGContextBeginPath(ctx);
319 CGContextMoveToPoint(ctx,
x - imx,
y);
320 CGContextAddLineToPoint(ctx,
x,
y - im);
321 CGContextAddLineToPoint(ctx,
x + imx,
y);
322 CGContextAddLineToPoint(ctx,
x,
y + im);
323 CGContextAddLineToPoint(ctx,
x - imx,
y);
324 CGContextStrokePath(ctx);
334 const Int_t imx =
Int_t(1.33 * markerSize + 0.5);
336 for (
unsigned i = 0; i <
n; ++i) {
340 CGContextBeginPath(ctx);
341 CGContextMoveToPoint(ctx,
x - im,
y - imx);
342 CGContextAddLineToPoint(ctx,
x - imx,
y - imx);
343 CGContextAddLineToPoint(ctx,
x - imx,
y - im);
344 CGContextAddLineToPoint(ctx,
x + imx,
y - im);
345 CGContextAddLineToPoint(ctx,
x + imx,
y - imx);
346 CGContextAddLineToPoint(ctx,
x + im,
y - imx);
347 CGContextAddLineToPoint(ctx,
x + im,
y + imx);
348 CGContextAddLineToPoint(ctx,
x + imx,
y + imx);
349 CGContextAddLineToPoint(ctx,
x + imx,
y + im);
350 CGContextAddLineToPoint(ctx,
x - imx,
y + im);
351 CGContextAddLineToPoint(ctx,
x - imx,
y + imx);
352 CGContextAddLineToPoint(ctx,
x - im,
y + imx);
353 CGContextAddLineToPoint(ctx,
x - im,
y - imx);
354 CGContextFillPath(ctx);
364 const Int_t imx =
Int_t(1.33 * markerSize + 0.5);
366 for (
unsigned i = 0; i <
n; ++i) {
370 CGContextBeginPath(ctx);
371 CGContextMoveToPoint(ctx,
x - im,
y - imx);
372 CGContextAddLineToPoint(ctx,
x - imx,
y - imx);
373 CGContextAddLineToPoint(ctx,
x - imx,
y - im);
374 CGContextAddLineToPoint(ctx,
x + imx,
y - im);
375 CGContextAddLineToPoint(ctx,
x + imx,
y - imx);
376 CGContextAddLineToPoint(ctx,
x + im,
y - imx);
377 CGContextAddLineToPoint(ctx,
x + im,
y + imx);
378 CGContextAddLineToPoint(ctx,
x + imx,
y + imx);
379 CGContextAddLineToPoint(ctx,
x + imx,
y + im);
380 CGContextAddLineToPoint(ctx,
x - imx,
y + im);
381 CGContextAddLineToPoint(ctx,
x - imx,
y + imx);
382 CGContextAddLineToPoint(ctx,
x - im,
y + imx);
383 CGContextAddLineToPoint(ctx,
x - im,
y - imx);
384 CGContextStrokePath(ctx);
395 const Int_t im1 =
Int_t(0.66 * markerSize + 0.5);
396 const Int_t im2 =
Int_t(2.00 * markerSize + 0.5);
397 const Int_t im3 =
Int_t(2.66 * markerSize + 0.5);
398 const Int_t im4 =
Int_t(1.33 * markerSize + 0.5);
400 for (
unsigned i = 0; i <
n; ++i) {
404 CGContextBeginPath(ctx);
405 CGContextMoveToPoint(ctx,
x - im,
y - im4);
406 CGContextAddLineToPoint(ctx,
x - im2,
y + im1);
407 CGContextAddLineToPoint(ctx,
x - im4,
y - im4);
408 CGContextFillPath(ctx);
410 CGContextBeginPath(ctx);
411 CGContextMoveToPoint(ctx,
x - im2,
y + im1);
412 CGContextAddLineToPoint(ctx,
x - im3,
y + im);
413 CGContextAddLineToPoint(ctx,
x,
y + im2);
414 CGContextFillPath(ctx);
416 CGContextBeginPath(ctx);
417 CGContextMoveToPoint(ctx,
x,
y + im2);
418 CGContextAddLineToPoint(ctx,
x + im3,
y + im);
419 CGContextAddLineToPoint(ctx,
x + im2,
y + im1);
420 CGContextFillPath(ctx);
422 CGContextBeginPath(ctx);
423 CGContextMoveToPoint(ctx,
x + im2,
y + im1);
424 CGContextAddLineToPoint(ctx,
x + im,
y - im4);
425 CGContextAddLineToPoint(ctx,
x + im4,
y - im4);
426 CGContextFillPath(ctx);
428 CGContextBeginPath(ctx);
429 CGContextMoveToPoint(ctx,
x + im4,
y - im4);
430 CGContextAddLineToPoint(ctx,
x,
y - im);
431 CGContextAddLineToPoint(ctx,
x - im4,
y - im4);
432 CGContextFillPath(ctx);
434 CGContextBeginPath(ctx);
435 CGContextMoveToPoint(ctx,
x - im4,
y - im4);
436 CGContextAddLineToPoint(ctx,
x - im2,
y + im1);
437 CGContextAddLineToPoint(ctx,
x,
y + im2);
438 CGContextFillPath(ctx);
440 CGContextBeginPath(ctx);
441 CGContextMoveToPoint(ctx,
x - im4,
y - im4);
442 CGContextAddLineToPoint(ctx,
x,
y + im2);
443 CGContextAddLineToPoint(ctx,
x + im2,
y + im1);
444 CGContextFillPath(ctx);
446 CGContextBeginPath(ctx);
447 CGContextMoveToPoint(ctx,
x - im4,
y - im4);
448 CGContextAddLineToPoint(ctx,
x + im2,
y + im1);
449 CGContextAddLineToPoint(ctx,
x + im4,
y - im4);
450 CGContextFillPath(ctx);
460 const Int_t im1 =
Int_t(0.66 * markerSize + 0.5);
461 const Int_t im2 =
Int_t(2.00 * markerSize + 0.5);
462 const Int_t im3 =
Int_t(2.66 * markerSize + 0.5);
463 const Int_t im4 =
Int_t(1.33 * markerSize + 0.5);
465 for (
unsigned i = 0; i <
n; ++i) {
469 CGContextBeginPath(ctx);
470 CGContextMoveToPoint(ctx,
x - im,
y - im4);
471 CGContextAddLineToPoint(ctx,
x - im2,
y + im1);
472 CGContextAddLineToPoint(ctx,
x - im3,
y + im);
473 CGContextAddLineToPoint(ctx,
x,
y + im2);
474 CGContextAddLineToPoint(ctx,
x + im3,
y + im);
475 CGContextAddLineToPoint(ctx,
x + im2,
y + im1);
476 CGContextAddLineToPoint(ctx,
x + im,
y - im4);
477 CGContextAddLineToPoint(ctx,
x + im4,
y - im4);
478 CGContextAddLineToPoint(ctx,
x,
y - im);
479 CGContextAddLineToPoint(ctx,
x - im4,
y - im4);
480 CGContextAddLineToPoint(ctx,
x - im,
y - im4);
481 CGContextStrokePath(ctx);
491 for (
unsigned i = 0; i <
n; ++i) {
495 CGContextBeginPath(ctx);
496 CGContextMoveToPoint(ctx,
x - im,
y - im);
497 CGContextAddLineToPoint(ctx,
x + im,
y - im);
498 CGContextAddLineToPoint(ctx,
x + im,
y + im);
499 CGContextAddLineToPoint(ctx,
x - im,
y + im);
500 CGContextAddLineToPoint(ctx,
x - im,
y - im);
501 CGContextAddLineToPoint(ctx,
x + im,
y + im);
502 CGContextStrokePath(ctx);
504 CGContextBeginPath(ctx);
505 CGContextMoveToPoint(ctx,
x - im,
y + im);
506 CGContextAddLineToPoint(ctx,
x + im,
y - im);
507 CGContextStrokePath(ctx);
517 for (
unsigned i = 0; i <
n; ++i) {
521 CGContextBeginPath(ctx);
522 CGContextMoveToPoint(ctx,
x - im,
y );
523 CGContextAddLineToPoint(ctx,
x ,
y - im);
524 CGContextAddLineToPoint(ctx,
x + im,
y );
525 CGContextAddLineToPoint(ctx,
x ,
y + im);
526 CGContextAddLineToPoint(ctx,
x - im,
y );
527 CGContextAddLineToPoint(ctx,
x + im,
y );
528 CGContextStrokePath(ctx);
530 CGContextBeginPath(ctx);
531 CGContextMoveToPoint(ctx,
x ,
y + im);
532 CGContextAddLineToPoint(ctx,
x ,
y - im);
533 CGContextStrokePath(ctx);
542 const Int_t im2 =
Int_t(2.00 * markerSize + 0.5);
544 for (
unsigned i = 0; i <
n; ++i) {
548 CGContextBeginPath(ctx);
549 CGContextMoveToPoint(ctx,
x ,
y );
550 CGContextAddLineToPoint(ctx,
x -im2,
y + im);
551 CGContextAddLineToPoint(ctx,
x - im,
y );
552 CGContextAddLineToPoint(ctx,
x ,
y );
553 CGContextAddLineToPoint(ctx,
x -im2,
y - im);
554 CGContextAddLineToPoint(ctx,
x +im2,
y - im);
555 CGContextAddLineToPoint(ctx,
x ,
y );
556 CGContextAddLineToPoint(ctx,
x + im,
y );
557 CGContextAddLineToPoint(ctx,
x +im2,
y + im);
558 CGContextAddLineToPoint(ctx,
x ,
y );
559 CGContextStrokePath(ctx);
568 const Int_t im2 =
Int_t(2.00 * markerSize + 0.5);
570 for (
unsigned i = 0; i <
n; ++i) {
574 CGContextBeginPath(ctx);
575 CGContextMoveToPoint(ctx,
x - im,
y );
576 CGContextAddLineToPoint(ctx,
x - im,
y -im2);
577 CGContextAddLineToPoint(ctx,
x -im2,
y - im);
578 CGContextAddLineToPoint(ctx,
x +im2,
y - im);
579 CGContextAddLineToPoint(ctx,
x + im,
y -im2);
580 CGContextAddLineToPoint(ctx,
x + im,
y +im2);
581 CGContextAddLineToPoint(ctx,
x +im2,
y + im);
582 CGContextAddLineToPoint(ctx,
x -im2,
y + im);
583 CGContextAddLineToPoint(ctx,
x - im,
y +im2);
584 CGContextAddLineToPoint(ctx,
x - im,
y );
585 CGContextAddLineToPoint(ctx,
x + im,
y );
586 CGContextStrokePath(ctx);
588 CGContextBeginPath(ctx);
589 CGContextMoveToPoint(ctx,
x ,
y - im);
590 CGContextAddLineToPoint(ctx,
x ,
y + im);
591 CGContextStrokePath(ctx);
600 const Int_t im2 =
Int_t(2.00 * markerSize + 0.5);
602 for (
unsigned i = 0; i <
n; ++i) {
606 CGContextBeginPath(ctx);
607 CGContextMoveToPoint(ctx,
x ,
y );
608 CGContextAddLineToPoint(ctx,
x -im2,
y + im);
609 CGContextAddLineToPoint(ctx,
x - im,
y );
610 CGContextAddLineToPoint(ctx,
x ,
y );
611 CGContextAddLineToPoint(ctx,
x -im2,
y - im);
612 CGContextAddLineToPoint(ctx,
x +im2,
y - im);
613 CGContextAddLineToPoint(ctx,
x ,
y );
614 CGContextAddLineToPoint(ctx,
x + im,
y );
615 CGContextAddLineToPoint(ctx,
x +im2,
y + im);
616 CGContextAddLineToPoint(ctx,
x ,
y );
617 CGContextFillPath(ctx);
626 const Int_t im2 =
Int_t(2.00 * markerSize + 0.5);
628 for (
unsigned i = 0; i <
n; ++i) {
632 CGContextBeginPath(ctx);
633 CGContextMoveToPoint(ctx,
x ,
y );
634 CGContextAddLineToPoint(ctx,
x +im2,
y + im);
635 CGContextAddLineToPoint(ctx,
x + im,
y +im2);
636 CGContextAddLineToPoint(ctx,
x ,
y );
637 CGContextAddLineToPoint(ctx,
x + im,
y -im2);
638 CGContextAddLineToPoint(ctx,
x +im2,
y - im);
639 CGContextAddLineToPoint(ctx,
x ,
y );
640 CGContextAddLineToPoint(ctx,
x -im2,
y - im);
641 CGContextAddLineToPoint(ctx,
x - im,
y -im2);
642 CGContextAddLineToPoint(ctx,
x ,
y );
643 CGContextAddLineToPoint(ctx,
x - im,
y +im2);
644 CGContextAddLineToPoint(ctx,
x -im2,
y + im);
645 CGContextAddLineToPoint(ctx,
x ,
y );
646 CGContextStrokePath(ctx);
655 const Int_t im2 =
Int_t(2.00 * markerSize + 0.5);
657 for (
unsigned i = 0; i <
n; ++i) {
661 CGContextBeginPath(ctx);
662 CGContextMoveToPoint(ctx,
x ,
y );
663 CGContextAddLineToPoint(ctx,
x +im2,
y + im);
664 CGContextAddLineToPoint(ctx,
x + im,
y +im2);
665 CGContextAddLineToPoint(ctx,
x ,
y );
666 CGContextAddLineToPoint(ctx,
x + im,
y -im2);
667 CGContextAddLineToPoint(ctx,
x +im2,
y - im);
668 CGContextAddLineToPoint(ctx,
x ,
y );
669 CGContextAddLineToPoint(ctx,
x -im2,
y - im);
670 CGContextAddLineToPoint(ctx,
x - im,
y -im2);
671 CGContextAddLineToPoint(ctx,
x ,
y );
672 CGContextAddLineToPoint(ctx,
x - im,
y +im2);
673 CGContextAddLineToPoint(ctx,
x -im2,
y + im);
674 CGContextAddLineToPoint(ctx,
x ,
y );
675 CGContextFillPath(ctx);
686 for (
unsigned i = 0; i <
n; ++i) {
690 CGContextBeginPath(ctx);
691 CGContextMoveToPoint(ctx,
x ,
y + im);
692 CGContextAddLineToPoint(ctx,
x -im4,
y +im4);
693 CGContextAddLineToPoint(ctx,
x - im,
y );
694 CGContextAddLineToPoint(ctx,
x -im4,
y -im4);
695 CGContextAddLineToPoint(ctx,
x ,
y - im);
696 CGContextAddLineToPoint(ctx,
x +im4,
y -im4);
697 CGContextAddLineToPoint(ctx,
x + im,
y );
698 CGContextAddLineToPoint(ctx,
x +im4,
y +im4);
699 CGContextAddLineToPoint(ctx,
x ,
y + im);
700 CGContextStrokePath(ctx);
711 for (
unsigned i = 0; i <
n; ++i) {
715 CGContextBeginPath(ctx);
716 CGContextMoveToPoint(ctx,
x ,
y + im);
717 CGContextAddLineToPoint(ctx,
x -im4,
y +im4);
718 CGContextAddLineToPoint(ctx,
x - im,
y );
719 CGContextAddLineToPoint(ctx,
x -im4,
y -im4);
720 CGContextAddLineToPoint(ctx,
x ,
y - im);
721 CGContextAddLineToPoint(ctx,
x +im4,
y -im4);
722 CGContextAddLineToPoint(ctx,
x + im,
y );
723 CGContextAddLineToPoint(ctx,
x +im4,
y +im4);
724 CGContextAddLineToPoint(ctx,
x ,
y + im);
725 CGContextFillPath(ctx);
734 const Int_t im2 =
Int_t(2.00 * markerSize + 0.5);
736 for (
unsigned i = 0; i <
n; ++i) {
740 CGContextBeginPath(ctx);
741 CGContextMoveToPoint(ctx,
x ,
y );
742 CGContextAddLineToPoint(ctx,
x +im2,
y + im);
743 CGContextAddLineToPoint(ctx,
x -im2,
y + im);
744 CGContextAddLineToPoint(ctx,
x +im2,
y - im);
745 CGContextAddLineToPoint(ctx,
x -im2,
y - im);
746 CGContextAddLineToPoint(ctx,
x ,
y );
747 CGContextAddLineToPoint(ctx,
x + im,
y +im2);
748 CGContextAddLineToPoint(ctx,
x + im,
y -im2);
749 CGContextAddLineToPoint(ctx,
x - im,
y +im2);
750 CGContextAddLineToPoint(ctx,
x - im,
y -im2);
751 CGContextAddLineToPoint(ctx,
x ,
y );
752 CGContextStrokePath(ctx);
761 const Int_t im2 =
Int_t(2.00 * markerSize + 0.5);
762 const Int_t im4 =
Int_t(0.2 * markerSize + 0.5);
764 for (
unsigned i = 0; i <
n; ++i) {
768 CGContextBeginPath(ctx);
769 CGContextMoveToPoint(ctx,
x +im4,
y +im4);
770 CGContextAddLineToPoint(ctx,
x +im2,
y + im);
771 CGContextAddLineToPoint(ctx,
x -im2,
y + im);
772 CGContextAddLineToPoint(ctx,
x -im4,
y +im4);
773 CGContextAddLineToPoint(ctx,
x - im,
y +im2);
774 CGContextAddLineToPoint(ctx,
x - im,
y -im2);
775 CGContextAddLineToPoint(ctx,
x -im4,
y -im4);
776 CGContextAddLineToPoint(ctx,
x -im2,
y - im);
777 CGContextAddLineToPoint(ctx,
x +im2,
y - im);
778 CGContextAddLineToPoint(ctx,
x +im4,
y -im4);
779 CGContextAddLineToPoint(ctx,
x + im,
y -im2);
780 CGContextAddLineToPoint(ctx,
x + im,
y +im2);
781 CGContextAddLineToPoint(ctx,
x +im4,
y +im4);
782 CGContextFillPath(ctx);
791 const Int_t im2 =
Int_t(2.00 * markerSize + 0.5);
793 for (
unsigned i = 0; i <
n; ++i) {
797 CGContextBeginPath(ctx);
798 CGContextMoveToPoint(ctx,
x ,
y + im2);
799 CGContextAddLineToPoint(ctx,
x -im2,
y + im);
800 CGContextAddLineToPoint(ctx,
x - im,
y +im2);
801 CGContextAddLineToPoint(ctx,
x -im2,
y );
802 CGContextAddLineToPoint(ctx,
x - im,
y -im2);
803 CGContextAddLineToPoint(ctx,
x -im2,
y - im);
804 CGContextAddLineToPoint(ctx,
x ,
y -im2);
805 CGContextAddLineToPoint(ctx,
x +im2,
y - im);
806 CGContextAddLineToPoint(ctx,
x + im,
y -im2);
807 CGContextAddLineToPoint(ctx,
x +im2,
y );
808 CGContextAddLineToPoint(ctx,
x + im,
y +im2);
809 CGContextAddLineToPoint(ctx,
x +im2,
y + im);
810 CGContextAddLineToPoint(ctx,
x ,
y +im2);
811 CGContextStrokePath(ctx);
820 const Int_t im2 =
Int_t(2.0 * markerSize + 0.5);
822 for (
unsigned i = 0; i <
n; ++i) {
826 CGContextBeginPath(ctx);
827 CGContextMoveToPoint(ctx,
x ,
y + im2);
828 CGContextAddLineToPoint(ctx,
x -im2,
y + im);
829 CGContextAddLineToPoint(ctx,
x - im,
y +im2);
830 CGContextAddLineToPoint(ctx,
x -im2,
y );
831 CGContextAddLineToPoint(ctx,
x - im,
y -im2);
832 CGContextAddLineToPoint(ctx,
x -im2,
y - im);
833 CGContextAddLineToPoint(ctx,
x ,
y -im2);
834 CGContextAddLineToPoint(ctx,
x +im2,
y - im);
835 CGContextAddLineToPoint(ctx,
x + im,
y -im2);
836 CGContextAddLineToPoint(ctx,
x +im2,
y );
837 CGContextAddLineToPoint(ctx,
x + im,
y +im2);
838 CGContextAddLineToPoint(ctx,
x +im2,
y + im);
839 CGContextAddLineToPoint(ctx,
x ,
y +im2);
840 CGContextFillPath(ctx);
849 const Int_t im2 =
Int_t(2.00 * markerSize + 0.5);
851 for (
unsigned i = 0; i <
n; ++i) {
855 CGContextBeginPath(ctx);
856 CGContextMoveToPoint(ctx,
x ,
y + im2*1.01);
857 CGContextAddLineToPoint(ctx,
x -im2,
y + im);
858 CGContextAddLineToPoint(ctx,
x - im,
y +im2);
859 CGContextAddLineToPoint(ctx,
x -im2,
y );
860 CGContextAddLineToPoint(ctx,
x - im,
y -im2);
861 CGContextAddLineToPoint(ctx,
x -im2,
y - im);
862 CGContextAddLineToPoint(ctx,
x ,
y -im2);
863 CGContextAddLineToPoint(ctx,
x +im2,
y - im);
864 CGContextAddLineToPoint(ctx,
x + im,
y -im2);
865 CGContextAddLineToPoint(ctx,
x +im2,
y );
866 CGContextAddLineToPoint(ctx,
x + im,
y +im2);
867 CGContextAddLineToPoint(ctx,
x +im2,
y + im);
868 CGContextAddLineToPoint(ctx,
x ,
y +im2*0.99);
869 CGContextAddLineToPoint(ctx,
x +im2*0.99,
y );
870 CGContextAddLineToPoint(ctx,
x ,
y -im2*0.99);
871 CGContextAddLineToPoint(ctx,
x -im2*0.99,
y );
872 CGContextAddLineToPoint(ctx,
x ,
y +im2*0.99);
873 CGContextFillPath(ctx);
882 const Int_t im2 =
Int_t(1.33 * markerSize + 0.5);
884 for (
unsigned i = 0; i <
n; ++i) {
888 CGContextBeginPath(ctx);
889 CGContextMoveToPoint(ctx,
x -im2,
y - im2*1.005);
890 CGContextAddLineToPoint(ctx,
x -im2,
y - im);
891 CGContextAddLineToPoint(ctx,
x +im2,
y - im);
892 CGContextAddLineToPoint(ctx,
x +im2,
y -im2);
893 CGContextAddLineToPoint(ctx,
x + im,
y -im2);
894 CGContextAddLineToPoint(ctx,
x + im,
y +im2);
895 CGContextAddLineToPoint(ctx,
x +im2,
y +im2);
896 CGContextAddLineToPoint(ctx,
x +im2,
y + im);
897 CGContextAddLineToPoint(ctx,
x -im2,
y + im);
898 CGContextAddLineToPoint(ctx,
x -im2,
y +im2);
899 CGContextAddLineToPoint(ctx,
x - im,
y +im2);
900 CGContextAddLineToPoint(ctx,
x - im,
y -im2);
901 CGContextAddLineToPoint(ctx,
x -im2,
y -im2*0.995);
902 CGContextAddLineToPoint(ctx,
x -im2,
y +im2);
903 CGContextAddLineToPoint(ctx,
x +im2,
y +im2);
904 CGContextAddLineToPoint(ctx,
x +im2,
y -im2);
905 CGContextAddLineToPoint(ctx,
x -im2,
y -im2*1.005);
906 CGContextFillPath(ctx);
921 if (scaleFactor > 1.)
922 CGContextScaleCTM(ctx, 1. / scaleFactor, 1. / scaleFactor);
927 if (markerStyle == 1 || markerStyle == 6 || markerStyle == 7) {
928 CGContextSetLineJoin(ctx, kCGLineJoinMiter);
929 CGContextSetLineCap(ctx, kCGLineCapButt);
931 CGContextSetLineJoin(ctx, kCGLineJoinRound);
932 CGContextSetLineCap(ctx, kCGLineCapRound);
936 markerSize *= scaleFactor;
938 switch (markerStyle) {
1049 CGContextSetLineJoin(ctx, kCGLineJoinMiter);
1050 CGContextSetLineCap(ctx, kCGLineCapButt);
short Style_t
Style number (short)
int Int_t
Signed integer 4 bytes (int)
float Size_t
Attribute size (float)
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int)
float Float_t
Float 4 bytes (float)
double Double_t
Double 8 bytes.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t rect
Option_t Option_t TPoint xy
Option_t Option_t TPoint DrawPolyMarker
virtual Style_t GetMarkerStyle() const
Return the marker style.
virtual Color_t GetMarkerColor() const
Return the marker color.
virtual Size_t GetMarkerSize() const
Return the marker size.
static Width_t GetMarkerLineWidth(Style_t style)
Internal helper function that returns the line width of the given marker style (0 = filled marker)
static Style_t GetMarkerStyleBase(Style_t style)
Internal helper function that returns the corresponding marker style with line width 1 for the given ...
void DrawMarkerOpenSquare(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerStar(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerFullTriangleDown(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerPlus(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerFullDotLarge(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerOpenDiamond(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerFullFourTrianglesPlus(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerOpenSquareDiagonal(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerOctagonCross(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerFullDotSmall(CGContextRef ctx, unsigned n, const TPoint *xy)
void DrawMarkerFullTriangleUp(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerFullCrossX(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerOpenCrossX(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
Bool_t SetLineColor(CGContextRef ctx, Color_t colorIndex)
void DrawMarkerDot(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerOpenDiamondCross(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerOpenThreeTriangles(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerOpenTriangleUp(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerFourSquaresPlus(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerFullStar(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerOpenFourTrianglesPlus(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerFourSquaresX(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
Bool_t SetFillColor(CGContextRef ctx, Color_t colorIndex)
void DrawMarkerOpenCross(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerFullSquare(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerOpenStar(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerX(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerFullDoubleDiamond(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerFullDiamond(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerFullThreeTriangles(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerOpenDoubleDiamond(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerFullFourTrianglesX(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerOpenCircle(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerFullCross(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerOpenTriangleDown(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void SetLineWidth(CGContextRef ctx, Int_t width)
void SetLineStyle(CGContextRef ctx, Int_t lstyle)
void DrawMarkerOpenFourTrianglesX(CGContextRef ctx, unsigned n, const TPoint *xy, Size_t markerSize)
void DrawMarkerFullDotMedium(CGContextRef ctx, unsigned n, const TPoint *xy)
Short_t Max(Short_t a, Short_t b)
Returns the largest of a and b.
Double_t Floor(Double_t x)
Rounds x downward, returning the largest integral value that is not greater than x.