|
| TagRegion ()=default |
| Use this small class to convert between the formatted textual representation of a tag region in the database and the corresponding object.
|
|
| TagRegion (const QRect &rect) |
| Construct with the region.
|
|
| TagRegion (const QString &descriptor) |
| Construct with the textual descriptor.
|
|
bool | intersects (const TagRegion &other, double fraction=0) |
| Returns true if this and the other region intersect.
|
|
bool | isValid () const |
|
bool | operator!= (const TagRegion &other) const |
|
bool | operator== (const TagRegion &other) const |
|
QRect | toRect () const |
| If type is Rect, returns the contained rectangle.
|
|
QVariant | toVariant () const |
| Stores in / loads from a variant.
|
|
QString | toXml () const |
| Returns an XML textual representation of this region.
|
|
Type | type () const |
|
|
static QRectF | absoluteToRelative (const QRect ®ion, const QSize &fullSize) |
| Takes absolute region and full size to return the original relative region.
|
|
static QSize | adjustToOrientation (QRect ®ion, int orientation, const QSize &fullSize) |
| Rotate and flip region to MetaEngine::ImageOrientation.
|
|
static TagRegion | fromVariant (const QVariant &var) |
|
static QRect | mapFromOriginalSize (const DImg &reducedSizeImage, const QRect &fullSizeDetail) |
|
static QRect | mapFromOriginalSize (const QSize &fullImageSize, const QSize &reducedImageSize, const QRect &fullSizeDetail) |
|
static QRect | mapToOriginalSize (const DImg &reducedSizeImage, const QRect &reducedSizeDetail) |
| Takes the original and reduced size from the DImg.
|
|
static QRect | mapToOriginalSize (const QSize &fullImageSize, const QSize &reducedImageSize, const QRect &reducedSizeDetail) |
| Converts detail rectangles taken from a reduced size image to the original size, and vice versa.
|
|
static QRect | relativeToAbsolute (const QRectF ®ion, const DImg &reducedSizeImage) |
| Takes the original and reduced size from the DImg, maps to original size.
|
|
static QRect | relativeToAbsolute (const QRectF ®ion, const QSize &fullSize) |
| Takes a relative region and a full size and returns the absolute region.
|
|
static void | reverseToOrientation (QRect ®ion, int orientation, const QSize &fullSize) |
| Reverse rotate and flip region to MetaEngine::ImageOrientation.
|
|