7#ifndef _KIS_PRESET_LIVE_PREVIEW_
8#define _KIS_PRESET_LIVE_PREVIEW_
10#include <QGraphicsScene>
11#include <QGraphicsView>
12#include <QPainterPath>
13#include <QGraphicsPixmapItem>
KisPaintOpPresetSP m_currentPreset
KisDistanceInformation m_currentDistance
QGraphicsScene * m_brushPreviewScene
the scene that can add items like text and the brush stroke image
const float m_minStrokeScale
multiplier that is used for lengthening the brush stroke points
const qreal m_minScale
range of scale values. 1.0 == 100%
const KoColorSpace * m_colorSpace
internally sets the color space for brush preview
~KisPresetLivePreviewView()
void changeEvent(QEvent *) override
KisPresetLivePreviewView(QWidget *parent)
void setupAndPaintStroke()
creates and performs the actual stroke that goes on top of the background this is internally and shou...
KoCanvasResourceProvider * m_resourceManager
internally sets the Resource Provider for brush preview (allowing gradients in preview)
void setCurrentPreset(KisPaintOpPresetSP preset)
set the current preset from resource manager for the live preview to use. Good to call this every str...
const float m_maxBrushVal
QGraphicsTextItem * m_noPreviewText
holds the 'no preview available' text object
KisImageSP m_image
internally sets the image area for brush preview
void paintBackground()
works as both clearing the previous stroke, providing striped backgrounds for smudging brushes,...
QGraphicsPixmapItem * m_sceneImageItem
holds the preview brush stroke data
QPainterPath m_curvedLine
void requestUpdateStroke()
KisLayerSP m_layer
internally sets the layer area for brush preview
KisSignalCompressor m_updateCompressor
void setup(KoCanvasResourceProvider *resourceManager)
one time setup for initialization of many variables. This live preview might be in a UI file,...
KisPaintInformation m_curvePointPI1
bool m_previewGenerationInProgress
QPointF m_canvasCenterPoint
KoColor m_paintColor
the color which is used for rendering the stroke
void slotPreviewGenerationCompleted()
KisPaintInformation m_curvePointPI2
const float m_minBrushVal
the range of brush sizes that will control zooming in/out
const float m_maxStrokeScale