|
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 (QVector< double > whitepoint) |
| void | setGamut (QPolygonF gamut) |
| void | setGrayData (QVector< double > whitepoint) |
| void | setLABData (QVector< double > whitepoint) |
| void | setProfileData (QVector< double > p, QVector< double > w, bool profileData=false) |
| void | setProfileDataAvailable (bool dataAvailable) |
| void | setRGBData (QVector< double > whitepoint, QVector< double > colorants) |
| void | setXYZData (QVector< double > whitepoint) |
| void | setYCbCrData (QVector< double > 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< double > | Primaries {9} |
| bool | profileDataAvailable {false} |
| int | pxcols {0} |
| int | pxrows {0} |
| bool | uncalibratedColor {false} |
| QVector< double > | whitePoint {3} |
| 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 278 of file kis_cie_tongue_widget.cpp.
References d.
|
protected |
Definition at line 283 of file kis_cie_tongue_widget.cpp.
References KoColorSpaceRegistry::colorSpace(), d, KoColorSpaceRegistry::instance(), and KoColor::toQColor().
|
private |
Definition at line 479 of file kis_cie_tongue_widget.cpp.
References biasedLine(), d, drawSmallEllipse(), mapPoint(), and RGBA.
|
private |
Definition at line 517 of file kis_cie_tongue_widget.cpp.
References d, mapPoint(), and RGBA.
|
protected |
Definition at line 417 of file kis_cie_tongue_widget.cpp.
References biasedLine(), biasedText(), colorByCoord(), d, grids(), mapPoint(), p, and spectral_chromaticity.
|
private |
|
protected |
Definition at line 464 of file kis_cie_tongue_widget.cpp.
References d, and mapPoint().
|
protected |
Definition at line 374 of file kis_cie_tongue_widget.cpp.
References biasedLine(), biasedText(), d, and grids().
|
protected |
Definition at line 401 of file kis_cie_tongue_widget.cpp.
References biasedLine(), d, and grids().
|
private |
Definition at line 512 of file kis_cie_tongue_widget.cpp.
References d, and drawSmallEllipse().
|
protected |
Definition at line 334 of file kis_cie_tongue_widget.cpp.
References colorByCoord(), d, and pxcols.
|
protected |
Definition at line 171 of file kis_cie_tongue_widget.cpp.
References d.
| void KisCIETongueWidget::loadingFailed | ( | ) |
| void KisCIETongueWidget::loadingStarted | ( | ) |
|
private |
|
protected |
Definition at line 306 of file kis_cie_tongue_widget.cpp.
References biasedLine(), mapPoint(), p, and spectral_chromaticity.
|
overrideprotected |
Definition at line 620 of file kis_cie_tongue_widget.cpp.
References d, p, palette, and updatePixmap().
|
overrideprotected |
Definition at line 679 of file kis_cie_tongue_widget.cpp.
References d.
Definition at line 205 of file kis_cie_tongue_widget.cpp.
| void KisCIETongueWidget::setGamut | ( | QPolygonF | gamut | ) |
Definition at line 188 of file kis_cie_tongue_widget.cpp.
Definition at line 229 of file kis_cie_tongue_widget.cpp.
Definition at line 240 of file kis_cie_tongue_widget.cpp.
| void KisCIETongueWidget::setProfileData | ( | QVector< double > | p, |
| QVector< double > | w, | ||
| bool | profileData = false ) |
Definition at line 176 of file kis_cie_tongue_widget.cpp.
| void KisCIETongueWidget::setProfileDataAvailable | ( | bool | dataAvailable | ) |
Definition at line 263 of file kis_cie_tongue_widget.cpp.
References d.
Definition at line 192 of file kis_cie_tongue_widget.cpp.
Definition at line 218 of file kis_cie_tongue_widget.cpp.
Definition at line 251 of file kis_cie_tongue_widget.cpp.
| void KisCIETongueWidget::uncalibratedColor | ( | ) |
|
private |
Definition at line 563 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 86 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<double> KisCIETongueWidget::Primaries {9} |
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.
| QVector<double> KisCIETongueWidget::whitePoint {3} |
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.