digiKam
|
Public Types | |
enum | HealingCloneState { SELECT_SOURCE , PAINT , LASSO_DRAW_BOUNDARY , LASSO_CLONE , MOVE_IMAGE , DO_NOTHING } |
Public Slots | |
void | slotLassoSelect () |
void | slotMoveImage () |
void | slotOriginalImageRegionChanged (bool targetDone=true) |
void | slotPreviewModeChanged (int mode) |
void | slotSetSourcePoint () |
slotSrcSet toggles the fixing of the brush source center More... | |
Signals | |
void | activated () |
void | contentsMoved (bool panningFinished) |
void | contentsMoving (int, int) |
void | leftButtonClicked () |
void | leftButtonDoubleClicked () |
void | resized () |
void | rightButtonClicked () |
void | signalCapturedPointFromOriginal (const Digikam::DColor &, const QPoint &) |
void | signalClone (const QPoint ¤tSrc, const QPoint ¤tDst) |
signalClone emitted when the src is set and the user initiated a brush click and keeps emitting with motion More... | |
void | signalContinuePolygon () |
void | signalDecreaseBrushRadius () |
void | signalIncreaseBrushRadius () |
void | signalLasso (const QPoint &dst) |
void | signalOriginalClipFocusChanged () |
void | signalPushToUndoStack () |
void | signalRedoClone () |
void | signalResetLassoPoint () |
void | signalUndoClone () |
void | toNextImage () |
void | toPreviousImage () |
void | viewportRectChanged (const QRectF &viewportRect) |
Public Member Functions | |
bool | capturePointMode () const |
void | changeCursorShape (const QColor &color) |
bool | checkPointOutsideScene (const QPoint &point) const |
int | contentsX () const |
int | contentsY () const |
void | drawText (QPainter *p, const QRectF &rect, const QString &text) |
void | exposureSettingsChanged () |
void | fitToWindow () |
DImg | getOriginalImage () const |
QRect | getOriginalImageRegionToRender () const |
DImg | getOriginalRegionImage (bool useDownscaledImage=false) const |
HealingCloneToolWidget (QWidget *const parent=nullptr) | |
void | ICCSettingsChanged () |
GraphicsDImgItem * | item () const |
SinglePhotoPreviewLayout * | layout () const |
QPoint | mapFromImageCoordinates (const QPoint &point) const |
QPoint | mapToImageCoordinates (const QPoint &point) const |
DImgPreviewItem * | previewItem () const |
void | scrollPointOnPoint (const QPointF &scenePos, const QPoint &viewportPos) |
void | setBrushValue (int value) |
void | setCapturePointMode (bool b) |
void | setCloneVectorChanged (bool) |
void | setContentsPos (int x, int y) |
void | setDrawCursorPosition (const QPointF &topLeftPos) |
void | setHighLightPoints (const QPolygon &pointsList) |
void | setIsLassoPointsVectorEmpty (bool) |
void | setItem (GraphicsDImgItem *const item) |
void | setPreviewImage (const DImg &img) |
void | setSourceCursorPosition (const QPointF &topLeftPos) |
void | toggleFullScreen (bool set) |
void | updateImage (const DImg &img) |
void | updateSourceCursor (const QPointF &pos=QPoint(), int diamter=10) |
QRect | visibleArea () const |
~HealingCloneToolWidget () override | |
Protected Slots | |
void | slotContentsMoved () |
void | slotCornerButtonPressed () |
void | slotPanIconHidden () |
virtual void | slotPanIconSelectionMoved (const QRect &, bool) |
Protected Member Functions | |
virtual bool | acceptsMouseClick (QMouseEvent *e) |
void | activateState (HealingCloneState state) |
void | continuePanning (const QPoint &pos) |
void | drawForeground (QPainter *painter, const QRectF &rect) override |
bool | event (QEvent *) override |
void | finishPanning () |
void | focusInEvent (QFocusEvent *) override |
void | focusOutEvent (QFocusEvent *) override |
void | installPanIcon () |
void | keyPressEvent (QKeyEvent *) override |
void | keyReleaseEvent (QKeyEvent *) override |
void | mouseDoubleClickEvent (QMouseEvent *) override |
void | mouseMoveEvent (QMouseEvent *) override |
void | mousePressEvent (QMouseEvent *) override |
void | mouseReleaseEvent (QMouseEvent *) override |
void | resizeEvent (QResizeEvent *) override |
void | scrollContentsBy (int dx, int dy) override |
void | setShowText (bool value) |
void | startPanning (const QPoint &pos) |
void | undoSlotSetSourcePoint () |
void | wheelEvent (QWheelEvent *) override |
|
explicit |
Standard constructor
References activateState(), updateSourceCursor(), and Digikam::GraphicsDImgView::viewportRectChanged().
|
override |
|
protectedvirtualinherited |
Reimplemented in Digikam::ImportPreviewView, and Digikam::ItemPreviewView.
Referenced by Digikam::ImportPreviewView::acceptsMouseClick(), Digikam::GraphicsDImgView::mouseDoubleClickEvent(), and Digikam::GraphicsDImgView::mousePressEvent().
|
signalinherited |
|
protected |
References changeCursorShape(), setDrawCursorPosition(), and signalContinuePolygon().
Referenced by HealingCloneToolWidget(), mouseMoveEvent(), slotLassoSelect(), slotMoveImage(), slotSetSourcePoint(), and undoSlotSetSourcePoint().
|
inherited |
void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::changeCursorShape | ( | const QColor & | color | ) |
References mapFromImageCoordinates(), and updateSourceCursor().
Referenced by activateState().
bool DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::checkPointOutsideScene | ( | const QPoint & | point | ) | const |
Referenced by mouseMoveEvent().
|
signalinherited |
|
signalinherited |
Referenced by Digikam::GraphicsDImgView::slotContentsMoved().
|
inherited |
|
inherited |
|
protectedinherited |
References Digikam::GraphicsDImgView::contentsMoved().
Referenced by Digikam::GraphicsDImgView::mouseMoveEvent().
|
overrideprotectedinherited |
References Digikam::GraphicsDImgView::drawText().
|
inherited |
Referenced by Digikam::GraphicsDImgView::drawForeground().
|
overrideprotected |
References slotLassoSelect().
|
inherited |
Referenced by Digikam::EditorTool::exposureSettingsChanged().
|
protectedinherited |
References Digikam::GraphicsDImgView::contentsMoved().
Referenced by Digikam::GraphicsDImgView::mouseReleaseEvent().
|
inherited |
References Digikam::SinglePhotoPreviewLayout::fitToWindow(), and Digikam::GraphicsDImgView::layout().
Referenced by Digikam::EditorToolIface::loadTool().
|
overrideprotected |
|
overrideprotected |
|
inherited |
|
inherited |
To get target image region area to render.
References Digikam::GraphicsDImgView::layout(), and Digikam::SinglePhotoPreviewLayout::realZoomFactor().
Referenced by Digikam::ImageRegionWidget::getOriginalRegionImage().
|
inherited |
To get target image region image to use for render operations If the bool parameter is true a downscaled version of the image region at screen resolution will be sent. Should be use to increase preview speed for the effects whose behaviour is a function of each pixel.
References Digikam::ImageRegionWidget::getOriginalImageRegionToRender(), and Digikam::DImg::resize().
|
inherited |
Referenced by Digikam::EditorTool::ICCSettingsChanged().
|
protectedinherited |
References Digikam::PanIconWidget::button(), and Digikam::GraphicsDImgView::slotCornerButtonPressed().
Referenced by Digikam::Canvas::Canvas(), Digikam::ImageRegionWidget::ImageRegionWidget(), Digikam::ImportPreviewView::ImportPreviewView(), Digikam::ItemPreviewView::ItemPreviewView(), and DigikamRawImportNativePlugin::RawPreview::RawPreview().
|
inherited |
Return the instance of item set by setItem().
Referenced by mapFromImageCoordinates(), mapToImageCoordinates(), Digikam::Canvas::mousePressEvent(), Digikam::GraphicsDImgView::previewItem(), Digikam::GraphicsDImgView::setItem(), Digikam::GraphicsDImgView::slotCornerButtonPressed(), and Digikam::GraphicsDImgView::slotPanIconSelectionMoved().
|
overrideprotected |
|
overrideprotected |
References slotSetSourcePoint(), and undoSlotSetSourcePoint().
|
inherited |
Referenced by Digikam::Canvas::Canvas(), Digikam::EditorStackView::decreaseZoom(), Digikam::Canvas::fitToSelect(), Digikam::GraphicsDImgView::fitToWindow(), Digikam::ImageRegionWidget::getOriginalImageRegionToRender(), Digikam::ImageRegionWidget::ImageRegionWidget(), Digikam::ImportPreviewView::ImportPreviewView(), Digikam::EditorStackView::increaseZoom(), Digikam::ItemPreviewView::ItemPreviewView(), Digikam::EditorToolIface::loadTool(), DigikamRawImportNativePlugin::RawPreview::RawPreview(), Digikam::EditorStackView::setToolView(), Digikam::EditorStackView::setZoomFactor(), Digikam::EditorStackView::slotZoomSliderChanged(), Digikam::EditorStackView::toggleFitToWindow(), Digikam::EditorToolIface::unLoadTool(), Digikam::EditorStackView::zoomMax(), Digikam::EditorStackView::zoomMin(), and Digikam::EditorStackView::zoomTo100Percent().
|
signalinherited |
Referenced by Digikam::GraphicsDImgView::mousePressEvent().
|
signalinherited |
Referenced by Digikam::GraphicsDImgView::mouseDoubleClickEvent().
QPoint DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::mapFromImageCoordinates | ( | const QPoint & | point | ) | const |
References Digikam::GraphicsDImgView::item(), Digikam::ImageZoomSettings::mapImageToZoom(), and Digikam::GraphicsDImgItem::zoomSettings.
Referenced by changeCursorShape(), mouseMoveEvent(), and mouseReleaseEvent().
QPoint DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::mapToImageCoordinates | ( | const QPoint & | point | ) | const |
References Digikam::GraphicsDImgView::item(), Digikam::ImageZoomSettings::mapZoomToImage(), and Digikam::GraphicsDImgItem::zoomSettings.
Referenced by mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().
|
overrideprotected |
References slotLassoSelect().
|
overrideprotected |
|
overrideprotected |
References mapToImageCoordinates(), setCloneVectorChanged(), signalClone(), signalLasso(), and signalPushToUndoStack().
|
overrideprotected |
|
inherited |
Return a cast of item instance of item set by setItem() as DImgPreviewItem Note: if you store a GraphicsDImgItem object using setItem(), this method will return 0.
References Digikam::GraphicsDImgView::item().
Referenced by Digikam::FaceGroup::addFace(), Digikam::FocusPointGroup::addPoint(), Digikam::FaceGroup::applyItemGeometryChanges(), Digikam::FaceGroup::FaceGroup(), Digikam::FocusPointGroup::FocusPointGroup(), Digikam::FaceGroup::load(), Digikam::FocusPointGroup::load(), Digikam::ImportPreviewView::reload(), Digikam::LightTablePreview::showDragAndDropMessage(), Digikam::FaceGroup::slotAddItemFinished(), Digikam::FocusPointGroup::slotAddItemFinished(), and Digikam::FaceGroup::slotAssigned().
|
signalinherited |
Referenced by Digikam::GraphicsDImgView::resizeEvent().
|
overrideprotectedinherited |
|
signalinherited |
Referenced by Digikam::GraphicsDImgView::mousePressEvent().
|
overrideprotectedinherited |
References Digikam::GraphicsDImgView::viewportRectChanged().
|
inherited |
Scrolls the view such that scenePos (in scene coordinates is displayed on the viewport at viewportPos (in viewport coordinates). E.g., calling scrollPointOnPoint(scenePos, viewport()->rect().center()) is equivalent to calling centerOn(scenePos).
void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::setBrushValue | ( | int | value | ) |
References value.
|
inherited |
void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::setCloneVectorChanged | ( | bool | changed | ) |
Referenced by mousePressEvent().
|
inherited |
Referenced by Digikam::EditorToolIface::loadTool().
void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::setDrawCursorPosition | ( | const QPointF & | topLeftPos | ) |
Referenced by activateState(), and mouseMoveEvent().
|
inherited |
void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::setIsLassoPointsVectorEmpty | ( | bool | isEmpty | ) |
|
inherited |
Store internal instance of item as GraphicsDImgItem. You can store DImgPreviewItem object also by this method. Use item() or previewItem() to get right version. Note: if you store a GraphicsDImgItem object, previewItem() will return 0.
References Digikam::GraphicsDImgView::item().
Referenced by Digikam::Canvas::Canvas(), Digikam::ImageRegionWidget::ImageRegionWidget(), Digikam::ImportPreviewView::ImportPreviewView(), Digikam::ItemPreviewView::ItemPreviewView(), and DigikamRawImportNativePlugin::RawPreview::RawPreview().
|
inherited |
|
protectedinherited |
void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::setSourceCursorPosition | ( | const QPointF & | topLeftPos | ) |
Referenced by mouseMoveEvent(), mouseReleaseEvent(), and updateSourceCursor().
|
signalinherited |
|
signal |
signalClone emitted when the src is set and the user initiated a brush click and keeps emitting with motion
Referenced by mouseMoveEvent(), and mousePressEvent().
|
signal |
Referenced by activateState(), slotLassoSelect(), slotMoveImage(), and undoSlotSetSourcePoint().
|
signal |
Referenced by keyPressEvent().
|
signal |
Referenced by keyPressEvent().
|
signal |
Referenced by mouseMoveEvent(), and mousePressEvent().
|
signalinherited |
Referenced by Digikam::ImageRegionWidget::slotOriginalImageRegionChanged().
|
signal |
Referenced by mousePressEvent().
|
signal |
Referenced by keyPressEvent().
|
signal |
Referenced by slotLassoSelect().
|
signal |
Referenced by keyPressEvent().
|
protectedslotinherited |
References Digikam::GraphicsDImgView::contentsMoving(), and value.
Referenced by Digikam::GraphicsDImgView::GraphicsDImgView().
|
protectedslotinherited |
References Digikam::GraphicsDImgView::item(), Digikam::PanIconWidget::setCursorToLocalRegionSelectionCenter(), Digikam::PanIconWidget::setImage(), Digikam::PanIconWidget::setMouseFocus(), Digikam::PanIconWidget::setRegionSelection(), Digikam::GraphicsDImgView::slotPanIconHidden(), and Digikam::GraphicsDImgView::slotPanIconSelectionMoved().
Referenced by Digikam::GraphicsDImgView::installPanIcon().
|
slot |
References activateState(), signalContinuePolygon(), and signalResetLassoPoint().
Referenced by event(), keyPressEvent(), and mouseDoubleClickEvent().
|
slot |
References activateState(), and signalContinuePolygon().
Referenced by keyPressEvent().
|
slotinherited |
|
protectedslotinherited |
|
protectedvirtualslotinherited |
|
slotinherited |
|
slot |
slotSrcSet toggles the fixing of the brush source center
References activateState().
Referenced by keyReleaseEvent().
|
protectedinherited |
References value.
Referenced by Digikam::GraphicsDImgView::mouseMoveEvent(), and Digikam::GraphicsDImgView::mousePressEvent().
|
inherited |
Referenced by Digikam::ItemIconView::toggleFullScreen().
|
signalinherited |
|
signalinherited |
|
protected |
References activateState(), and signalContinuePolygon().
Referenced by keyReleaseEvent(), and mouseReleaseEvent().
|
inherited |
void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::updateSourceCursor | ( | const QPointF & | pos = QPoint() , |
int | diamter = 10 |
||
) |
References setSourceCursorPosition().
Referenced by changeCursorShape(), and HealingCloneToolWidget().
|
signalinherited |
|
inherited |
Referenced by Digikam::EditorToolIface::unLoadTool().
|
overrideprotectedinherited |