Definition at line 34 of file bitmapbucket.h.
◆ BitmapBucket() [1/2]
BitmapBucket::BitmapBucket |
( |
| ) |
|
|
explicit |
◆ BitmapBucket() [2/2]
◆ allowContinuousFill()
bool BitmapBucket::allowContinuousFill |
( |
const QPoint & |
checkPoint, |
|
|
const QRgb & |
checkColor |
|
) |
| const |
|
private |
◆ allowFill()
bool BitmapBucket::allowFill |
( |
const QPoint & |
checkPoint, |
|
|
const QRgb & |
checkColor |
|
) |
| const |
|
private |
Based on the various factors dependant on which tool properties are set, the result will:
BucketProgress: BeforeFill to allow filling
- Parameters
-
- Returns
- True if you are allowed to fill, otherwise false
Definition at line 85 of file bitmapbucket.cpp.
◆ canUseDragToFill()
bool BitmapBucket::canUseDragToFill |
( |
const QPoint & |
fillPoint, |
|
|
const QColor & |
bucketColor, |
|
|
const BitmapImage & |
referenceImage |
|
) |
| |
|
private |
Determines whether fill to drag feature can be used.
Definition at line 68 of file bitmapbucket.cpp.
◆ flattenBitmapLayersToImage()
BitmapImage BitmapBucket::flattenBitmapLayersToImage |
( |
| ) |
|
|
private |
◆ paint()
void BitmapBucket::paint |
( |
const QPointF & |
updatedPoint, |
|
|
std::function< void(BucketState, int, int)> |
progress |
|
) |
| |
Will paint at the given point, given that it makes sense.
. canUse is always called prior to painting
- Parameters
-
updatedPoint | - the point where to point |
progress | - a function that returns the progress of the paint operation, the layer and frame that was affected at the given point. |
Definition at line 114 of file bitmapbucket.cpp.
◆ mBucketColor
QRgb BitmapBucket::mBucketColor = 0 |
|
private |
◆ mEditor
Editor* BitmapBucket::mEditor = nullptr |
|
private |
◆ mFilledOnce
bool BitmapBucket::mFilledOnce = false |
|
private |
◆ mMaxFillRegion
QRect BitmapBucket::mMaxFillRegion |
|
private |
◆ mPixelCache
QHash<QRgb, bool>* BitmapBucket::mPixelCache |
|
private |
◆ mProperties
◆ mReferenceImage
◆ mStartReferenceColor
QRgb BitmapBucket::mStartReferenceColor = 0 |
|
private |
◆ mTargetFillToLayer
Layer* BitmapBucket::mTargetFillToLayer = nullptr |
|
private |
◆ mTargetFillToLayerIndex
int BitmapBucket::mTargetFillToLayerIndex = -1 |
|
private |
◆ mTolerance
int BitmapBucket::mTolerance = 0 |
|
private |
◆ mUseDragToFill
bool BitmapBucket::mUseDragToFill = false |
|
private |
The documentation for this class was generated from the following files: