6#ifndef KISVISUALCOLORSELECTOR_H
7#define KISVISUALCOLORSELECTOR_H
20 int channel1,
int channel2,
The KisVisualColorSelectorShape class A 2d widget can represent at maximum 2 coordinates....
Dimensions
The Dimensions enum Whether or not the shape is single or two dimensional.
The KisVisualColorSelector class.
QTransform m_gamutMaskTransform
void drawCursor(QPainter &painter) override
QImage renderAlphaMask() const override
render the alpha mask for the widget background the returned image is expected to be QImage::Format_A...
QRect getSpaceForTriangle(QRect geom) override
void setBorderWidth(int width) override
setBorderWidth set the border of the single dimensional selector.
void updateGamutMask() override
Notify shape that the gamut mask changed.
~KisVisualEllipticalSelectorShape() override
bool supportsGamutMask() const override
QPointF convertWidgetCoordinateToShapeCoordinate(QPointF coordinate) const override
convertWidgetCoordinateToShapeCoordinate Convert a coordinate in the widget's height/width to a shape...
bool m_gamutMaskNeedsUpdate
QImage renderAlphaMaskImpl(qreal outerBorder, qreal innerBorder) const
KisVisualEllipticalSelectorShape(KisVisualColorSelector *parent, Dimensions dimension, int channel1, int channel2, int barWidth=20, KisVisualEllipticalSelectorShape::singelDTypes d=KisVisualEllipticalSelectorShape::border)
QRegion getMaskMap() override
getPixmap
void drawGamutMask(QPainter &painter) override
QImage renderStaticAlphaMask() const override
QRect getSpaceForCircle(QRect geom) override
QRect getSpaceForSquare(QRect geom) override
getSpaceForSquare
QPointF mousePositionToShapeCoordinate(const QPointF &pos, const QPointF &dragStart) const override
default implementation just calls convertWidgetCoordinateToShapeCoordinate(pos)
QPointF convertShapeCoordinateToWidgetCoordinate(QPointF coordinate) const override
convertShapeCoordinateToWidgetCoordinate