25 #ifndef DIGIKAM_TAG_REGION_H
26 #define DIGIKAM_TAG_REGION_H
73 explicit TagRegion(
const QString& descriptor);
85 bool operator!=(
const TagRegion& other)
const;
90 QString toXml()
const;
100 QVariant toVariant()
const;
101 static TagRegion fromVariant(
const QVariant& var);
112 bool intersects(
const TagRegion& other,
double fraction = 0);
117 static QRect mapToOriginalSize(
const QSize& fullImageSize,
const QSize& reducedImageSize,
const QRect& reducedSizeDetail);
118 static QRect mapFromOriginalSize(
const QSize& fullImageSize,
const QSize& reducedImageSize,
const QRect& fullSizeDetail);
123 static QRect mapToOriginalSize(
const DImg& reducedSizeImage,
const QRect& reducedSizeDetail);
124 static QRect mapFromOriginalSize(
const DImg& reducedSizeImage,
const QRect& fullSizeDetail);
129 static QRect relativeToAbsolute(
const QRectF& region,
const QSize& fullSize);
134 static QRect relativeToAbsolute(
const QRectF& region,
const DImg& reducedSizeImage);
140 static QRectF absoluteToRelative(
const QRect& region,
const QSize& fullSize);
146 static QSize adjustToOrientation(QRect& region,
int orientation,
const QSize& fullSize);
152 static void reverseToOrientation(QRect& region,
int orientation,
const QSize& fullSize);
Definition: tagregion.h:47
QVariant m_value
Definition: tagregion.h:156
Type m_type
Definition: tagregion.h:157
Type
Definition: tagregion.h:52
@ Invalid
Definition: tagregion.h:53
Definition: datefolderview.cpp:43
QDebug operator<<(QDebug dbg, const DbEngineParameters &p)
Definition: dbengineparameters.cpp:863
bool operator==(const SearchTextSettings &a, const SearchTextSettings &b)
Definition: searchtextbar.cpp:49
Type
Definition: gpsitemcontainer.h:45