|
enum | Role {
NoRole = 0
, GivenAsArgument = 1 << 0
, ReadFromDatabase = 1 << 1
, DetectedFromImage = 1 << 2
,
ForRecognition = 1 << 10
, ForConfirmation = 1 << 11
, ForTraining = 1 << 12
, ForEditing = 1 << 13
,
Confirmed = 1 << 20
, Trained = 1 << 21
, Edited = 1 << 22
} |
|
enum | Type {
InvalidFace = 0
, UnknownName = 1 << 0
, UnconfirmedName = 1 << 1
, IgnoredName = 1 << 2
,
ConfirmedName = 1 << 3
, FaceForTraining = 1 << 4
, UnconfirmedTypes = UnknownName | UnconfirmedName
, NormalFaces = UnknownName | UnconfirmedName | IgnoredName | ConfirmedName
,
AllTypes = UnknownName | UnconfirmedName | IgnoredName | ConfirmedName | FaceForTraining
, TypeFirst = UnknownName
, TypeLast = FaceForTraining
} |
|
◆ Role
Enumerator |
---|
NoRole | |
GivenAsArgument | Source.
|
ReadFromDatabase | |
DetectedFromImage | |
ForRecognition | Task.
|
ForConfirmation | |
ForTraining | |
ForEditing | Add, Change or remove.
|
Confirmed | Executed action (task is cleared)
|
Trained | |
Edited | |
◆ Type
Enumerator |
---|
InvalidFace | |
UnknownName | |
UnconfirmedName | |
IgnoredName | |
ConfirmedName | |
FaceForTraining | |
UnconfirmedTypes | |
NormalFaces | |
AllTypes | |
TypeFirst | |
TypeLast | |
◆ FacePipelineFaceTagsIface() [1/2]
Digikam::FacePipelineFaceTagsIface::FacePipelineFaceTagsIface |
( |
| ) |
|
◆ FacePipelineFaceTagsIface() [2/2]
Digikam::FacePipelineFaceTagsIface::FacePipelineFaceTagsIface |
( |
const FaceTagsIface & |
face | ) |
|
|
explicit |
◆ ~FacePipelineFaceTagsIface()
Digikam::FacePipelineFaceTagsIface::~FacePipelineFaceTagsIface |
( |
| ) |
|
◆ attributeForType()
QString Digikam::FaceTagsIface::attributeForType |
( |
Type |
type | ) |
|
|
staticinherited |
Return the corresponding image tag property for the given type
References Digikam::ImageTagPropertyName::autodetectedFace(), Digikam::FaceTagsIface::ConfirmedName, Digikam::FaceTagsIface::FaceForTraining, Digikam::ImageTagPropertyName::faceToTrain(), Digikam::ImageTagPropertyName::ignoredFace(), Digikam::FaceTagsIface::IgnoredName, Digikam::ImageTagPropertyName::tagRegion(), Digikam::FaceTagsIface::type(), Digikam::FaceTagsIface::UnconfirmedName, and Digikam::FaceTagsIface::UnknownName.
Referenced by Digikam::FaceTagsIface::attributesForFlags(), and Digikam::FaceTagsEditor::removeFaceAndTag().
◆ attributesForFlags()
QStringList Digikam::FaceTagsIface::attributesForFlags |
( |
TypeFlags |
flags | ) |
|
|
staticinherited |
Returns a list of all image tag properties for which flags are set
References Digikam::FaceTagsIface::attributeForType(), Digikam::FaceTagsIface::TypeFirst, and Digikam::FaceTagsIface::TypeLast.
Referenced by Digikam::FaceTagsEditor::add(), Digikam::FaceTagsEditor::addManually(), Digikam::FaceTagsEditor::changeRegion(), Digikam::FaceTagsEditor::changeSuggestedName(), Digikam::FaceTagsEditor::changeTag(), Digikam::FaceTagsEditor::confirmName(), Digikam::FaceTagsEditor::databaseFaces(), Digikam::FaceTagsEditor::faceItemTagPairs(), Digikam::FaceTagsEditor::removeAllFaces(), Digikam::FaceTagsEditor::removeFace(), and Digikam::FaceUtils::writeUnconfirmedResults().
◆ fromListing()
FaceTagsIface Digikam::FaceTagsIface::fromListing |
( |
qlonglong |
imageid, |
|
|
const QList< QVariant > & |
values |
|
) |
| |
|
staticinherited |
◆ fromVariant()
FaceTagsIface Digikam::FaceTagsIface::fromVariant |
( |
const QVariant & |
var | ) |
|
|
staticinherited |
Writes the contents of this face - in a compact way - in the QVariant. Only native QVariant types are used, that is, the QVariant will not have a custom type, thus it can be compared by value by operator==.
References Digikam::FaceTagsIface::FaceTagsIface(), and Digikam::TagRegion::fromVariant().
Referenced by Digikam::AssignNameOverlay::checkIndex(), Digikam::ItemFilterModel::compareCategories(), Digikam::ItemFilterModel::data(), Digikam::ItemFaceDelegate::face(), Digikam::AssignNameWidget::setUserData(), Digikam::AssignNameOverlay::slotAssigned(), Digikam::AssignNameOverlay::updateFace(), Digikam::AssignNameWidget::Private::updateIgnoreButton(), and Digikam::AssignNameWidget::Private::updateRejectButtonTooltip().
◆ getAutodetectedPersonString()
QString Digikam::FaceTagsIface::getAutodetectedPersonString |
( |
| ) |
const |
|
inherited |
◆ imageId()
qlonglong Digikam::FaceTagsIface::imageId |
( |
| ) |
const |
|
inherited |
References Digikam::FaceTagsIface::m_imageId.
Referenced by Digikam::FaceTagsEditor::add(), Digikam::FaceTagsEditor::addFaceAndTag(), Digikam::FaceTagsEditor::addManually(), Digikam::FaceTagsEditor::changeRegion(), Digikam::FaceTagsEditor::changeSuggestedName(), Digikam::FaceTagsEditor::changeTag(), Digikam::FaceTagsEditor::confirmedEntry(), Digikam::FaceTagsEditor::confirmName(), Digikam::FaceTagsIface::fromListing(), Digikam::FaceItemRetriever::getThumbnails(), Digikam::operator<<(), Digikam::FaceTagsEditor::removeFace(), Digikam::FaceTagsEditor::removeFaceAndTag(), and Digikam::FaceTagsEditor::removeFaces().
◆ isConfirmedName()
bool Digikam::FaceTagsIface::isConfirmedName |
( |
| ) |
const |
|
inlineinherited |
◆ isForTraining()
bool Digikam::FaceTagsIface::isForTraining |
( |
| ) |
const |
|
inlineinherited |
◆ isIgnoredName()
bool Digikam::FaceTagsIface::isIgnoredName |
( |
| ) |
const |
|
inlineinherited |
◆ isInvalidFace()
bool Digikam::FaceTagsIface::isInvalidFace |
( |
| ) |
const |
|
inlineinherited |
◆ isNull()
bool Digikam::FaceTagsIface::isNull |
( |
| ) |
const |
|
inherited |
References Digikam::FaceTagsIface::InvalidFace, and Digikam::FaceTagsIface::m_type.
Referenced by Digikam::FaceGroup::applyItemGeometryChanges(), Digikam::ItemFilterModel::categoryIdentifier(), Digikam::FaceTagsEditor::changeRegion(), Digikam::FaceTagsEditor::changeTag(), Digikam::ItemSortSettings::compareCategories(), Digikam::FaceTagsEditor::removeFace(), Digikam::FaceTagsEditor::removeFaces(), Digikam::AssignNameWidget::setCurrentFace(), Digikam::FaceGroup::slotAlbumRenamed(), and Digikam::FaceUtils::writeUnconfirmedResults().
◆ isUnconfirmedName()
bool Digikam::FaceTagsIface::isUnconfirmedName |
( |
| ) |
const |
|
inlineinherited |
◆ isUnconfirmedType()
bool Digikam::FaceTagsIface::isUnconfirmedType |
( |
| ) |
const |
|
inlineinherited |
◆ isUnknownName()
bool Digikam::FaceTagsIface::isUnknownName |
( |
| ) |
const |
|
inlineinherited |
◆ operator==()
bool Digikam::FaceTagsIface::operator== |
( |
const FaceTagsIface & |
other | ) |
const |
|
inherited |
◆ region()
TagRegion Digikam::FaceTagsIface::region |
( |
| ) |
const |
|
inherited |
References Digikam::FaceTagsIface::m_region.
Referenced by Digikam::FaceTagsEditor::addFaceAndTag(), Digikam::FaceGroup::applyItemGeometryChanges(), Digikam::ItemFilterModel::categoryIdentifier(), Digikam::FaceTagsEditor::changeRegion(), Digikam::FaceTagsEditor::changeSuggestedName(), Digikam::ItemScanner::commitFaces(), Digikam::ItemSortSettings::compareCategories(), Digikam::FaceTagsEditor::confirmedEntry(), Digikam::FaceGroup::Private::createItem(), Digikam::ItemFilterModel::data(), Digikam::AlbumManager::deleteTAlbum(), Digikam::ItemFaceDelegate::faceRect(), Digikam::FaceTagsIface::getAutodetectedPersonString(), Digikam::FaceItemRetriever::getDetails(), Digikam::FaceItemRetriever::getThumbnails(), Digikam::MetadataHub::loadFaceTags(), Digikam::AlbumManager::mergeTAlbum(), Digikam::operator<<(), Digikam::DetectionBenchmarker::process(), Digikam::FaceTagsEditor::removeFaceAndTag(), Digikam::FaceUtils::rotateFaces(), Digikam::DatabaseTask::run(), Digikam::FaceTagsIface::setRegion(), Digikam::FaceGroup::slotAssigned(), Digikam::FaceUtils::storeThumbnails(), and Digikam::FaceUtils::writeUnconfirmedResults().
◆ setRegion()
void Digikam::FaceTagsIface::setRegion |
( |
const TagRegion & |
region | ) |
|
|
inherited |
◆ setTagId()
void Digikam::FaceTagsIface::setTagId |
( |
int |
tagId | ) |
|
|
inherited |
◆ setType()
void Digikam::FaceTagsIface::setType |
( |
Type |
type | ) |
|
|
inherited |
◆ tagId()
int Digikam::FaceTagsIface::tagId |
( |
| ) |
const |
|
inherited |
References Digikam::FaceTagsIface::m_tagId.
Referenced by Digikam::FaceTagsEditor::add(), Digikam::FaceTagsEditor::addFaceAndTag(), Digikam::FaceTagsEditor::addManually(), Digikam::ItemFilterModel::categoryIdentifier(), Digikam::FaceTagsEditor::changeRegion(), Digikam::FaceTagsEditor::changeSuggestedName(), Digikam::FaceTagsEditor::changeTag(), Digikam::ItemSortSettings::compareCategories(), Digikam::FaceTagsEditor::confirmedEntry(), Digikam::FaceTagsEditor::confirmName(), Digikam::ItemFilterModel::data(), Digikam::AlbumManager::deleteTAlbum(), Digikam::FaceTagsIface::FaceTagsIface(), Digikam::FaceTagsIface::fromListing(), Digikam::FaceTagsIface::getAutodetectedPersonString(), Digikam::DigikamItemView::getFaceIds(), Digikam::MetadataHub::loadFaceTags(), Digikam::AlbumManager::mergeTAlbum(), Digikam::operator<<(), Digikam::FaceTagsEditor::removeFace(), Digikam::FaceTagsEditor::removeFaces(), Digikam::AssignNameWidget::setCurrentFace(), Digikam::FaceTagsIface::setTagId(), Digikam::FaceGroup::slotAlbumRenamed(), Digikam::FaceGroup::slotAssigned(), Digikam::FaceTagsIface::typeForAttribute(), Digikam::FaceTagsIface::typeForId(), and Digikam::FaceUtils::writeUnconfirmedResults().
◆ toVariant()
QVariant Digikam::FaceTagsIface::toVariant |
( |
| ) |
const |
|
inherited |
◆ type()
References Digikam::FaceTagsIface::m_type.
Referenced by Digikam::FaceTagsEditor::addManually(), Digikam::FaceTagsIface::attributeForType(), Digikam::ItemFilterModel::categoryIdentifier(), Digikam::FaceTagsEditor::changeRegion(), Digikam::FaceTagsEditor::changeTag(), Digikam::ItemSortSettings::compareCategories(), Digikam::FaceGroup::Private::createAssignNameWidget(), Digikam::ItemFilterModel::data(), Digikam::operator<<(), Digikam::FaceTagsEditor::removeFaceAndTag(), Digikam::FaceTagsIface::setType(), Digikam::AssignNameWidget::setUserData(), Digikam::AssignNameWidget::Private::updateIgnoreButton(), and Digikam::AssignNameWidget::Private::updateRejectButtonTooltip().
◆ typeForAttribute()
FaceTagsIface::Type Digikam::FaceTagsIface::typeForAttribute |
( |
const QString & |
attribute, |
|
|
int |
tagId = 0 |
|
) |
| |
|
staticinherited |
Return the Type for the given attribute. To distinguish between UnknownName and UnconfirmedName, the tagId must be given.
References Digikam::ImageTagPropertyName::autodetectedFace(), Digikam::FaceTagsIface::ConfirmedName, Digikam::FaceTagsIface::FaceForTraining, Digikam::ImageTagPropertyName::faceToTrain(), Digikam::ImageTagPropertyName::ignoredFace(), Digikam::FaceTagsIface::IgnoredName, Digikam::TagsCache::instance(), Digikam::FaceTagsIface::InvalidFace, Digikam::FaceTagsIface::tagId(), Digikam::ImageTagPropertyName::tagRegion(), Digikam::FaceTagsIface::UnconfirmedName, Digikam::FaceTagsIface::UnknownName, and Digikam::TagPropertyName::unknownPerson().
Referenced by Digikam::FaceTagsIface::FaceTagsIface().
◆ typeForId()
◆ assignedRegion
TagRegion Digikam::FacePipelineFaceTagsIface::assignedRegion |
◆ assignedTagId
int Digikam::FacePipelineFaceTagsIface::assignedTagId |
◆ m_imageId
qlonglong Digikam::FaceTagsIface::m_imageId |
|
protectedinherited |
◆ m_region
◆ m_tagId
int Digikam::FaceTagsIface::m_tagId |
|
protectedinherited |
◆ m_type
Type Digikam::FaceTagsIface::m_type |
|
protectedinherited |
◆ roles
Roles Digikam::FacePipelineFaceTagsIface::roles |
The documentation for this class was generated from the following files: