33 {
M_PI / 180, 0.05, 1, 0.01, 0.01, 0.05},
34 {
M_PI / 180, 0.01, 1, 0.01, 0.01, 0.01},
35 {
M_PI / 180, 0, 1, 0.01, 0.01,
eps},
36 {
M_PI / 180, 0, 0.5, 0.01, 0.01,
eps},
174 const QPointF &cursorPoint,
181 qreal subPixelX = 0.0, subPixelY = 0.0;
187 QPointF hotSpot = brush->hotSpot(shape, info);
188 QPointF pt = cursorPoint - hotSpot;
190 if (sharpnessOption) {
191 sharpnessOption->
apply(info, pt, x, y, subPixelX, subPixelY);
203 if (qIsNaN(subPixelX)) {
207 if (qIsNaN(subPixelY)) {
211 int width = brush->maskWidth(shape, subPixelX, subPixelY, info);
212 int height = brush->maskHeight(shape, subPixelX, subPixelY, info);
216 width = brush->maskWidth(shape, subPixelX, subPixelY, info);
217 x = qRound(cursorPoint.x() + subPixelX + hotSpot.x()) - width;
222 height = brush->maskHeight(shape, subPixelX, subPixelY, info);
223 y = qRound(cursorPoint.y() + subPixelY + hotSpot.y()) - height;
227 QPointF(subPixelX, subPixelY),
KisDabCacheBase::DabPosition calculateDabRect(KisBrushSP brush, const QPointF &cursorPoint, KisDabShape, const KisPaintInformation &info, const MirrorProperties &mirrorProperties, KisSharpnessOption *sharpnessOption)
void fetchDabGenerationInfo(bool hasDabInCache, KisDabCacheUtils::DabRenderingResources *resources, const KisDabCacheUtils::DabRequestInfo &request, KisDabCacheUtils::DabGenerationInfo *di, bool *shouldUseCache)
SavedDabParameters getDabParameters(KisBrushSP brush, const KoColor &color, KisDabShape const &, const KisPaintInformation &info, double subPixelX, double subPixelY, qreal softnessFactor, qreal lightnessStrength, MirrorProperties mirrorProperties)