#include <kis_painting_information_builder.h>
◆ KisPaintingInformationBuilder()
| KisPaintingInformationBuilder::KisPaintingInformationBuilder |
( |
| ) |
|
◆ ~KisPaintingInformationBuilder()
| KisPaintingInformationBuilder::~KisPaintingInformationBuilder |
( |
| ) |
|
|
override |
◆ adjustDocumentPoint()
| QPointF KisPaintingInformationBuilder::adjustDocumentPoint |
( |
const QPointF & | point, |
|
|
const QPointF & | startPoint ) |
|
protectedvirtual |
◆ calculatePerspective()
| qreal KisPaintingInformationBuilder::calculatePerspective |
( |
const QPointF & | documentPoint | ) |
|
|
protectedvirtual |
◆ canvasMirroredX()
| bool KisPaintingInformationBuilder::canvasMirroredX |
( |
| ) |
const |
|
protectedvirtual |
◆ canvasMirroredY()
| bool KisPaintingInformationBuilder::canvasMirroredY |
( |
| ) |
const |
|
protectedvirtual |
◆ canvasRotation()
| qreal KisPaintingInformationBuilder::canvasRotation |
( |
| ) |
const |
|
protectedvirtual |
◆ continueStroke()
◆ createPaintingInformation()
Definition at line 121 of file kis_painting_information_builder.cpp.
123{
124
129
132 event->xTilt(), event->yTilt(),
133 event->rotation(),
134 event->tangentialPressure(),
135 perspective,
136 timeElapsed,
138
143
144 return pi;
145}
QPointF point
The point in document coordinates.
References adjustDocumentPoint(), calculatePerspective(), canvasMirroredX(), canvasMirroredY(), canvasRotation(), documentToImage(), imageToView(), m_maxAllowedSpeedValue, m_pressureDisabled, m_speedSmoother, m_startPoint, m_tiltDirectionOffset, KoPointerEvent::point, KoPointerEvent::pressure(), pressureToCurve(), KisPaintInformation::setCanvasMirroredH(), KisPaintInformation::setCanvasMirroredV(), KisPaintInformation::setCanvasRotation(), KisPaintInformation::setTiltDirectionOffset(), and KoPointerEvent::time().
◆ documentToImage()
| QPointF KisPaintingInformationBuilder::documentToImage |
( |
const QPointF & | point | ) |
|
|
protectedvirtual |
◆ hover()
Definition at line 147 of file kis_painting_information_builder.cpp.
150{
152
153 const qreal speed = !isStrokeStarted && event ?
156
157 if (event) {
163 perspective,
169 } else {
175 return pi;
176 }
177}
qreal rotation() const
return the rotation (or a default value)
qreal tangentialPressure() const
const double PRESSURE_DEFAULT
References calculatePerspective(), canvasMirroredX(), canvasMirroredY(), canvasRotation(), KisPaintInformation::createHoveringModeInfo(), imageToDocument(), imageToView(), m_maxAllowedSpeedValue, m_speedSmoother, m_tiltDirectionOffset, PRESSURE_DEFAULT, KoPointerEvent::rotation(), KisPaintInformation::setCanvasMirroredH(), KisPaintInformation::setCanvasMirroredV(), KisPaintInformation::setCanvasRotation(), KisPaintInformation::setTiltDirectionOffset(), KoPointerEvent::tangentialPressure(), KoPointerEvent::time(), KoPointerEvent::xTilt(), and KoPointerEvent::yTilt().
◆ imageToDocument()
| QPointF KisPaintingInformationBuilder::imageToDocument |
( |
const QPointF & | point | ) |
|
|
protectedvirtual |
◆ imageToView()
| QPointF KisPaintingInformationBuilder::imageToView |
( |
const QPointF & | point | ) |
|
|
protectedvirtual |
◆ pressureToCurve()
| qreal KisPaintingInformationBuilder::pressureToCurve |
( |
qreal | pressure | ) |
|
◆ reset()
| void KisPaintingInformationBuilder::reset |
( |
| ) |
|
◆ startStroke()
◆ updateSettings
| void KisPaintingInformationBuilder::updateSettings |
( |
| ) |
|
|
protectedslot |
◆ LEVEL_OF_PRESSURE_RESOLUTION
| const int KisPaintingInformationBuilder::LEVEL_OF_PRESSURE_RESOLUTION = 1024 |
|
staticprivate |
◆ m_maxAllowedSpeedValue
| int KisPaintingInformationBuilder::m_maxAllowedSpeedValue = 30 |
|
private |
◆ m_pressureDisabled
| bool KisPaintingInformationBuilder::m_pressureDisabled |
|
private |
◆ m_pressureSamples
| QVector<qreal> KisPaintingInformationBuilder::m_pressureSamples |
|
private |
◆ m_speedSmoother
◆ m_startPoint
| QPointF KisPaintingInformationBuilder::m_startPoint |
|
private |
◆ m_tiltDirectionOffset
| qreal KisPaintingInformationBuilder::m_tiltDirectionOffset = 0 |
|
private |
The documentation for this class was generated from the following files: