|
Krita Source Code Documentation
|
#include <kis_figure_painting_tool_helper.h>
Public Member Functions | |
| KisFigurePaintingToolHelper (const KUndo2MagicString &name, KisImageWSP image, KisNodeSP currentNode, KoCanvasResourceProvider *resourceManager, KisToolShapeUtils::StrokeStyle strokeStyle, KisToolShapeUtils::FillStyle fillStyle, QTransform fillTransform=QTransform()) | |
| void | paintEllipse (const QRectF &rect) |
| void | paintLine (const KisPaintInformation &pi0, const KisPaintInformation &pi1) |
| void | paintPainterPath (const QPainterPath &path) |
| void | paintPainterPathQPen (const QPainterPath, const QPen &pen, const KoColor &color) |
| void | paintPainterPathQPenFill (const QPainterPath, const QPen &pen, const KoColor &color) |
| void | paintPolygon (const vQPointF &points) |
| void | paintPolyline (const vQPointF &points) |
| void | paintRect (const QRectF &rect) |
| void | setBGColorOverride (const KoColor &color) |
| void | setBrush (const KisPaintOpPresetSP &brush) |
| void | setFGColorOverride (const KoColor &color) |
| void | setSelectionOverride (KisSelectionSP m_selection) |
| ~KisFigurePaintingToolHelper () | |
Private Member Functions | |
| void | setupPaintStyles (KisResourcesSnapshotSP resources, KisToolShapeUtils::StrokeStyle strokeStyle, KisToolShapeUtils::FillStyle fillStyle, QTransform fillTransform) |
Private Attributes | |
| KisResourcesSnapshotSP | m_resources |
| KisStrokeId | m_strokeId |
| KisStrokesFacade * | m_strokesFacade |
Definition at line 19 of file kis_figure_painting_tool_helper.h.
| KisFigurePaintingToolHelper::KisFigurePaintingToolHelper | ( | const KUndo2MagicString & | name, |
| KisImageWSP | image, | ||
| KisNodeSP | currentNode, | ||
| KoCanvasResourceProvider * | resourceManager, | ||
| KisToolShapeUtils::StrokeStyle | strokeStyle, | ||
| KisToolShapeUtils::FillStyle | fillStyle, | ||
| QTransform | fillTransform = QTransform() ) |
Definition at line 19 of file kis_figure_painting_tool_helper.cpp.
References KisWeakSharedPtr< T >::data(), m_resources, m_strokeId, m_strokesFacade, setupPaintStyles(), and KisStrokesFacade::startStroke().
| KisFigurePaintingToolHelper::~KisFigurePaintingToolHelper | ( | ) |
Definition at line 94 of file kis_figure_painting_tool_helper.cpp.
References KisStrokesFacade::addJob(), KisStrokesFacade::endStroke(), m_strokeId, and m_strokesFacade.
| void KisFigurePaintingToolHelper::paintEllipse | ( | const QRectF & | rect | ) |
Definition at line 133 of file kis_figure_painting_tool_helper.cpp.
References KisStrokesFacade::addJob(), FreehandStrokeStrategy::Data::ELLIPSE, m_strokeId, and m_strokesFacade.
| void KisFigurePaintingToolHelper::paintLine | ( | const KisPaintInformation & | pi0, |
| const KisPaintInformation & | pi1 ) |
Definition at line 101 of file kis_figure_painting_tool_helper.cpp.
References KisStrokesFacade::addJob(), m_strokeId, and m_strokesFacade.
| void KisFigurePaintingToolHelper::paintPainterPath | ( | const QPainterPath & | path | ) |
Definition at line 141 of file kis_figure_painting_tool_helper.cpp.
References KisStrokesFacade::addJob(), m_strokeId, m_strokesFacade, and FreehandStrokeStrategy::Data::PAINTER_PATH.
| void KisFigurePaintingToolHelper::paintPainterPathQPen | ( | const QPainterPath | path, |
| const QPen & | pen, | ||
| const KoColor & | color ) |
Definition at line 169 of file kis_figure_painting_tool_helper.cpp.
References KisStrokesFacade::addJob(), m_strokeId, m_strokesFacade, and FreehandStrokeStrategy::Data::QPAINTER_PATH.
| void KisFigurePaintingToolHelper::paintPainterPathQPenFill | ( | const QPainterPath | path, |
| const QPen & | pen, | ||
| const KoColor & | color ) |
Definition at line 177 of file kis_figure_painting_tool_helper.cpp.
References KisStrokesFacade::addJob(), m_strokeId, m_strokesFacade, and FreehandStrokeStrategy::Data::QPAINTER_PATH_FILL.
Definition at line 117 of file kis_figure_painting_tool_helper.cpp.
References KisStrokesFacade::addJob(), m_strokeId, m_strokesFacade, and FreehandStrokeStrategy::Data::POLYGON.
Definition at line 109 of file kis_figure_painting_tool_helper.cpp.
References KisStrokesFacade::addJob(), m_strokeId, m_strokesFacade, and FreehandStrokeStrategy::Data::POLYLINE.
| void KisFigurePaintingToolHelper::paintRect | ( | const QRectF & | rect | ) |
Definition at line 125 of file kis_figure_painting_tool_helper.cpp.
References KisStrokesFacade::addJob(), m_strokeId, m_strokesFacade, and FreehandStrokeStrategy::Data::RECT.
Definition at line 154 of file kis_figure_painting_tool_helper.cpp.
References m_resources, and KisResourcesSnapshot::setBGColorOverride().
| void KisFigurePaintingToolHelper::setBrush | ( | const KisPaintOpPresetSP & | brush | ) |
Definition at line 164 of file kis_figure_painting_tool_helper.cpp.
References m_resources, and KisResourcesSnapshot::setBrush().
Definition at line 149 of file kis_figure_painting_tool_helper.cpp.
References m_resources, and KisResourcesSnapshot::setFGColorOverride().
| void KisFigurePaintingToolHelper::setSelectionOverride | ( | KisSelectionSP | m_selection | ) |
Definition at line 159 of file kis_figure_painting_tool_helper.cpp.
References m_resources, and KisResourcesSnapshot::setSelectionOverride().
|
private |
Definition at line 44 of file kis_figure_painting_tool_helper.cpp.
References KisResourcesSnapshot::currentBgColor(), KisResourcesSnapshot::currentFgColor(), KisPainter::FillStyleBackgroundColor, KisPainter::FillStyleForegroundColor, KisPainter::FillStyleNone, KisPainter::FillStylePattern, KisResourcesSnapshot::setBGColorOverride(), KisResourcesSnapshot::setFGColorOverride(), KisResourcesSnapshot::setFillStyle(), KisResourcesSnapshot::setFillTransform(), KisResourcesSnapshot::setStrokeStyle(), KisPainter::StrokeStyleBrush, and KisPainter::StrokeStyleNone.
|
private |
Definition at line 53 of file kis_figure_painting_tool_helper.h.
|
private |
Definition at line 52 of file kis_figure_painting_tool_helper.h.
|
private |
Definition at line 54 of file kis_figure_painting_tool_helper.h.