24 #ifndef DIGIKAM_IMAGE_ZOOM_SETTINGS_H
25 #define DIGIKAM_IMAGE_ZOOM_SETTINGS_H
54 explicit ImageZoomSettings(
const QSize& imageSize,
const QSize& originalSize = QSize());
63 void setImageSize(
const QSize& size,
const QSize& originalSize = QSize());
68 double zoomFactor()
const;
73 double realZoomFactor()
const;
78 QSizeF imageSize()
const;
83 QSizeF originalImageSize()
const;
89 QSizeF zoomedSize()
const;
91 bool isFitToSize(
const QSizeF& frameSize)
const;
96 void setZoomFactor(
double zoom);
105 void fitToSize(
const QSizeF& frameSize, FitToSizeMode = AlwaysFit);
111 QRectF sourceRect(
const QRectF& imageRect)
const;
113 QRectF mapZoomToImage(
const QRectF& imageRect)
const;
119 QRectF mapImageToZoom(
const QRectF& imagePoint)
const;
125 QPointF mapZoomToImage(
const QPointF& zoomedPoint)
const;
131 QPointF mapImageToZoom(
const QPointF& imagePoint)
const;
137 double fitToSizeZoomFactor(
const QSizeF& frameSize, FitToSizeMode = AlwaysFit)
const;
144 double snappedZoomStep(
double nextZoom,
const QSizeF& frameSize)
const;
151 double snappedZoomFactor(
double newZoom,
const QSizeF& frameSize)
const;
Definition: imagezoomsettings.h:41
double m_zoomConst
Definition: imagezoomsettings.h:157
FitToSizeMode
Definition: imagezoomsettings.h:46
@ AlwaysFit
Definition: imagezoomsettings.h:47
QSizeF m_size
Definition: imagezoomsettings.h:155
double m_zoom
Definition: imagezoomsettings.h:156
double m_zoomRatio
Definition: imagezoomsettings.h:158
Definition: datefolderview.cpp:43