Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/widgets/kis_cie_tongue_widget.cpp
Context not available. | |||||
508 | } | 508 | } | ||
---|---|---|---|---|---|
509 | } | 509 | } | ||
510 | 510 | | |||
511 | void KisCIETongueWidget::drawSmallElipse(QPointF xy, int r, int g, int b, int sz) | 511 | void KisCIETongueWidget::drawSmallEllipse(QPointF xy, int r, int g, int b, int sz) | ||
512 | { | 512 | { | ||
513 | int icx, icy; | 513 | int icx, icy; | ||
514 | 514 | | |||
Context not available. | |||||
529 | d->painter.setPen(qRgb(80, 80, 80)); | 529 | d->painter.setPen(qRgb(80, 80, 80)); | ||
530 | d->painter.setRenderHint(QPainter::Antialiasing); | 530 | d->painter.setRenderHint(QPainter::Antialiasing); | ||
531 | if (d->colorModel ==KisCIETongueWidget::RGBA) { | 531 | if (d->colorModel ==KisCIETongueWidget::RGBA) { | ||
532 | drawSmallElipse((QPointF(d->Primaries[0],d->Primaries[1])), 255, 128, 128, 6); | 532 | drawSmallEllipse((QPointF(d->Primaries[0],d->Primaries[1])), 255, 128, 128, 6); | ||
533 | drawSmallElipse((QPointF(d->Primaries[3],d->Primaries[4])), 128, 255, 128, 6); | 533 | drawSmallEllipse((QPointF(d->Primaries[3],d->Primaries[4])), 128, 255, 128, 6); | ||
534 | drawSmallElipse((QPointF(d->Primaries[6],d->Primaries[7])), 128, 128, 255, 6); | 534 | drawSmallEllipse((QPointF(d->Primaries[6],d->Primaries[7])), 128, 128, 255, 6); | ||
535 | 535 | | |||
536 | int x1, y1, x2, y2, x3, y3; | 536 | int x1, y1, x2, y2, x3, y3; | ||
537 | 537 | | |||
Context not available. | |||||
544 | biasedLine(x3, y3, x1, y1); | 544 | biasedLine(x3, y3, x1, y1); | ||
545 | } /*else if (d->colorModel ==CMYK){ | 545 | } /*else if (d->colorModel ==CMYK){ | ||
546 | for (i=0; i<d->Primaries.size();i+++){ | 546 | for (i=0; i<d->Primaries.size();i+++){ | ||
547 | drawSmallElipse((QPointF(d->Primaries[0],d->Primaries[1])), 160, 160, 160, 6);//greyscale for now | 547 | drawSmallEllipse((QPointF(d->Primaries[0],d->Primaries[1])), 160, 160, 160, 6);//greyscale for now | ||
548 | //int x1, y1, x2, y2; | 548 | //int x1, y1, x2, y2; | ||
549 | //mapPoint(x1, y1, (QPointF(d->Primaries[i],d->Primaries[i+1])) ); | 549 | //mapPoint(x1, y1, (QPointF(d->Primaries[i],d->Primaries[i+1])) ); | ||
550 | //mapPoint(x2, y2, (QPointF(d->Primaries[i+3],d->Primaries[i+4])) ); | 550 | //mapPoint(x2, y2, (QPointF(d->Primaries[i+3],d->Primaries[i+4])) ); | ||
Context not available. | |||||
558 | 558 | | |||
559 | void KisCIETongueWidget::drawWhitePoint() | 559 | void KisCIETongueWidget::drawWhitePoint() | ||
560 | { | 560 | { | ||
561 | drawSmallElipse(QPointF (d->whitePoint[0],d->whitePoint[1]), 255, 255, 255, 8); | 561 | drawSmallEllipse(QPointF (d->whitePoint[0],d->whitePoint[1]), 255, 255, 255, 8); | ||
562 | } | 562 | } | ||
563 | 563 | | |||
564 | void KisCIETongueWidget::drawGamut() | 564 | void KisCIETongueWidget::drawGamut() | ||
Context not available. |