![]() |
digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
|
Public Types | |
enum | Type { NoOperation , Rotate90 , Rotate180 , Rotate270 , FlipHorizontally , FlipVertically , Crop , Resize , ConvertTo8Bit , ConvertTo16Bit } |
Public Member Functions | |
DImgBuiltinFilter ()=default | |
Create a filter performing no operation. | |
DImgBuiltinFilter (const FilterAction &action) | |
Create a filter for the given action. | |
DImgBuiltinFilter (Type type, const QVariant &arg=QVariant()) | |
Create a filter of the given type. | |
void | apply (DImg &image) const |
Apply the described change to the given image reference. | |
DImgThreadedFilter * | createThreadedFilter (DImg *const orgImage, QObject *const parent=nullptr) const |
DImgThreadedFilter * | createThreadedFilter (QObject *const parent=nullptr) const |
QString | displayableName () const |
FilterAction | filterAction () const |
QString | filterIcon () const |
QString | i18nDisplayableName () const |
bool | isReversible () const |
bool | isValid () const |
Checks that the action is supported and valid arguments are set. | |
DImgBuiltinFilter | reverseFilter () const |
void | setAction (const FilterAction &action) |
Same as constructor. | |
void | setAction (Type type, const QVariant &arg=QVariant()) |
Static Public Member Functions | |
static QString | filterIcon (const QString &filterIdentifier) |
static QString | i18nDisplayableName (const QString &filterIdentifier) |
static bool | isSupported (const QString &filterIdentifier) |
static bool | isSupported (const QString &filterIdentifier, int version) |
static QStringList | supportedFilters () |
static QList< int > | supportedVersions (const QString &filterIdentifier) |
Protected Attributes | |
QVariant | m_arg |
Type | m_type = NoOperation |
|
explicit |
If the action is not supported, the filter will perform no operation.
|
explicit |
See documentation of Type for required arguments.
DImgThreadedFilter * Digikam::DImgBuiltinFilter::createThreadedFilter | ( | QObject *const | parent = nullptr | ) | const |
QString Digikam::DImgBuiltinFilter::displayableName | ( | ) | const |
FilterAction Digikam::DImgBuiltinFilter::filterAction | ( | ) | const |
|
static |
DImgBuiltinFilter Digikam::DImgBuiltinFilter::reverseFilter | ( | ) | const |
|
static |