|
Krita Source Code Documentation
|
Inheritance diagram for KisImageBrushesPipe:Protected Member Functions | |
| int | chooseNextBrush (const KisPaintInformation &info) override |
| void | updateBrushIndexes (KisRandomSourceSP randomSource, int seqNo) override |
Protected Member Functions inherited from KisBrushesPipe< KisGbrBrush > | |
| void | addBrush (QSharedPointer< KisGbrBrush > brush) |
| int | sizeBrush () |
Static Protected Member Functions | |
| static int | selectPost (KisParasite::SelectionMode mode, int index, int rank, KisRandomSourceSP randomSource, int seqNo) |
| static int | selectPre (KisParasite::SelectionMode mode, int index, int rank, const KisPaintInformation &info) |
Private Attributes | |
| int | m_currentBrushIndex |
| bool | m_isInitialized |
| KisPipeBrushParasite | m_parasite |
Additional Inherited Members | |
Protected Attributes inherited from KisBrushesPipe< KisGbrBrush > | |
| QVector< QSharedPointer< KisGbrBrush > > | m_brushes |
Definition at line 12 of file kis_imagepipe_brush.cpp.
|
inline |
Definition at line 15 of file kis_imagepipe_brush.cpp.
|
inlineoverrideprotectedvirtual |
Returns the index of the next brush that corresponds to the current values of info. This method is called before the dab is actually painted.
Implements KisBrushesPipe< KisGbrBrush >.
Definition at line 108 of file kis_imagepipe_brush.cpp.
References KisPipeBrushParasite::brushesCount, KisPipeBrushParasite::dim, KisPipeBrushParasite::index, KIS_SAFE_ASSERT_RECOVER, KisBrushesPipe< KisGbrBrush >::m_brushes, m_currentBrushIndex, m_isInitialized, m_parasite, KisPaintInformation::randomSource(), KisPipeBrushParasite::rank, KisPipeBrushParasite::selection, selectPre(), and updateBrushIndexes().
|
inline |
Definition at line 194 of file kis_imagepipe_brush.cpp.
References KisBrushesPipe< KisGbrBrush >::m_brushes.
|
inlineoverridevirtual |
Returns the current index of the brush This method is called before the dab is actually painted.
The method is const, so no internal counters of the brush should change during its execution
Implements KisBrushesPipe< KisGbrBrush >.
Definition at line 143 of file kis_imagepipe_brush.cpp.
References m_currentBrushIndex.
|
inline |
Definition at line 179 of file kis_imagepipe_brush.cpp.
References KisBrushesPipe< KisGbrBrush >::m_brushes.
|
inlineoverridevirtual |
Is called by the paint op when a paintop starts a stroke. The brushes are shared among different strokes, so sometimes the brush should be reset.
Implements KisBrushesPipe< KisGbrBrush >.
Definition at line 200 of file kis_imagepipe_brush.cpp.
References m_isInitialized.
|
inline |
Definition at line 151 of file kis_imagepipe_brush.cpp.
References m_parasite.
|
inline |
Definition at line 185 of file kis_imagepipe_brush.cpp.
References KisBrushesPipe< KisGbrBrush >::m_brushes.
|
inlinestaticprotected |
Definition at line 80 of file kis_imagepipe_brush.cpp.
References KisParasite::Angular, KisParasite::Constant, KisRandomSource::generate(), KisParasite::Incremental, KisParasite::Pressure, KisParasite::Random, KisParasite::TiltX, KisParasite::TiltY, KisParasite::Velocity, and warnImage.
|
inlinestaticprotected |
Definition at line 33 of file kis_imagepipe_brush.cpp.
References KisParasite::Angular, KisParasite::Constant, KisPaintInformation::drawingAngle(), KisPaintInformation::drawingSpeed(), KisParasite::Incremental, M_PI, normalizeAngle(), KisParasite::Pressure, KisPaintInformation::pressure(), KisParasite::Random, KisParasite::TiltX, KisParasite::TiltY, KisParasite::Velocity, warnImage, KisPaintInformation::xTilt(), and KisPaintInformation::yTilt().
|
inline |
Definition at line 155 of file kis_imagepipe_brush.cpp.
References KisBrushesPipe< KisGbrBrush >::m_brushes, and value().
|
inline |
Definition at line 173 of file kis_imagepipe_brush.cpp.
References KisBrushesPipe< KisGbrBrush >::m_brushes, and value().
|
inline |
Definition at line 161 of file kis_imagepipe_brush.cpp.
References KisBrushesPipe< KisGbrBrush >::m_brushes, and value().
|
inline |
Definition at line 167 of file kis_imagepipe_brush.cpp.
References KisBrushesPipe< KisGbrBrush >::m_brushes, and value().
|
inline |
Definition at line 147 of file kis_imagepipe_brush.cpp.
References m_parasite, and parasite().
|
inlineoverrideprotectedvirtual |
Updates internal counters of the brush after a dab has been painted on the canvas. Some incremental switching of the brushes may me implemented in this method.
If seqNo is equal or greater than zero, then incremental iteration is overridden by this seqNo value
Implements KisBrushesPipe< KisGbrBrush >.
Definition at line 127 of file kis_imagepipe_brush.cpp.
References KisPipeBrushParasite::dim, KisPipeBrushParasite::index, m_isInitialized, m_parasite, KisPipeBrushParasite::rank, KisPipeBrushParasite::selection, and selectPost().
|
private |
Definition at line 206 of file kis_imagepipe_brush.cpp.
|
private |
Definition at line 207 of file kis_imagepipe_brush.cpp.
|
private |
Definition at line 205 of file kis_imagepipe_brush.cpp.