7#ifndef __KIS_LS_UTILS_H
8#define __KIS_LS_UTILS_H
11#include "kritaimage_export.h"
32 const QRect &srcRect);
37 const QRect &applyRect,
44 const QRect &applyRect,
45 const quint8 *lookup_table,
52 const QRect &applyRect,
61 const QRect &totalNeedRect,
62 const bool knockOutInverted);
65 const QRect &applyRect,
74 const QRect &applyRect,
91 template<
class ConfigStruct>
95 const ConfigStruct *srcStruct)
99 storage.reset(
new ConfigStruct(*srcStruct));
102 storage->scaleLinearSizes(lodScale);
void applyContourCorrection(KisPixelSelectionSP selection, const QRect &applyRect, const quint8 *lookup_table, bool antiAliased, bool edgeHidden)
const int noiseNeedBorder
QRect growSelectionUniform(KisPixelSelectionSP selection, int growSize, const QRect &applyRect)
QRect growRectFromRadius(const QRect &rc, int radius)
void adjustRange(KisPixelSelectionSP selection, const QRect &applyRect, const int range)
void findEdge(KisPixelSelectionSP selection, const QRect &applyRect, const bool edgeHidden)
void fillPattern(KisPaintDeviceSP fillDevice, const QRect &applyRect, KisLayerStyleFilterEnvironment *env, int scale, KoPatternSP pattern, int horizontalPhase, int verticalPhase, bool alignWithLayer)
void fillOverlayDevice(KisPaintDeviceSP fillDevice, const QRect &applyRect, const psd_layer_effects_overlay_base *config, KisResourcesInterfaceSP resourcesInterface, KisLayerStyleFilterEnvironment *env)
void applyNoise(KisPixelSelectionSP selection, const QRect &applyRect, int noise, const psd_layer_effects_context *context, KisLayerStyleFilterEnvironment *env)
bool checkEffectEnabled(const psd_layer_effects_shadow_base *config, KisMultipleProjection *dst)
void knockOutSelection(KisPixelSelectionSP selection, KisPixelSelectionSP knockOutSelection, const QRect &srcRect, const QRect &dstRect, const QRect &totalNeedRect, const bool knockOutInverted)
void selectionFromAlphaChannel(KisPaintDeviceSP srcDevice, KisSelectionSP dstSelection, const QRect &srcRect)
static const int FULL_PERCENT_RANGE
void applyGaussianWithTransaction(KisPixelSelectionSP selection, const QRect &applyRect, qreal radius)
void applyFinalSelection(const QString &projectionId, KisSelectionSP baseSelection, KisPaintDeviceSP srcDevice, KisMultipleProjection *dst, const QRect &, const QRect &dstRect, const psd_layer_effects_context *, const psd_layer_effects_shadow_base *config, KisResourcesInterfaceSP resourcesInterface, const KisLayerStyleFilterEnvironment *env)
QScopedPointer< ConfigStruct > storage
LodWrapper(int lod, const ConfigStruct *srcStruct)
const ConfigStruct * config