digiKam
DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget Class Reference
+ Inheritance diagram for DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget:

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 &currentSrc, const QPoint &currentDst)
 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
 

Member Enumeration Documentation

◆ HealingCloneState

Enumerator
SELECT_SOURCE 
PAINT 
LASSO_DRAW_BOUNDARY 
LASSO_CLONE 
MOVE_IMAGE 
DO_NOTHING 

Constructor & Destructor Documentation

◆ HealingCloneToolWidget()

DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::HealingCloneToolWidget ( QWidget *const  parent = nullptr)
explicit

◆ ~HealingCloneToolWidget()

DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::~HealingCloneToolWidget ( )
override

Member Function Documentation

◆ acceptsMouseClick()

bool Digikam::GraphicsDImgView::acceptsMouseClick ( QMouseEvent *  e)
protectedvirtualinherited

◆ activated

◆ activateState()

void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::activateState ( HealingCloneState  state)
protected

◆ capturePointMode()

bool Digikam::ImageRegionWidget::capturePointMode ( ) const
inherited

◆ changeCursorShape()

void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::changeCursorShape ( const QColor &  color)

◆ checkPointOutsideScene()

bool DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::checkPointOutsideScene ( const QPoint &  point) const

Referenced by mouseMoveEvent().

◆ contentsMoved

void Digikam::GraphicsDImgView::contentsMoved ( bool  panningFinished)
signalinherited

◆ contentsMoving

void Digikam::GraphicsDImgView::contentsMoving ( int  ,
int   
)
signalinherited

◆ contentsX()

int Digikam::GraphicsDImgView::contentsX ( ) const
inherited

◆ contentsY()

int Digikam::GraphicsDImgView::contentsY ( ) const
inherited

◆ continuePanning()

void Digikam::GraphicsDImgView::continuePanning ( const QPoint &  pos)
protectedinherited

◆ drawForeground()

void Digikam::GraphicsDImgView::drawForeground ( QPainter *  painter,
const QRectF &  rect 
)
overrideprotectedinherited

◆ drawText()

void Digikam::GraphicsDImgView::drawText ( QPainter *  p,
const QRectF &  rect,
const QString &  text 
)
inherited

◆ event()

bool DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::event ( QEvent *  e)
overrideprotected

References slotLassoSelect().

◆ exposureSettingsChanged()

void Digikam::ImageRegionWidget::exposureSettingsChanged ( )
inherited

◆ finishPanning()

void Digikam::GraphicsDImgView::finishPanning ( )
protectedinherited

◆ fitToWindow()

void Digikam::GraphicsDImgView::fitToWindow ( )
inherited

◆ focusInEvent()

void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::focusInEvent ( QFocusEvent *  )
overrideprotected

◆ focusOutEvent()

void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::focusOutEvent ( QFocusEvent *  )
overrideprotected

◆ getOriginalImage()

DImg Digikam::ImageRegionWidget::getOriginalImage ( ) const
inherited

◆ getOriginalImageRegionToRender()

QRect Digikam::ImageRegionWidget::getOriginalImageRegionToRender ( ) const
inherited

◆ getOriginalRegionImage()

DImg Digikam::ImageRegionWidget::getOriginalRegionImage ( bool  useDownscaledImage = false) const
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().

◆ ICCSettingsChanged()

void Digikam::ImageRegionWidget::ICCSettingsChanged ( )
inherited

◆ installPanIcon()

◆ item()

◆ keyPressEvent()

void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::keyPressEvent ( QKeyEvent *  e)
overrideprotected

◆ keyReleaseEvent()

void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::keyReleaseEvent ( QKeyEvent *  e)
overrideprotected

◆ layout()

◆ leftButtonClicked

void Digikam::GraphicsDImgView::leftButtonClicked ( )
signalinherited

◆ leftButtonDoubleClicked

void Digikam::GraphicsDImgView::leftButtonDoubleClicked ( )
signalinherited

◆ mapFromImageCoordinates()

QPoint DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::mapFromImageCoordinates ( const QPoint &  point) const

◆ mapToImageCoordinates()

QPoint DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::mapToImageCoordinates ( const QPoint &  point) const

◆ mouseDoubleClickEvent()

void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::mouseDoubleClickEvent ( QMouseEvent *  e)
overrideprotected

References slotLassoSelect().

◆ mouseMoveEvent()

void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::mouseMoveEvent ( QMouseEvent *  e)
overrideprotected

◆ mousePressEvent()

void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::mousePressEvent ( QMouseEvent *  e)
overrideprotected

◆ mouseReleaseEvent()

void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::mouseReleaseEvent ( QMouseEvent *  e)
overrideprotected

◆ previewItem()

◆ resized

void Digikam::GraphicsDImgView::resized ( )
signalinherited

◆ resizeEvent()

void Digikam::GraphicsDImgView::resizeEvent ( QResizeEvent *  e)
overrideprotectedinherited

◆ rightButtonClicked

void Digikam::GraphicsDImgView::rightButtonClicked ( )
signalinherited

◆ scrollContentsBy()

void Digikam::GraphicsDImgView::scrollContentsBy ( int  dx,
int  dy 
)
overrideprotectedinherited

◆ scrollPointOnPoint()

void Digikam::GraphicsDImgView::scrollPointOnPoint ( const QPointF &  scenePos,
const QPoint &  viewportPos 
)
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).

◆ setBrushValue()

void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::setBrushValue ( int  value)

References value.

◆ setCapturePointMode()

void Digikam::ImageRegionWidget::setCapturePointMode ( bool  b)
inherited

◆ setCloneVectorChanged()

void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::setCloneVectorChanged ( bool  changed)

Referenced by mousePressEvent().

◆ setContentsPos()

void Digikam::GraphicsDImgView::setContentsPos ( int  x,
int  y 
)
inherited

◆ setDrawCursorPosition()

void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::setDrawCursorPosition ( const QPointF &  topLeftPos)

Referenced by activateState(), and mouseMoveEvent().

◆ setHighLightPoints()

void Digikam::ImageRegionWidget::setHighLightPoints ( const QPolygon &  pointsList)
inherited

◆ setIsLassoPointsVectorEmpty()

void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::setIsLassoPointsVectorEmpty ( bool  isEmpty)

◆ setItem()

void Digikam::GraphicsDImgView::setItem ( GraphicsDImgItem *const  item)
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().

◆ setPreviewImage()

void Digikam::ImageRegionWidget::setPreviewImage ( const DImg img)
inherited

◆ setShowText()

void Digikam::GraphicsDImgView::setShowText ( bool  value)
protectedinherited

◆ setSourceCursorPosition()

void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::setSourceCursorPosition ( const QPointF &  topLeftPos)

◆ signalCapturedPointFromOriginal

void Digikam::ImageRegionWidget::signalCapturedPointFromOriginal ( const Digikam::DColor ,
const QPoint &   
)
signalinherited

◆ signalClone

void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::signalClone ( const QPoint &  currentSrc,
const QPoint &  currentDst 
)
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().

◆ signalContinuePolygon

void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::signalContinuePolygon ( )
signal

◆ signalDecreaseBrushRadius

void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::signalDecreaseBrushRadius ( )
signal

Referenced by keyPressEvent().

◆ signalIncreaseBrushRadius

void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::signalIncreaseBrushRadius ( )
signal

Referenced by keyPressEvent().

◆ signalLasso

void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::signalLasso ( const QPoint &  dst)
signal

Referenced by mouseMoveEvent(), and mousePressEvent().

◆ signalOriginalClipFocusChanged

void Digikam::ImageRegionWidget::signalOriginalClipFocusChanged ( )
signalinherited

◆ signalPushToUndoStack

void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::signalPushToUndoStack ( )
signal

Referenced by mousePressEvent().

◆ signalRedoClone

void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::signalRedoClone ( )
signal

Referenced by keyPressEvent().

◆ signalResetLassoPoint

void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::signalResetLassoPoint ( )
signal

Referenced by slotLassoSelect().

◆ signalUndoClone

void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::signalUndoClone ( )
signal

Referenced by keyPressEvent().

◆ slotContentsMoved

void Digikam::GraphicsDImgView::slotContentsMoved ( )
protectedslotinherited

◆ slotCornerButtonPressed

◆ slotLassoSelect

void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::slotLassoSelect ( )
slot

◆ slotMoveImage

void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::slotMoveImage ( )
slot

References activateState(), and signalContinuePolygon().

Referenced by keyPressEvent().

◆ slotOriginalImageRegionChanged

void Digikam::ImageRegionWidget::slotOriginalImageRegionChanged ( bool  targetDone = true)
slotinherited

◆ slotPanIconHidden

void Digikam::GraphicsDImgView::slotPanIconHidden ( )
protectedslotinherited

◆ slotPanIconSelectionMoved

void Digikam::GraphicsDImgView::slotPanIconSelectionMoved ( const QRect &  imageRect,
bool  b 
)
protectedvirtualslotinherited

◆ slotPreviewModeChanged

void Digikam::ImageRegionWidget::slotPreviewModeChanged ( int  mode)
slotinherited

◆ slotSetSourcePoint

void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::slotSetSourcePoint ( )
slot

slotSrcSet toggles the fixing of the brush source center

References activateState().

Referenced by keyReleaseEvent().

◆ startPanning()

void Digikam::GraphicsDImgView::startPanning ( const QPoint &  pos)
protectedinherited

◆ toggleFullScreen()

void Digikam::GraphicsDImgView::toggleFullScreen ( bool  set)
inherited

◆ toNextImage

void Digikam::GraphicsDImgView::toNextImage ( )
signalinherited

◆ toPreviousImage

void Digikam::GraphicsDImgView::toPreviousImage ( )
signalinherited

◆ undoSlotSetSourcePoint()

void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::undoSlotSetSourcePoint ( )
protected

◆ updateImage()

void Digikam::ImageRegionWidget::updateImage ( const DImg img)
inherited

◆ updateSourceCursor()

void DigikamEditorHealingCloneToolPlugin::HealingCloneToolWidget::updateSourceCursor ( const QPointF &  pos = QPoint(),
int  diamter = 10 
)

◆ viewportRectChanged

void Digikam::GraphicsDImgView::viewportRectChanged ( const QRectF &  viewportRect)
signalinherited

◆ visibleArea()

QRect Digikam::GraphicsDImgView::visibleArea ( ) const
inherited

◆ wheelEvent()

void Digikam::GraphicsDImgView::wheelEvent ( QWheelEvent *  e)
overrideprotectedinherited

The documentation for this class was generated from the following files: