• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegraphics API Reference
  • KDE Home
  • Contact Us
 

libs/libkexiv2/libkexiv2

  • sources
  • kde-4.14
  • kdegraphics
  • libs
  • libkexiv2
  • libkexiv2
rotationmatrix.h
Go to the documentation of this file.
1 
28 #ifndef LIBKEXIV2_ROTATIONMATRIX_H
29 #define LIBKEXIV2_ROTATIONMATRIX_H
30 
31 // Qt includes
32 
33 #include <QtGui/QMatrix>
34 
35 // Local includes
36 
37 #include "kexiv2.h"
38 #include "libkexiv2_export.h"
39 
40 namespace KExiv2Iface
41 {
42 
43 class KEXIV2_EXPORT RotationMatrix
44 {
45 
46 public:
47 
54  enum TransformationAction
55  {
56  NoTransformation = 0,
57  FlipHorizontal = 1,
58  FlipVertical = 2,
59  Rotate90 = 5,
60  Rotate180 = 6,
61  Rotate270 = 7
62  };
63 
65  RotationMatrix();
67  RotationMatrix(TransformationAction action);
69  RotationMatrix(KExiv2::ImageOrientation exifOrientation);
70 
71  bool operator==(const RotationMatrix& ma) const;
72  bool operator!=(const RotationMatrix& ma) const;
73 
75  bool isNoTransform() const;
76 
77  RotationMatrix& operator*=(const RotationMatrix& ma);
78 
80  RotationMatrix& operator*=(TransformationAction action);
81 
83  RotationMatrix& operator*=(QList<TransformationAction> actions);
84 
86  RotationMatrix& operator*=(KExiv2::ImageOrientation exifOrientation);
87 
92  QList<TransformationAction> transformations() const;
93 
97  KExiv2::ImageOrientation exifOrientation() const;
98 
100  QMatrix toMatrix() const;
101 
103  static QMatrix toMatrix(KExiv2::ImageOrientation orientation);
104 
105  RotationMatrix(int m11, int m12, int m21, int m22);
106 
107 protected:
108 
109  void set(int m11, int m12, int m21, int m22);
110 
111 protected:
112 
113  int m[2][2];
114 };
115 
116 } // namespace KExiv2Iface
117 
118 #endif // LIBKEXIV2_ROTATIONMATRIX_H
KExiv2Iface::KExiv2::ImageOrientation
ImageOrientation
The image orientation values given by Exif metadata.
Definition: kexiv2.h:96
KEXIV2_EXPORT
#define KEXIV2_EXPORT
Definition: libkexiv2_export.h:39
KExiv2Iface::RotationMatrix
Definition: rotationmatrix.h:43
KExiv2Iface::RotationMatrix::TransformationAction
TransformationAction
This describes single transform primitives.
Definition: rotationmatrix.h:54
QList
libkexiv2_export.h
===========================================================This file is part of the KDE project ...
QMatrix
kexiv2.h
===========================================================This file is a part of digiKam project htt...
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libs/libkexiv2/libkexiv2

Skip menu "libs/libkexiv2/libkexiv2"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkdcraw
  •     libkexiv2
  •     libkipi
  •     libksane
  • okular

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal