|
Krita Source Code Documentation
|
#include <KisVisualTriangleSelectorShape.h>
Inheritance diagram for KisVisualTriangleSelectorShape:Public Member Functions | |
| QRect | getSpaceForCircle (QRect geom) override |
| QRect | getSpaceForSquare (QRect geom) override |
| getSpaceForSquare | |
| QRect | getSpaceForTriangle (QRect geom) override |
| KisVisualTriangleSelectorShape (KisVisualColorSelector *parent, Dimensions dimension, int channel1, int channel2, int margin=5) | |
| void | setBorderWidth (int) override |
| setBorderWidth set the border of the single dimensional selector. | |
| ~KisVisualTriangleSelectorShape () override | |
Public Member Functions inherited from KisVisualColorSelectorShape | |
| int | channel (int dimension) const |
| channel Get the channel index associated with a selector shape dimension | |
| quint32 | channelMask () const |
| void | forceImageUpdate () |
| forceImageUpdate force the image to recache. | |
| QColor | getColorFromConverter (KoColor c) |
| getColorFromConverter | |
| KoColor | getCurrentColor () |
| getCurrentColor | |
| QPointF | getCursorPosition () const |
| getCursorPosition | |
| Dimensions | getDimensions () const |
| getDimensions | |
| const QImage & | getImageMap () |
| getImageMap returns the updated base image | |
| bool | isHueControl () const |
| KisVisualColorSelectorShape (KisVisualColorSelector *parent, KisVisualColorSelectorShape::Dimensions dimension, int channel1, int channel2) | |
| void | setAcceptTabletEvents (bool on) |
| void | setChannelValues (QVector4D channelValues, quint32 channelFlags) |
| setChannelValues Set the current channel values; Note that channel values controlled by the shape itself have no effect unless setCursor is true. This will trigger a full widget repaint. | |
| void | setCursorPosition (QPointF position, bool signal=false) |
| setCursorPosition Set the cursor to normalized shape coordinates. This will only repaint the cursor. | |
| virtual bool | supportsGamutMask () const |
| virtual void | updateGamutMask () |
| Notify shape that the gamut mask changed. | |
| ~KisVisualColorSelectorShape () override | |
Protected Member Functions | |
| QImage | renderAlphaMask () const override |
| render the alpha mask for the widget background the returned image is expected to be QImage::Format_Alpha8 | |
Protected Member Functions inherited from KisVisualColorSelectorShape | |
| KisVisualColorSelector * | colorSelector () const |
| virtual QImage | compositeBackground () const |
| QImage | convertImageMap (const quint8 *rawColor, quint32 bufferSize, QSize imgSize) const |
| convertImageMap convert image data containing raw KoColor data into a QImage | |
| void | mouseMoveEvent (QMouseEvent *e) override |
| virtual QPointF | mousePositionToShapeCoordinate (const QPointF &pos, const QPointF &dragStart) const |
| default implementation just calls convertWidgetCoordinateToShapeCoordinate(pos) | |
| void | mousePressEvent (QMouseEvent *e) override |
| void | mouseReleaseEvent (QMouseEvent *e) override |
| void | paintEvent (QPaintEvent *) override |
| virtual QImage | renderBackground (const QVector4D &channelValues, const QImage &alpha) const |
| renderBackground Render the widget background visible inside the widget's mask in current color space Rendering shall be done with the conversion functions of KisVisualColorSelector | |
| virtual QImage | renderStaticAlphaMask () const |
| void | resizeEvent (QResizeEvent *) override |
| KisVisualColorModel * | selectorModel () const |
| void | tabletEvent (QTabletEvent *event) override |
Private Member Functions | |
| QPointF | convertShapeCoordinateToWidgetCoordinate (QPointF coordinate) const override |
| convertShapeCoordinateToWidgetCoordinate | |
| QPointF | convertWidgetCoordinateToShapeCoordinate (QPointF coordinate) const override |
| convertWidgetCoordinateToShapeCoordinate Convert a coordinate in the widget's height/width to a shape coordinate. | |
| void | drawCursor (QPainter &painter) override |
| QRegion | getMaskMap () override |
| getPixmap | |
Private Attributes | |
| int | m_margin { 5 } |
Additional Inherited Members | |
Public Types inherited from KisVisualColorSelectorShape | |
| enum | Dimensions { onedimensional , twodimensional } |
| The Dimensions enum Whether or not the shape is single or two dimensional. More... | |
Signals inherited from KisVisualColorSelectorShape | |
| void | sigCursorMoved (QPointF pos) |
Definition at line 11 of file KisVisualTriangleSelectorShape.h.
|
explicit |
Definition at line 16 of file KisVisualTriangleSelectorShape.cpp.
|
override |
Definition at line 26 of file KisVisualTriangleSelectorShape.cpp.
|
overrideprivatevirtual |
convertShapeCoordinateToWidgetCoordinate
Implements KisVisualColorSelectorShape.
Definition at line 51 of file KisVisualTriangleSelectorShape.cpp.
References m_margin.
|
overrideprivatevirtual |
convertWidgetCoordinateToShapeCoordinate Convert a coordinate in the widget's height/width to a shape coordinate.
| coordinate | the position your wish to have the shape coordinates of. |
Implements KisVisualColorSelectorShape.
Definition at line 67 of file KisVisualTriangleSelectorShape.cpp.
References m_margin.
|
overrideprivatevirtual |
Implements KisVisualColorSelectorShape.
Definition at line 124 of file KisVisualTriangleSelectorShape.cpp.
References convertShapeCoordinateToWidgetCoordinate(), KisVisualColorSelectorShape::getColorFromConverter(), KisVisualColorSelectorShape::getCurrentColor(), and KisVisualColorSelectorShape::getCursorPosition().
|
overrideprivatevirtual |
getPixmap
Implements KisVisualColorSelectorShape.
Definition at line 86 of file KisVisualTriangleSelectorShape.cpp.
References m_margin.
|
overridevirtual |
Implements KisVisualColorSelectorShape.
Definition at line 41 of file KisVisualTriangleSelectorShape.cpp.
|
overridevirtual |
getSpaceForSquare
| geom | the full widget rectangle |
Implements KisVisualColorSelectorShape.
Definition at line 36 of file KisVisualTriangleSelectorShape.cpp.
|
overridevirtual |
Implements KisVisualColorSelectorShape.
Definition at line 46 of file KisVisualTriangleSelectorShape.cpp.
|
overrideprotectedvirtual |
render the alpha mask for the widget background the returned image is expected to be QImage::Format_Alpha8
Reimplemented from KisVisualColorSelectorShape.
Definition at line 100 of file KisVisualTriangleSelectorShape.cpp.
References m_margin.
|
overridevirtual |
setBorderWidth set the border of the single dimensional selector.
| width |
Implements KisVisualColorSelectorShape.
Definition at line 31 of file KisVisualTriangleSelectorShape.cpp.
|
private |
Definition at line 44 of file KisVisualTriangleSelectorShape.h.