digiKam
Digikam::FaceTags Class Reference

Static Public Member Functions

static QList< QString > allPersonNames ()
 
static QList< QString > allPersonPaths ()
 
static QList< int > allPersonTags ()
 
static void applyTagIdentityMapping (int tagId, const QMultiMap< QString, QString > &attributes)
 
static void ensureIsPerson (int tagId, const QString &fullName=QString())
 
static QString faceNameForTag (int tagId)
 
static QString getNameForRect (qlonglong imageid, const QRect &faceRect)
 
static int getOrCreateTagForIdentity (const QMultiMap< QString, QString > &attributes)
 
static int getOrCreateTagForPerson (const QString &name, int parentId=-1, const QString &fullName=QString())
 
static QMultiMap< QString, QString > identityAttributes (int tagId)
 
static int ignoredPersonTagId ()
 
static bool isPerson (int tagId)
 
static bool isSystemPersonTagId (int tagId)
 
static bool isTheIgnoredPerson (int tagId)
 
static bool isTheUnconfirmedPerson (int tagId)
 
static bool isTheUnknownPerson (int tagId)
 
static int personParentTag ()
 
static int scannedForFacesTagId ()
 
static int tagForPerson (const QString &name, int parentId=-1, const QString &fullName=QString())
 
static int unconfirmedPersonTagId ()
 
static int unknownPersonTagId ()
 

Member Function Documentation

◆ allPersonNames()

QList< QString > Digikam::FaceTags::allPersonNames ( )
static

A method to return a list of all person tag names in the DB

References allPersonTags(), Digikam::TagsCache::instance(), and Digikam::TagsCache::tagNames().

◆ allPersonPaths()

QList< QString > Digikam::FaceTags::allPersonPaths ( )
static

A method to return a list of all person tag paths in the DB

References allPersonTags(), Digikam::TagsCache::instance(), and Digikam::TagsCache::tagPaths().

◆ allPersonTags()

QList< int > Digikam::FaceTags::allPersonTags ( )
static

◆ applyTagIdentityMapping()

void Digikam::FaceTags::applyTagIdentityMapping ( int  tagId,
const QMultiMap< QString, QString > &  attributes 
)
static

◆ ensureIsPerson()

void Digikam::FaceTags::ensureIsPerson ( int  tagId,
const QString &  fullName = QString() 
)
static

Ensure that the given tag is a person tag. If not, it will be converted. Optionally, pass the full name. (tag name is not changed)

Referenced by Digikam::FaceTagsEditor::addFaceAndTag(), Digikam::AlbumManager::createTAlbum(), Digikam::AlbumManager::moveTAlbum(), and Digikam::TagModificationHelper::slotTagToFaceTag().

◆ faceNameForTag()

◆ getNameForRect()

static QString Digikam::FaceTags::getNameForRect ( qlonglong  imageid,
const QRect &  faceRect 
)
static

◆ getOrCreateTagForIdentity()

int Digikam::FaceTags::getOrCreateTagForIdentity ( const QMultiMap< QString, QString > &  attributes)
static

Use attributes as used by FacesEngine to identify or create a person tag; From the database, produce the identity attributes identifying the corresponding identity.

References applyTagIdentityMapping(), Digikam::TagPropertyName::faceEngineName(), Digikam::TagPropertyName::faceEngineUuid(), Digikam::TagPropertyName::person(), and unknownPersonTagId().

Referenced by Digikam::DatabaseWriter::process().

◆ getOrCreateTagForPerson()

int Digikam::FaceTags::getOrCreateTagForPerson ( const QString &  name,
int  parentId = -1,
const QString &  fullName = QString() 
)
static

First, looks for the given person name in person tags, and returns an ID. If not, creates a new tag. Per default, fullName is the same as name.

Referenced by Digikam::ItemScanner::commitFaces(), Digikam::TagDragDropHandler::dropEvent(), Digikam::AssignNameOverlay::slotAssigned(), and Digikam::FaceGroup::slotAssigned().

◆ identityAttributes()

◆ ignoredPersonTagId()

◆ isPerson()

◆ isSystemPersonTagId()

◆ isTheIgnoredPerson()

◆ isTheUnconfirmedPerson()

◆ isTheUnknownPerson()

◆ personParentTag()

◆ scannedForFacesTagId()

◆ tagForPerson()

int Digikam::FaceTags::tagForPerson ( const QString &  name,
int  parentId = -1,
const QString &  fullName = QString() 
)
static

Looks for the given person name under the People tags tree, and returns an ID. Returns 0 if no name found. Per default, fullName is the same as name. As parentId of -1 signals to look for any tag, a valid parentId will limit the search to direct children of this tag. parentId of 0 means top-level tag.

◆ unconfirmedPersonTagId()

◆ unknownPersonTagId()


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