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

Signals

void imageChanged ()
 
void imageSizeChanged (const QSizeF &size)
 
void showContextMenu (QGraphicsSceneContextMenuEvent *e)
 

Public Member Functions

QRectF boundingRect () const override
 
void clearCache ()
 
QRect getImageRegion () const
 
 GraphicsDImgItemPrivate ()
 
void hoverEnterEvent (QGraphicsSceneHoverEvent *) override
 
void hoverLeaveEvent (QGraphicsSceneHoverEvent *) override
 
DImg image () const
 
 ImageRegionItem (ImageRegionWidget *const view, bool paintExtras=true)
 
void init (GraphicsDImgItem *const q)
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
 
void paintExtraData (QPainter *const painter)
 
void setHighLightPoints (const QPolygon &pointsList)
 
void setImage (const DImg &img)
 
void setRenderingPreviewMode (int mode)
 
void setTargetImage (const DImg &img)
 
void sizeHasChanged ()
 
virtual QString userLoadingHint () const
 
ImageZoomSettingszoomSettings ()
 
const ImageZoomSettingszoomSettings () const
 
 ~ImageRegionItem () override
 

Public Attributes

CachedPixmaps cachedPixmaps
 
DImg image
 
ImageZoomSettings zoomSettings
 

Protected Member Functions

void contextMenuEvent (QGraphicsSceneContextMenuEvent *e) override
 

Protected Attributes

GraphicsDImgItemPrivate *const d_ptr
 

Constructor & Destructor Documentation

◆ ImageRegionItem()

Digikam::ImageRegionItem::ImageRegionItem ( ImageRegionWidget *const  view,
bool  paintExtras = true 
)
explicit

◆ ~ImageRegionItem()

Digikam::ImageRegionItem::~ImageRegionItem ( )
override

Member Function Documentation

◆ boundingRect()

QRectF Digikam::GraphicsDImgItem::boundingRect ( ) const
overrideinherited

◆ clearCache()

void Digikam::GraphicsDImgItem::clearCache ( )
inherited

◆ contextMenuEvent()

void Digikam::GraphicsDImgItem::contextMenuEvent ( QGraphicsSceneContextMenuEvent *  e)
overrideprotectedinherited

◆ getImageRegion()

QRect Digikam::ImageRegionItem::getImageRegion ( ) const

◆ GraphicsDImgItemPrivate()

Digikam::GraphicsDImgItem::GraphicsDImgItemPrivate ( )
inlineexplicitinherited

◆ hoverEnterEvent()

void Digikam::ImageRegionItem::hoverEnterEvent ( QGraphicsSceneHoverEvent *  )
override

◆ hoverLeaveEvent()

void Digikam::ImageRegionItem::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  )
override

◆ image()

DImg Digikam::GraphicsDImgItem::image ( ) const
inherited

◆ imageChanged

void Digikam::GraphicsDImgItem::imageChanged ( )
signalinherited

◆ imageSizeChanged

void Digikam::GraphicsDImgItem::imageSizeChanged ( const QSizeF &  size)
signalinherited

◆ init()

void Digikam::GraphicsDImgItem::init ( GraphicsDImgItem *const  q)
inherited

◆ paint()

◆ paintExtraData()

◆ setHighLightPoints()

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

◆ setImage()

void Digikam::GraphicsDImgItem::setImage ( const DImg img)
inherited

Sets the DImg to be drawn by this item. Note: DImg is explicitly shared, and no copy is automatically taken here.

References Digikam::GraphicsDImgItem::imageChanged(), Digikam::DImg::originalSize(), Digikam::DImg::size(), and Digikam::GraphicsDImgItem::sizeHasChanged().

Referenced by ImageRegionItem(), and Digikam::LightTablePreview::showDragAndDropMessage().

◆ setRenderingPreviewMode()

void Digikam::ImageRegionItem::setRenderingPreviewMode ( int  mode)

◆ setTargetImage()

void Digikam::ImageRegionItem::setTargetImage ( const DImg img)

◆ showContextMenu

void Digikam::GraphicsDImgItem::showContextMenu ( QGraphicsSceneContextMenuEvent *  e)
signalinherited

◆ sizeHasChanged()

void Digikam::GraphicsDImgItem::sizeHasChanged ( )
inherited

◆ userLoadingHint()

virtual QString Digikam::GraphicsDImgItem::userLoadingHint ( ) const
inlinevirtualinherited

Reimplemented in Digikam::DImgPreviewItem.

◆ zoomSettings() [1/2]

ImageZoomSettings* Digikam::GraphicsDImgItem::zoomSettings ( )
inherited

◆ zoomSettings() [2/2]

const ImageZoomSettings* Digikam::GraphicsDImgItem::zoomSettings ( ) const
inherited

Member Data Documentation

◆ cachedPixmaps

CachedPixmaps Digikam::GraphicsDImgItem::cachedPixmaps
mutableinherited

◆ d_ptr

GraphicsDImgItemPrivate* const Digikam::GraphicsDImgItem::d_ptr
protectedinherited

◆ image

◆ zoomSettings


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