digiKam
Digikam::ImageRegionWidget Class Reference
+ Inheritance diagram for Digikam::ImageRegionWidget:

Public Slots

void slotOriginalImageRegionChanged (bool targetDone=true)
 
void slotPreviewModeChanged (int mode)
 

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 signalOriginalClipFocusChanged ()
 
void toNextImage ()
 
void toPreviousImage ()
 
void viewportRectChanged (const QRectF &viewportRect)
 

Public Member Functions

bool capturePointMode () 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
 
void ICCSettingsChanged ()
 
 ImageRegionWidget (QWidget *const parent=nullptr, bool paintExtras=true)
 
GraphicsDImgItemitem () const
 
SinglePhotoPreviewLayoutlayout () const
 
DImgPreviewItempreviewItem () const
 
void scrollPointOnPoint (const QPointF &scenePos, const QPoint &viewportPos)
 
void setCapturePointMode (bool b)
 
void setContentsPos (int x, int y)
 
void setHighLightPoints (const QPolygon &pointsList)
 
void setItem (GraphicsDImgItem *const item)
 
void setPreviewImage (const DImg &img)
 
void toggleFullScreen (bool set)
 
void updateImage (const DImg &img)
 
QRect visibleArea () const
 
 ~ImageRegionWidget () override
 

Protected Slots

void slotContentsMoved ()
 
void slotCornerButtonPressed ()
 
void slotPanIconHidden ()
 
virtual void slotPanIconSelectionMoved (const QRect &, bool)
 

Protected Member Functions

virtual bool acceptsMouseClick (QMouseEvent *e)
 
void continuePanning (const QPoint &pos)
 
void drawForeground (QPainter *painter, const QRectF &rect) override
 
void finishPanning ()
 
void installPanIcon ()
 
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 wheelEvent (QWheelEvent *) override
 

Constructor & Destructor Documentation

◆ ImageRegionWidget()

◆ ~ImageRegionWidget()

Digikam::ImageRegionWidget::~ImageRegionWidget ( )
override

Member Function Documentation

◆ acceptsMouseClick()

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

◆ activated

◆ capturePointMode()

bool Digikam::ImageRegionWidget::capturePointMode ( ) const

◆ 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

◆ exposureSettingsChanged()

void Digikam::ImageRegionWidget::exposureSettingsChanged ( )

◆ finishPanning()

void Digikam::GraphicsDImgView::finishPanning ( )
protectedinherited

◆ fitToWindow()

void Digikam::GraphicsDImgView::fitToWindow ( )
inherited

◆ getOriginalImage()

DImg Digikam::ImageRegionWidget::getOriginalImage ( ) const

◆ getOriginalImageRegionToRender()

QRect Digikam::ImageRegionWidget::getOriginalImageRegionToRender ( ) const

To get target image region area to render.

References Digikam::GraphicsDImgView::layout(), and Digikam::SinglePhotoPreviewLayout::realZoomFactor().

Referenced by getOriginalRegionImage().

◆ getOriginalRegionImage()

DImg Digikam::ImageRegionWidget::getOriginalRegionImage ( bool  useDownscaledImage = false) const

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 getOriginalImageRegionToRender(), and Digikam::DImg::resize().

◆ ICCSettingsChanged()

void Digikam::ImageRegionWidget::ICCSettingsChanged ( )

◆ installPanIcon()

◆ item()

◆ layout()

◆ leftButtonClicked

void Digikam::GraphicsDImgView::leftButtonClicked ( )
signalinherited

◆ leftButtonDoubleClicked

void Digikam::GraphicsDImgView::leftButtonDoubleClicked ( )
signalinherited

◆ mouseDoubleClickEvent()

void Digikam::GraphicsDImgView::mouseDoubleClickEvent ( QMouseEvent *  e)
overrideprotectedinherited

◆ mouseMoveEvent()

void Digikam::GraphicsDImgView::mouseMoveEvent ( QMouseEvent *  e)
overrideprotectedinherited

◆ mousePressEvent()

void Digikam::ImageRegionWidget::mousePressEvent ( QMouseEvent *  e)
overrideprotected

◆ mouseReleaseEvent()

void Digikam::ImageRegionWidget::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).

◆ setCapturePointMode()

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

◆ setContentsPos()

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

◆ setHighLightPoints()

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

◆ setItem()

void Digikam::GraphicsDImgView::setItem ( GraphicsDImgItem *const  item)
inherited

◆ setPreviewImage()

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

◆ setShowText()

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

◆ signalCapturedPointFromOriginal

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

◆ signalOriginalClipFocusChanged

void Digikam::ImageRegionWidget::signalOriginalClipFocusChanged ( )
signal

◆ slotContentsMoved

void Digikam::GraphicsDImgView::slotContentsMoved ( )
protectedslotinherited

◆ slotCornerButtonPressed

◆ slotOriginalImageRegionChanged

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

◆ slotPanIconHidden

void Digikam::GraphicsDImgView::slotPanIconHidden ( )
protectedslotinherited

◆ slotPanIconSelectionMoved

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

◆ slotPreviewModeChanged

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

◆ 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

◆ updateImage()

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

◆ 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: