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

Classes

class  Private
 

Public Slots

void aboutToSetInfo (const ItemInfo &info)
 
void aboutToSetInfoAfterRotate (const ItemInfo &info)
 
void addFace ()
 
void rejectAll ()
 
void setInfo (const ItemInfo &info)
 
void setVisible (bool visible)
 
void setVisibleItem (RegionFrameItem *item)
 

Public Member Functions

bool acceptsMouseClick (const QPointF &scenePos)
 
bool autoSuggest () const
 
RegionFrameItemclosestItem (const QPointF &p, qreal *const manhattanLength=nullptr) const
 
void enterEvent (QEvent *)
 
 FaceGroup (GraphicsDImgView *const view)
 
bool hasVisibleItems () const
 
ItemInfo info () const
 
bool isVisible () const
 
void itemHoverEnterEvent (QGraphicsSceneHoverEvent *event)
 
void itemHoverLeaveEvent (QGraphicsSceneHoverEvent *event)
 
void itemHoverMoveEvent (QGraphicsSceneHoverEvent *event)
 
QList< RegionFrameItem * > items () const
 
void leaveEvent (QEvent *)
 
void setAutoSuggest (bool doAutoSuggest)
 
void setShowOnHover (bool show)
 
bool showOnHover () const
 
 ~FaceGroup () override
 

Protected Slots

void cancelAddItem ()
 
void focusRandomFace ()
 
void itemStateChanged (int)
 
void slotAddItemFinished (const QRectF &rect)
 
void slotAddItemMoving (const QRectF &rect)
 
void slotAddItemStarted (const QPointF &pos)
 
void slotAlbumRenamed (Album *album)
 
void slotAlbumsUpdated (int type)
 
void slotAssigned (const TaggingAction &action, const ItemInfo &info, const QVariant &faceIdentifier)
 
void slotIgnored (const ItemInfo &info, const QVariant &faceIdentifier)
 
void slotIgnoredClicked (const ItemInfo &info, const QVariant &faceIdentifier)
 
void slotLabelClicked (const ItemInfo &info, const QVariant &faceIdentifier)
 
void slotRejected (const ItemInfo &info, const QVariant &faceIdentifier)
 
void startAutoSuggest ()
 

Protected Member Functions

void applyItemGeometryChanges ()
 
void clear ()
 
void load ()
 

Properties

bool visible
 

Constructor & Destructor Documentation

◆ FaceGroup()

◆ ~FaceGroup()

Digikam::FaceGroup::~FaceGroup ( )
override

Member Function Documentation

◆ aboutToSetInfo

void Digikam::FaceGroup::aboutToSetInfo ( const ItemInfo info)
slot

Prepares to load a new info. Closes the face group for editing. Pass a null info if about to close.

References applyItemGeometryChanges(), clear(), info(), and Digikam::FaceGroup::Private::info.

◆ aboutToSetInfoAfterRotate

void Digikam::FaceGroup::aboutToSetInfoAfterRotate ( const ItemInfo info)
slot

◆ acceptsMouseClick()

bool Digikam::FaceGroup::acceptsMouseClick ( const QPointF &  scenePos)

◆ addFace

void Digikam::FaceGroup::addFace ( )
slot

◆ applyItemGeometryChanges()

◆ autoSuggest()

bool Digikam::FaceGroup::autoSuggest ( ) const

◆ cancelAddItem

◆ clear()

◆ closestItem()

RegionFrameItem * Digikam::FaceGroup::closestItem ( const QPointF &  p,
qreal *const  manhattanLength = nullptr 
) const

Returns the item in this group closest to scene position p. If given, manhattanLength is set to the manhattan length between p and the closest point of the returned item's bounding rectangle. In particular, if p is inside the item's rectangle, manhattanLength is 0.

References Digikam::RegionFrameItem::boundingRect(), and Digikam::FaceGroup::Private::items.

Referenced by itemHoverMoveEvent().

◆ enterEvent()

void Digikam::FaceGroup::enterEvent ( QEvent *  )

◆ focusRandomFace

◆ hasVisibleItems()

bool Digikam::FaceGroup::hasVisibleItems ( ) const

◆ info()

◆ isVisible()

bool Digikam::FaceGroup::isVisible ( ) const

◆ itemHoverEnterEvent()

void Digikam::FaceGroup::itemHoverEnterEvent ( QGraphicsSceneHoverEvent *  event)

◆ itemHoverLeaveEvent()

void Digikam::FaceGroup::itemHoverLeaveEvent ( QGraphicsSceneHoverEvent *  event)

◆ itemHoverMoveEvent()

◆ items()

QList< RegionFrameItem * > Digikam::FaceGroup::items ( ) const

◆ itemStateChanged

◆ leaveEvent()

void Digikam::FaceGroup::leaveEvent ( QEvent *  )

◆ load()

◆ rejectAll

◆ setAutoSuggest()

void Digikam::FaceGroup::setAutoSuggest ( bool  doAutoSuggest)

Auto suggest applies if an image has not been scanned, or an unknown face is registered. In this case, a new scan will be triggered.

References Digikam::FaceGroup::Private::autoSuggest.

◆ setInfo

◆ setShowOnHover()

void Digikam::FaceGroup::setShowOnHover ( bool  show)

Even if visible() is false, show the item under the mouse cursor

References Digikam::FaceGroup::Private::showOnHover.

◆ setVisible

void Digikam::FaceGroup::setVisible ( bool  visible)
slot

◆ setVisibleItem

◆ showOnHover()

bool Digikam::FaceGroup::showOnHover ( ) const

◆ slotAddItemFinished

◆ slotAddItemMoving

◆ slotAddItemStarted

void Digikam::FaceGroup::slotAddItemStarted ( const QPointF &  pos)
protectedslot

Referenced by addFace().

◆ slotAlbumRenamed

◆ slotAlbumsUpdated

void Digikam::FaceGroup::slotAlbumsUpdated ( int  type)
protectedslot

◆ slotAssigned

◆ slotIgnored

◆ slotIgnoredClicked

void Digikam::FaceGroup::slotIgnoredClicked ( const ItemInfo info,
const QVariant &  faceIdentifier 
)
protectedslot

◆ slotLabelClicked

void Digikam::FaceGroup::slotLabelClicked ( const ItemInfo info,
const QVariant &  faceIdentifier 
)
protectedslot

◆ slotRejected

◆ startAutoSuggest

void Digikam::FaceGroup::startAutoSuggest ( )
protectedslot

Property Documentation

◆ visible

bool Digikam::FaceGroup::visible
readwrite

Referenced by itemHoverMoveEvent(), and setVisible().


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