#include <kis_projection_backend.h>
KisProjectionBackend is an abstract class representing an object that can store a cache of KisImage projection. More than that this object can perform some scaling operations that are based on "patches" paradigm
Definition at line 24 of file kis_projection_backend.h.
◆ ~KisProjectionBackend()
| KisProjectionBackend::~KisProjectionBackend |
( |
| ) |
|
|
virtual |
◆ alignSourceRect()
| void KisProjectionBackend::alignSourceRect |
( |
QRect & | rect, |
|
|
qreal | scale ) |
|
virtual |
◆ drawFromOriginalImage()
Draws a piece of original image onto gc 's canvas info.imageRect - area in KisImage pixels where to read from info.viewportRect - area in canvas pixels where to write to If info.imageRect and info.viewportRect don't agree, the image will be scaled info.borderWidth has the same meaning as in getNearestPatch info.renderHints - hints, transmitted to QPainter during drawing
Implemented in KisImagePyramid.
◆ getNearestPatch()
Gets a patch from a backend that can draw a info.imageRect on some QPainter in future. info.scaleX and info.scaleY are the scales of planned drawing, btw, it doesn't mean that an QImage inside the patch will have these scales - it'll have the nearest suitable scale or even original scale (e.g. KisProjectionCache)
If info.borderWidth is non-zero, info.requestedRect will be expended by info.borderWidth pixels to all directions and image of this rect will actually be written to the patch's QImage. That is done to eliminate border effects in smooth scaling.
Implemented in KisImagePyramid.
◆ recalculateCache()
Prescales the cache of the backend. It is intended to be called from a separate thread where you can easily do the calculations. No data transfers with KisImage should happen during this phase
Implemented in KisImagePyramid.
◆ setChannelFlags()
| virtual void KisProjectionBackend::setChannelFlags |
( |
const QBitArray & | channelFlags | ) |
|
|
pure virtual |
◆ setDisplayFilter()
◆ setImage()
◆ setImageSize()
| virtual void KisProjectionBackend::setImageSize |
( |
qint32 | w, |
|
|
qint32 | h ) |
|
pure virtual |
◆ setMonitorProfile()
◆ updateCache()
| virtual void KisProjectionBackend::updateCache |
( |
const QRect & | dirtyImageRect | ) |
|
|
pure virtual |
Updates the cache of the backend by reading from an associated image. All data transfers with KisImage should happen here
Implemented in KisImagePyramid.
The documentation for this class was generated from the following files: