◆ SamplingCompressor
◆ Private()
| KisAsyncColorSamplerHelper::Private::Private |
( |
KisCanvas2 * | _canvas | ) |
|
|
inline |
◆ colorPreviewDocRect()
| QRectF KisAsyncColorSamplerHelper::Private::colorPreviewDocRect |
( |
const QPointF & | outlineDocPoint | ) |
|
|
inline |
◆ colorPreviewRectForCircle()
| QRectF KisAsyncColorSamplerHelper::Private::colorPreviewRectForCircle |
( |
| ) |
|
|
inline |
◆ colorPreviewRectForRectangle()
| QRectF KisAsyncColorSamplerHelper::Private::colorPreviewRectForRectangle |
( |
| ) |
const |
|
inline |
Definition at line 87 of file KisAsyncColorSamplerHelper.cpp.
88 {
89
90
91 constexpr qreal OFFSET = 32.0;
92 constexpr qreal OFFSET_ABOVE = OFFSET * 1.5;
94
97
103 } else {
104 effectiveStyle =
style;
105 }
106
108
110 switch (effectiveStyle) {
112 x = -(OFFSET + width);
113 y = flipped ? -(OFFSET + SIZE) : OFFSET;
114 break;
117 y = flipped ? -(OFFSET + SIZE) : OFFSET;
118 break;
119 default:
121 y = flipped ? OFFSET_ABOVE : -(OFFSET_ABOVE + SIZE);
122 break;
123 }
124
125 QRectF
rect(x, y, width, SIZE);
126
129 QTransform tf;
130 tf.rotate(mirrored ? canvasRotationAngle : -canvasRotationAngle);
132 }
133
135 }
qreal rotationAngle() const
canvas rotation in degrees
bool xAxisMirrored() const
Bools indicating canvasmirroring.
bool yAxisMirrored() const
static bool qFuzzyIsNull(half h)
static constexpr qreal PREVIEW_RECT_SIZE
References canvas, haveSample, PREVIEW_RECT_SIZE, qFuzzyIsNull(), KisConfig::RectangleLeft, KisConfig::RectangleRight, KisCanvas2::rotationAngle(), style, KisCanvas2::xAxisMirrored(), and KisCanvas2::yAxisMirrored().
◆ converter()
| const KoViewConverter & KisAsyncColorSamplerHelper::Private::converter |
( |
| ) |
const |
|
inline |
◆ strokesFacade()
◆ activationDelayTimer
| QTimer KisAsyncColorSamplerHelper::Private::activationDelayTimer |
◆ baseColor
| QColor KisAsyncColorSamplerHelper::Private::baseColor |
◆ cache
| QPixmap KisAsyncColorSamplerHelper::Private::cache |
◆ cacheMirror
| bool KisAsyncColorSamplerHelper::Private::cacheMirror = false |
◆ cacheRotation
| qreal KisAsyncColorSamplerHelper::Private::cacheRotation = 0.0 |
◆ canvas
| KisCanvas2* KisAsyncColorSamplerHelper::Private::canvas |
◆ circlePreviewDiameter
| int KisAsyncColorSamplerHelper::Private::circlePreviewDiameter {180} |
◆ circlePreviewExtraCircles
| bool KisAsyncColorSamplerHelper::Private::circlePreviewExtraCircles {true} |
◆ circlePreviewOutlineEnabled
| bool KisAsyncColorSamplerHelper::Private::circlePreviewOutlineEnabled {true} |
◆ circlePreviewThickness
| qreal KisAsyncColorSamplerHelper::Private::circlePreviewThickness {0.12} |
◆ currentColor
| QColor KisAsyncColorSamplerHelper::Private::currentColor |
◆ haveSample
| bool KisAsyncColorSamplerHelper::Private::haveSample {false} |
◆ isActive
| bool KisAsyncColorSamplerHelper::Private::isActive {false} |
◆ PREVIEW_RECT_SIZE
| constexpr qreal KisAsyncColorSamplerHelper::Private::PREVIEW_RECT_SIZE = 48.0 |
|
staticconstexpr |
◆ previewDocRect
| QRectF KisAsyncColorSamplerHelper::Private::previewDocRect |
◆ sampleCurrentLayer
| bool KisAsyncColorSamplerHelper::Private::sampleCurrentLayer {true} |
◆ sampleResourceId
| int KisAsyncColorSamplerHelper::Private::sampleResourceId {0} |
◆ samplingCompressor
| QScopedPointer<SamplingCompressor> KisAsyncColorSamplerHelper::Private::samplingCompressor |
◆ showPreview
| bool KisAsyncColorSamplerHelper::Private::showPreview {false} |
◆ strokeId
| KisStrokeId KisAsyncColorSamplerHelper::Private::strokeId |
◆ style
◆ updateGlobalColor
| bool KisAsyncColorSamplerHelper::Private::updateGlobalColor {true} |
The documentation for this struct was generated from the following file: