Changeset View
Changeset View
Standalone View
Standalone View
libs/image/brushengine/kis_paint_information.cc
| Context not available. | |||||
| 21 | #include <QDomElement> | 21 | #include <QDomElement> | ||
|---|---|---|---|---|---|
| 22 | #include <QScopedPointer> | 22 | #include <QScopedPointer> | ||
| 23 | 23 | | |||
| 24 | #include <Eigen/Core> | | |||
| 25 | | ||||
| 26 | #include "kis_paintop.h" | 24 | #include "kis_paintop.h" | ||
| 27 | #include "kis_algebra_2d.h" | 25 | #include "kis_algebra_2d.h" | ||
| 28 | #include "kis_lod_transform.h" | 26 | #include "kis_lod_transform.h" | ||
| Context not available. | |||||
| 31 | #include <kis_dom_utils.h> | 29 | #include <kis_dom_utils.h> | ||
| 32 | 30 | | |||
| 33 | struct KisPaintInformation::Private { | 31 | struct KisPaintInformation::Private { | ||
| 34 | EIGEN_MAKE_ALIGNED_OPERATOR_NEW | | |||
| 35 | | ||||
| 36 | Private(const QPointF & pos_, | 32 | Private(const QPointF & pos_, | ||
| 37 | qreal pressure_, | 33 | qreal pressure_, | ||
| 38 | qreal xTilt_, qreal yTilt_, | 34 | qreal xTilt_, qreal yTilt_, | ||
| Context not available. | |||||
| 587 | // mapping to 0.0..1.0 if normalize is true | 583 | // mapping to 0.0..1.0 if normalize is true | ||
| 588 | return normalize ? (tiltElevation / (M_PI * qreal(0.5))) : tiltElevation; | 584 | return normalize ? (tiltElevation / (M_PI * qreal(0.5))) : tiltElevation; | ||
| 589 | } | 585 | } | ||
| 590 | | ||||
| Context not available. | |||||