Pages
API Documentation
On this page

KExiv2Iface::RotationMatrix Class

Todo. More...

  • Header: #include <KExiv2/RotationMatrix>
  • CMake: find_package(KExiv2Qt6 REQUIRED)
    target_link_libraries(mytarget PRIVATE KExiv2Qt6)

List of all members, including inherited members

Public Types

Public Functions

Static Public Members

Detailed Description

Member Type Documentation

enum RotationMatrix::TransformationAction

This describes single transform primitives.

Note some of the defined Exif rotation flags combine two of these actions.

The enum values correspond to those defined as JXFORM_CODE in the often used the JPEG tool transupp.h.

Constant Value Description
KExiv2Iface::RotationMatrix::NoTransformation 0 No transformation
KExiv2Iface::RotationMatrix::FlipHorizontal 1 Horizontal flip
KExiv2Iface::RotationMatrix::FlipVertical 2 Vertical flip
KExiv2Iface::RotationMatrix::Rotate90 5 90-degree clockwise rotation
KExiv2Iface::RotationMatrix::Rotate180 6 180-degree rotation
KExiv2Iface::RotationMatrix::Rotate180 6 270-degree clockwise (or 90 ccw)

Member Function Documentation

RotationMatrix::RotationMatrix()

Constructs the identity matrix (the matrix describing no transformation).

RotationMatrix::RotationMatrix(KExiv2Iface::KExiv2::ImageOrientation exifOrientation)

Returns the matrix corresponding to the given TransformationAction.

RotationMatrix::RotationMatrix(KExiv2Iface::RotationMatrix::TransformationAction action)

Returns the matrix corresponding to the given TransformationAction.

KExiv2Iface::KExiv2::ImageOrientation RotationMatrix::exifOrientation() const

Returns the Exif orienation flag describing this matrix.

Returns ORIENTATION_UNSPECIFIED if no flag matches this matrix.

bool RotationMatrix::isNoTransform() const

Returns true of this matrix describes no transformation (is the identity matrix).

QTransform RotationMatrix::toTransform() const

Returns a QTransform representing this matrix.

[static] QTransform RotationMatrix::toTransform(KExiv2Iface::KExiv2::ImageOrientation orientation)

Returns a QTransform for the given Exif orientation.

QList<KExiv2Iface::RotationMatrix::TransformationAction> RotationMatrix::transformations() const

Returns the actions described by this matrix. The order matters.

Not all possible matrices are supported, but all those that can be combined by Exif rotation flags and the transform actions above.

If isNoTransform() or the matrix is not supported returns an empty list.

bool RotationMatrix::operator!=(const KExiv2Iface::RotationMatrix &ma) const

KExiv2Iface::RotationMatrix &RotationMatrix::operator*=(KExiv2Iface::KExiv2::ImageOrientation exifOrientation)

Applies the given Exif orientation flag to this matrix.

KExiv2Iface::RotationMatrix &RotationMatrix::operator*=(KExiv2Iface::RotationMatrix::TransformationAction action)

Applies the given transform to this matrix.

KExiv2Iface::RotationMatrix &RotationMatrix::operator*=(QList<KExiv2Iface::RotationMatrix::TransformationAction> actions)

Applies the given transform actions to this matrix.

KExiv2Iface::RotationMatrix &RotationMatrix::operator*=(const KExiv2Iface::RotationMatrix &ma)

bool RotationMatrix::operator==(const KExiv2Iface::RotationMatrix &ma) const

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.