|
Krita Source Code Documentation
|
#include <kis_cie_tongue_widget.h>
Inheritance diagram for KisCIETongueWidget:Public Types | |
| enum | model { RGBA , CMYKA , XYZA , LABA , GRAYA , YCbCrA } |
Public Member Functions | |
| KisCIETongueWidget (QWidget *parent=nullptr) | |
| void | loadingFailed () |
| void | loadingStarted () |
| void | setCMYKData (KoColorimetryUtils::xyY whitepoint) |
| void | setGamut (QPolygonF gamut) |
| void | setGrayData (KoColorimetryUtils::xyY whitepoint) |
| void | setLABData (KoColorimetryUtils::xyY whitepoint) |
| void | setProfileData (QVector< KoColorimetryUtils::xyY > p, KoColorimetryUtils::xyY w, bool profileData=false) |
| void | setProfileDataAvailable (bool dataAvailable) |
| void | setRGBData (KoColorimetryUtils::xyY whitepoint, QVector< KoColorimetryUtils::xyY > colorants) |
| void | setXYZData (KoColorimetryUtils::xyY whitepoint) |
| void | setYCbCrData (KoColorimetryUtils::xyY whitepoint) |
| void | uncalibratedColor () |
| ~KisCIETongueWidget () override | |
Public Attributes | |
| QPixmap | cietongue |
| bool | cieTongueNeedsUpdate {true} |
| model | colorModel {model::RGBA} |
| QPolygonF | gamut |
| QPixmap | gamutMap |
| double | gridside {0.0} |
| bool | needUpdatePixmap {false} |
| QPainter | painter |
| QPixmap | pixmap |
| QVector< KoColorimetryUtils::xyY > | Primaries |
| bool | profileDataAvailable {false} |
| int | pxcols {0} |
| int | pxrows {0} |
| bool | uncalibratedColor {false} |
| KoColorimetryUtils::xyY | whitePoint |
| int | xBias {0} |
| int | yBias {0} |
Protected Member Functions | |
| QRgb | colorByCoord (double x, double y) |
| void | drawLabels () |
| void | drawSmallEllipse (QPointF xy, int r, int g, int b, int sz) |
| void | drawTongueAxis () |
| void | drawTongueGrid () |
| void | fillTongue () |
| int | grids (double val) const |
| void | outlineTongue () |
| void | paintEvent (QPaintEvent *) override |
| void | resizeEvent (QResizeEvent *event) override |
Private Member Functions | |
| void | biasedLine (int x1, int y1, int x2, int y2) |
| void | biasedText (int x, int y, const QString &txt) |
| void | drawColorantTriangle () |
| void | drawGamut () |
| void | drawPatches () |
| void | drawWhitePoint () |
| void | mapPoint (int &icx, int &icy, QPointF xy) |
| void | updatePixmap () |
Private Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
Private Attributes | |
| Private *const | d {nullptr} |
Private Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Definition at line 128 of file kis_cie_tongue_widget.cpp.
| KisCIETongueWidget::KisCIETongueWidget | ( | QWidget * | parent = nullptr | ) |
Definition at line 156 of file kis_cie_tongue_widget.cpp.
References d.
|
override |
|
private |
|
private |
Definition at line 255 of file kis_cie_tongue_widget.cpp.
References d.
|
protected |
Definition at line 260 of file kis_cie_tongue_widget.cpp.
References KoColorSpaceRegistry::colorSpace(), d, KoColorSpaceRegistry::instance(), and KoColor::toQColor().
|
private |
Definition at line 460 of file kis_cie_tongue_widget.cpp.
References biasedLine(), d, drawSmallEllipse(), mapPoint(), RGBA, and xyYToQPointF().
|
private |
Definition at line 498 of file kis_cie_tongue_widget.cpp.
References d, mapPoint(), RGBA, and xyYToQPointF().
|
protected |
Definition at line 394 of file kis_cie_tongue_widget.cpp.
References biasedLine(), biasedText(), colorByCoord(), d, grids(), mapPoint(), p, and spectral_chromaticity.
|
private |
|
protected |
Definition at line 441 of file kis_cie_tongue_widget.cpp.
References d, and mapPoint().
|
protected |
Definition at line 351 of file kis_cie_tongue_widget.cpp.
References biasedLine(), biasedText(), d, and grids().
|
protected |
Definition at line 378 of file kis_cie_tongue_widget.cpp.
References biasedLine(), d, and grids().
|
private |
Definition at line 493 of file kis_cie_tongue_widget.cpp.
References d, drawSmallEllipse(), and xyYToQPointF().
|
protected |
Definition at line 311 of file kis_cie_tongue_widget.cpp.
References colorByCoord(), d, and pxcols.
|
protected |
Definition at line 168 of file kis_cie_tongue_widget.cpp.
References d.
| void KisCIETongueWidget::loadingFailed | ( | ) |
| void KisCIETongueWidget::loadingStarted | ( | ) |
|
private |
|
protected |
Definition at line 283 of file kis_cie_tongue_widget.cpp.
References biasedLine(), mapPoint(), p, and spectral_chromaticity.
|
overrideprotected |
Definition at line 604 of file kis_cie_tongue_widget.cpp.
References d, p, palette, and updatePixmap().
|
overrideprotected |
Definition at line 663 of file kis_cie_tongue_widget.cpp.
References d.
| void KisCIETongueWidget::setCMYKData | ( | KoColorimetryUtils::xyY | whitepoint | ) |
Definition at line 202 of file kis_cie_tongue_widget.cpp.
| void KisCIETongueWidget::setGamut | ( | QPolygonF | gamut | ) |
Definition at line 185 of file kis_cie_tongue_widget.cpp.
| void KisCIETongueWidget::setGrayData | ( | KoColorimetryUtils::xyY | whitepoint | ) |
Definition at line 218 of file kis_cie_tongue_widget.cpp.
| void KisCIETongueWidget::setLABData | ( | KoColorimetryUtils::xyY | whitepoint | ) |
Definition at line 225 of file kis_cie_tongue_widget.cpp.
| void KisCIETongueWidget::setProfileData | ( | QVector< KoColorimetryUtils::xyY > | p, |
| KoColorimetryUtils::xyY | w, | ||
| bool | profileData = false ) |
Definition at line 173 of file kis_cie_tongue_widget.cpp.
| void KisCIETongueWidget::setProfileDataAvailable | ( | bool | dataAvailable | ) |
Definition at line 240 of file kis_cie_tongue_widget.cpp.
References d.
| void KisCIETongueWidget::setRGBData | ( | KoColorimetryUtils::xyY | whitepoint, |
| QVector< KoColorimetryUtils::xyY > | colorants ) |
Definition at line 189 of file kis_cie_tongue_widget.cpp.
| void KisCIETongueWidget::setXYZData | ( | KoColorimetryUtils::xyY | whitepoint | ) |
Definition at line 211 of file kis_cie_tongue_widget.cpp.
| void KisCIETongueWidget::setYCbCrData | ( | KoColorimetryUtils::xyY | whitepoint | ) |
Definition at line 232 of file kis_cie_tongue_widget.cpp.
| void KisCIETongueWidget::uncalibratedColor | ( | ) |
|
private |
Definition at line 547 of file kis_cie_tongue_widget.cpp.
References d, drawColorantTriangle(), drawGamut(), drawLabels(), drawTongueAxis(), drawTongueGrid(), drawWhitePoint(), fillTongue(), grids(), and outlineTongue().
| QPixmap KisCIETongueWidget::cietongue |
Definition at line 147 of file kis_cie_tongue_widget.cpp.
| bool KisCIETongueWidget::cieTongueNeedsUpdate {true} |
Definition at line 134 of file kis_cie_tongue_widget.cpp.
| model KisCIETongueWidget::colorModel {model::RGBA} |
Definition at line 153 of file kis_cie_tongue_widget.cpp.
|
private |
Definition at line 87 of file kis_cie_tongue_widget.h.
| QPolygonF KisCIETongueWidget::gamut |
Definition at line 152 of file kis_cie_tongue_widget.cpp.
| QPixmap KisCIETongueWidget::gamutMap |
Definition at line 148 of file kis_cie_tongue_widget.cpp.
| double KisCIETongueWidget::gridside {0.0} |
Definition at line 142 of file kis_cie_tongue_widget.cpp.
| bool KisCIETongueWidget::needUpdatePixmap {false} |
Definition at line 133 of file kis_cie_tongue_widget.cpp.
| QPainter KisCIETongueWidget::painter |
Definition at line 144 of file kis_cie_tongue_widget.cpp.
| QPixmap KisCIETongueWidget::pixmap |
Definition at line 146 of file kis_cie_tongue_widget.cpp.
| QVector<KoColorimetryUtils::xyY> KisCIETongueWidget::Primaries |
Definition at line 150 of file kis_cie_tongue_widget.cpp.
| bool KisCIETongueWidget::profileDataAvailable {false} |
Definition at line 132 of file kis_cie_tongue_widget.cpp.
| int KisCIETongueWidget::pxcols {0} |
Definition at line 139 of file kis_cie_tongue_widget.cpp.
| int KisCIETongueWidget::pxrows {0} |
Definition at line 140 of file kis_cie_tongue_widget.cpp.
| bool KisCIETongueWidget::uncalibratedColor {false} |
Definition at line 135 of file kis_cie_tongue_widget.cpp.
| KoColorimetryUtils::xyY KisCIETongueWidget::whitePoint |
Definition at line 151 of file kis_cie_tongue_widget.cpp.
| int KisCIETongueWidget::xBias {0} |
Definition at line 137 of file kis_cie_tongue_widget.cpp.
| int KisCIETongueWidget::yBias {0} |
Definition at line 138 of file kis_cie_tongue_widget.cpp.