|
| ImageZoomSettings (const QSize &imageSize, const QSize &originalSize=QSize()) |
|
void | fitToSize (const QSizeF &frameSize, FitToSizeMode=AlwaysFit) |
| Sets the current zoom factor to the factor needed to fit the current (original) image size into the given view size.
|
|
double | fitToSizeZoomFactor (const QSizeF &frameSize, FitToSizeMode=AlwaysFit) const |
| Returns the zoom factor that would be used by fitToSize() called with the given frameSize.
|
|
QSizeF | imageSize () const |
| Returns the (available) image size.
|
|
bool | isFitToSize (const QSizeF &frameSize) const |
|
QPointF | mapImageToZoom (const QPointF &imagePoint) const |
| For a given point (in (0,0), imageSize()) returns the corresponding point in (0,0),zoomedSize().
|
|
QRectF | mapImageToZoom (const QRectF &imagePoint) const |
| For a given rect contained in ((0,0), imageSize()) returns the corresponding rectangle in (0,0),zoomedSize().
|
|
QPointF | mapZoomToImage (const QPointF &zoomedPoint) const |
| For a given point (in (0,0), zoomedSize()) returns the corresponding point in (0,0),imageSize().
|
|
QRectF | mapZoomToImage (const QRectF &imageRect) const |
|
QSizeF | originalImageSize () const |
| Return the original image size.
|
|
double | realZoomFactor () const |
| Return the real zoom factor dependent on device pixel ratio.
|
|
void | setDisplayWidget (QWidget *const widget) |
| Set the graphics view widget to track the device pixel ratio.
|
|
void | setImageSize (const QSize &size, const QSize &originalSize=QSize()) |
| Sets the size of the (available) image data.
|
|
void | setZoomFactor (double zoom) |
| Sets the current zoom factor, relative to (original) size.
|
|
double | snappedZoomFactor (double newZoom, const QSizeF &frameSize) const |
| When setting a new zoom factor (absolute value), the new value may be very close to a special value.
|
|
double | snappedZoomStep (double nextZoom, const QSizeF &frameSize) const |
| When changing the zoom from current zoom to given nextZoom, sometimes a special value may be crossed, and this could then be used instead of nextZoom.
|
|
QRectF | sourceRect (const QRectF &imageRect) const |
| For a given rectangle contained in ((0,0), zoomedSize()) returns the corresponding rectangle in (0,0),imageSize().
|
|
QSizeF | zoomedSize () const |
| Return the size of the image when the current zoom factor is applied.
|
|
double | zoomFactor () const |
| Return the currently set zoom factor.
|
|