|
Krita Source Code Documentation
|
#include <kis_paintop_utils.h>
Public Member Functions | |
| QPointF | pushThroughHistory (const QPointF &pt, qreal zoom) |
| void | reset (const QPointF &pt) |
Private Attributes | |
| QPointF | m_first |
| QPointF | m_second |
A special class containing the previous position of the cursor for the sake of painting the outline of the paint op. The main purpose of this class is to ensure that the saved point does not equal to the current one, which would cause a outline flicker. To achieve this the class stores two previously requested points instead of the last one.
Definition at line 113 of file kis_paintop_utils.h.
|
inline |
pt and updates the history if needed We use per-axis distance to avoid artifacts when using devices that send events in a staircase way.
Ideally, we should make the transition from m_first to m_second smooth, but simple blending via 'coeff' doesn't work for some reason.
Definition at line 120 of file kis_paintop_utils.h.
References distance().
|
inline |
Definition at line 146 of file kis_paintop_utils.h.
|
private |
Definition at line 153 of file kis_paintop_utils.h.
|
private |
Definition at line 154 of file kis_paintop_utils.h.