|
Krita Source Code Documentation
|
#include <kis_boundary.h>
Classes | |
| struct | Private |
Public Member Functions | |
| void | generateBoundary () |
| KisBoundary (KisFixedPaintDeviceSP dev) | |
| void | paint (QPainter &painter) const |
| QPainterPath | path () const |
| returns the outline saved in QPainterPath | |
| ~KisBoundary () | |
Private Attributes | |
| Private *const | d |
Generates an 'outline' for a paint device. It should look a bit like the outline of a marching ants selection.
It's not really optimized, so it's not recommended to do big things with it and expect it to be fast.
Usage: construct a KisBoundary, and then run a generateBoundary(w, h) on it. After that, you can use the KisBoundaryPainter::paint method to let it paint the outline, or get a pixmap.
If you are debugging the brush outlines, be aware that the pipeline for this data is somewhat complex, involving such user classes: KisBoundary, KisBrush, KisBrushBasedPaintOpSettings, KisTool, KisCurrentOutlineFetcher
Definition at line 29 of file kis_boundary.h.
| KisBoundary::KisBoundary | ( | KisFixedPaintDeviceSP | dev | ) |
Definition at line 22 of file kis_boundary.cc.
References d, and KisBoundary::Private::m_device.
| KisBoundary::~KisBoundary | ( | ) |
| void KisBoundary::generateBoundary | ( | ) |
Definition at line 32 of file kis_boundary.cc.
References KisFixedPaintDevice::bounds(), KisFixedPaintDevice::colorSpace(), d, KisFixedPaintDevice::data(), KisBoundary::Private::m_boundary, KisBoundary::Private::m_device, OPACITY_TRANSPARENT_U8, KisOutlineGenerator::outline(), KisBoundary::Private::path, and KisOutlineGenerator::setSimpleOutline().
| void KisBoundary::paint | ( | QPainter & | painter | ) | const |
Definition at line 49 of file kis_boundary.cc.
References d, and KisBoundary::Private::m_boundary.
| QPainterPath KisBoundary::path | ( | ) | const |
returns the outline saved in QPainterPath
Definition at line 61 of file kis_boundary.cc.
References d, and KisBoundary::Private::path.
|
private |
Definition at line 43 of file kis_boundary.h.