|
Krita Source Code Documentation
|
#include <KoViewTransformStillPoint.h>
Inheritance diagram for KoViewTransformStillPoint:Public Member Functions | |
| QPointF | docPoint () const |
| KoViewTransformStillPoint ()=default | |
| KoViewTransformStillPoint (const KoViewTransformStillPoint &rhs)=default | |
| KoViewTransformStillPoint (const QPointF &docPoint, const QPointF &viewPoint) | |
| KoViewTransformStillPoint (const std::pair< QPointF, QPointF > &rhs) | |
| KoViewTransformStillPoint (KoViewTransformStillPoint &&rhs)=default | |
| KoViewTransformStillPoint & | operator= (const KoViewTransformStillPoint &rhs)=default |
| KoViewTransformStillPoint & | operator= (KoViewTransformStillPoint &&rhs)=default |
| QPointF | viewPoint () const |
A special class the defines a "still point" for the transformations applied to the canvas. "Still point" is defined as a point that does not move on screen when a transformation happens. For example, when rotating the canvas, the center of rotation does not move, hence it is considered as a "still point".
A lot of canvas operations in Krita cannot guarantee that the point will precisely "stand still" during transformation. It may happen that the canvas will be slightly moved to the side to ensure that it is aligned to the hardware pixels.
In such cases we should remember what was our original intention in positioning the image on the canvas. We should remember both, the image point and the widget point. Otherwise slight and unpleasant drifts will happen when the user zooms or rotates the image.
Definition at line 33 of file KoViewTransformStillPoint.h.
|
default |
| KoViewTransformStillPoint::KoViewTransformStillPoint | ( | const QPointF & | docPoint, |
| const QPointF & | viewPoint ) |
Definition at line 10 of file KoViewTransformStillPoint.cpp.
| KoViewTransformStillPoint::KoViewTransformStillPoint | ( | const std::pair< QPointF, QPointF > & | rhs | ) |
Definition at line 15 of file KoViewTransformStillPoint.cpp.
|
default |
|
default |
| QPointF KoViewTransformStillPoint::docPoint | ( | ) | const |
Definition at line 20 of file KoViewTransformStillPoint.cpp.
|
default |
|
default |
| QPointF KoViewTransformStillPoint::viewPoint | ( | ) | const |
Definition at line 24 of file KoViewTransformStillPoint.cpp.