|
Krita Source Code Documentation
|
A port of MyPaint's "Crossed Bowl" color selector. More...
#include <WGMyPaintShadeSelector.h>
Inheritance diagram for WGMyPaintShadeSelector:Public Member Functions | |
| void | setModel (KisVisualColorModelSP model) override |
| WGMyPaintShadeSelector (WGSelectorDisplayConfigSP displayConfig, QWidget *parent, UiMode mode) | |
| ~WGMyPaintShadeSelector () override | |
Public Member Functions inherited from WGSelectorWidgetBase | |
| WGSelectorDisplayConfigSP | displayConfiguration () const |
| const KisDisplayColorConverter * | displayConverter () const |
| virtual QPoint | popupOffset () const |
| The position, relative to the top left corner, where the cursor of the cursor shall be when showing the popup. | |
| void | setUiMode (UiMode mode) |
| UiMode | uiMode () const |
| virtual void | updateSettings () |
| WGSelectorWidgetBase (WGSelectorDisplayConfigSP displayConfig, QWidget *parent=nullptr, UiMode uiMode=UiMode::DockerMode) | |
Protected Member Functions | |
| bool | getChannelValues (QPoint pos, QVector4D &values, QVector4D &blendValues) |
| void | mouseMoveEvent (QMouseEvent *event) override |
| void | mousePressEvent (QMouseEvent *event) override |
| void | mouseReleaseEvent (QMouseEvent *event) override |
| void | paintEvent (QPaintEvent *) override |
| void | pickColorAt (const QPointF &posF) |
| void | recalculateSizeHD () |
| void | resizeEvent (QResizeEvent *event) override |
Private Slots | |
| void | slotSetChannelValues (const QVector4D &values) |
Private Attributes | |
| bool | m_allowUpdates {true} |
| float | m_colorH {0.0f} |
| float | m_colorS {0.0f} |
| float | m_colorV {0.0f} |
| int | m_heightHD |
| KisVisualColorModelSP | m_model |
| KisPaintDeviceSP | m_realCircleBorder |
| KisPaintDeviceSP | m_realPixelCache |
| int | m_sizeHD |
| int | m_widthHD |
Additional Inherited Members | |
Public Types inherited from WGSelectorWidgetBase | |
| enum | UiMode { DockerMode , PopupMode } |
Signals inherited from WGSelectorWidgetBase | |
| void | sigChannelValuesChanged (const QVector4D &values) |
| void | sigColorInteraction (bool active) |
A port of MyPaint's "Crossed Bowl" color selector.
Definition at line 18 of file WGMyPaintShadeSelector.h.
| WGMyPaintShadeSelector::WGMyPaintShadeSelector | ( | WGSelectorDisplayConfigSP | displayConfig, |
| QWidget * | parent, | ||
| UiMode | mode ) |
Definition at line 44 of file WGMyPaintShadeSelector.cpp.
References recalculateSizeHD().
|
override |
Definition at line 50 of file WGMyPaintShadeSelector.cpp.
|
protected |
Definition at line 162 of file WGMyPaintShadeSelector.cpp.
References m_colorH, m_colorS, m_colorV, m_heightHD, M_PI, m_sizeHD, m_widthHD, signedSqr(), sqr(), sqr2(), and v.
|
overrideprotected |
Definition at line 81 of file WGMyPaintShadeSelector.cpp.
References pickColorAt().
|
overrideprotected |
Definition at line 71 of file WGMyPaintShadeSelector.cpp.
References pickColorAt(), and WGSelectorWidgetBase::sigColorInteraction().
|
overrideprotected |
Definition at line 92 of file WGMyPaintShadeSelector.cpp.
References WGSelectorWidgetBase::sigColorInteraction().
|
overrideprotected |
Definition at line 101 of file WGMyPaintShadeSelector.cpp.
References KisPainter::bitBlt(), KisPaintDevice::clear(), KisPaintDevice::colorSpace(), WGSelectorWidgetBase::displayConfiguration(), WGSelectorWidgetBase::displayConverter(), getChannelValues(), m_model, m_realCircleBorder, m_realPixelCache, KisSequentialIteratorBase< IteratorPolicy, SourcePolicy, ProgressPolicy >::nextPixel(), setColorWithIterator(), KoColor::setOpacity(), KisDisplayColorConverter::toQImage(), KisSequentialIteratorBase< IteratorPolicy, SourcePolicy, ProgressPolicy >::x(), and KisSequentialIteratorBase< IteratorPolicy, SourcePolicy, ProgressPolicy >::y().
|
protected |
Definition at line 272 of file WGMyPaintShadeSelector.cpp.
References getChannelValues(), m_allowUpdates, and WGSelectorWidgetBase::sigChannelValuesChanged().
|
protected |
Definition at line 282 of file WGMyPaintShadeSelector.cpp.
References m_heightHD, m_sizeHD, and m_widthHD.
|
overrideprotected |
Definition at line 156 of file WGMyPaintShadeSelector.cpp.
References recalculateSizeHD().
|
overridevirtual |
Reimplemented from WGSelectorWidgetBase.
Definition at line 55 of file WGMyPaintShadeSelector.cpp.
References connect(), m_model, WGSelectorWidgetBase::sigChannelValuesChanged(), and slotSetChannelValues().
|
privateslot |
Definition at line 289 of file WGMyPaintShadeSelector.cpp.
References m_allowUpdates, m_colorH, m_colorS, and m_colorV.
|
private |
Definition at line 51 of file WGMyPaintShadeSelector.h.
|
private |
Definition at line 45 of file WGMyPaintShadeSelector.h.
|
private |
Definition at line 46 of file WGMyPaintShadeSelector.h.
|
private |
Definition at line 47 of file WGMyPaintShadeSelector.h.
|
private |
Definition at line 50 of file WGMyPaintShadeSelector.h.
|
private |
Definition at line 42 of file WGMyPaintShadeSelector.h.
|
private |
Definition at line 44 of file WGMyPaintShadeSelector.h.
|
private |
Definition at line 43 of file WGMyPaintShadeSelector.h.
|
private |
Definition at line 48 of file WGMyPaintShadeSelector.h.
|
private |
Definition at line 49 of file WGMyPaintShadeSelector.h.