Changeset View
Changeset View
Standalone View
Standalone View
libs/image/brushengine/kis_paintop.h
Context not available. | |||||
58 | void paintAt(const KisPaintInformation& info, KisDistanceInformation *currentDistance); | 58 | void paintAt(const KisPaintInformation& info, KisDistanceInformation *currentDistance); | ||
---|---|---|---|---|---|
59 | 59 | | |||
60 | /** | 60 | /** | ||
61 | * Updates the spacing in currentDistance based on the provided information. Note that the | ||||
62 | * spacing is updated automatically in the paintAt method, so there is no need to call this | ||||
63 | * method if paintAt has just been called. | ||||
64 | */ | ||||
65 | void updateSpacing(const KisPaintInformation &info, KisDistanceInformation ¤tDistance) | ||||
66 | const; | ||||
67 | | ||||
68 | /** | ||||
61 | * Draw a line between pos1 and pos2 using the currently set brush and color. | 69 | * Draw a line between pos1 and pos2 using the currently set brush and color. | ||
62 | * If savedDist is less than zero, the brush is painted at pos1 before being | 70 | * If savedDist is less than zero, the brush is painted at pos1 before being | ||
63 | * painted along the line using the spacing setting. | 71 | * painted along the line using the spacing setting. | ||
Context not available. | |||||
100 | protected: | 108 | protected: | ||
101 | friend class KisPaintInformation; | 109 | friend class KisPaintInformation; | ||
102 | /** | 110 | /** | ||
103 | * The implementation of painting of a dab | 111 | * The implementation of painting of a dab and updating spacing | ||
104 | */ | 112 | */ | ||
105 | virtual KisSpacingInformation paintAt(const KisPaintInformation& info) = 0; | 113 | virtual KisSpacingInformation paintAt(const KisPaintInformation& info) = 0; | ||
106 | 114 | | |||
115 | /** | ||||
116 | * Implementation of a spacing update | ||||
117 | */ | ||||
118 | virtual KisSpacingInformation updateSpacingImpl(const KisPaintInformation &info) const = 0; | ||||
119 | | ||||
107 | KisFixedPaintDeviceSP cachedDab(); | 120 | KisFixedPaintDeviceSP cachedDab(); | ||
108 | KisFixedPaintDeviceSP cachedDab(const KoColorSpace *cs); | 121 | KisFixedPaintDeviceSP cachedDab(const KoColorSpace *cs); | ||
109 | 122 | | |||
Context not available. |