#include <SkImageFilterTypes.h>
Definition at line 557 of file SkImageFilterTypes.h.
◆ Mapping() [1/3]
skif::Mapping::Mapping |
( |
| ) |
|
|
default |
◆ Mapping() [2/3]
skif::Mapping::Mapping |
( |
const SkMatrix & |
paramToLayer | ) |
|
|
inlineexplicit |
Definition at line 562 of file SkImageFilterTypes.h.
static const SkMatrix & I()
LayerSpace< T > paramToLayer(const ParameterSpace< T > ¶mGeometry) const
◆ Mapping() [3/3]
Definition at line 569 of file SkImageFilterTypes.h.
570 : fLayerToDevMatrix(layerToDev)
572 , fDevToLayerMatrix(devToLayer) {}
◆ adjustLayerSpace()
bool skif::Mapping::adjustLayerSpace |
( |
const SkMatrix & |
layer | ) |
|
Definition at line 299 of file SkImageFilterTypes.cpp.
299 {
301 if (!layer.
invert(&invLayer)) {
302 return false;
303 }
307 return true;
308}
SkMatrix & postConcat(const SkMatrix &other)
bool invert(SkMatrix *inverse) const
SkMatrix & preConcat(const SkMatrix &other)
◆ applyOrigin()
Definition at line 600 of file SkImageFilterTypes.h.
600 {
602 }
SkAssertResult(font.textToGlyphs("Hello", 5, SkTextEncoding::kUTF8, glyphs, std::size(glyphs))==count)
static SkMatrix Translate(SkScalar dx, SkScalar dy)
bool adjustLayerSpace(const SkMatrix &layer)
◆ concatLocal()
void skif::Mapping::concatLocal |
( |
const SkMatrix & |
local | ) |
|
|
inline |
◆ decomposeCTM() [1/2]
Definition at line 290 of file SkImageFilterTypes.cpp.
292 {
294 ctm,
296 representativePt);
297}
static SkImageFilter_Base * as_IFB(SkImageFilter *filter)
bool decomposeCTM(const SkMatrix &ctm, const SkImageFilter *filter, const skif::ParameterSpace< SkPoint > &representativePt)
◆ decomposeCTM() [2/2]
Definition at line 257 of file SkImageFilterTypes.cpp.
258 {
261
262 remainder = ctm;
265
266
268 layer = ctm;
269 } else {
270
271
272 decompose_transform(ctm,
SkPoint(representativePt), &remainder, &layer);
273 }
274
276 if (!remainder.
invert(&invRemainder)) {
277
278
279
280
281 return false;
282 } else {
283 fParamToLayerMatrix = layer;
284 fLayerToDevMatrix = remainder;
285 fDevToLayerMatrix = invRemainder;
286 return true;
287 }
288}
bool isScaleTranslate() const
◆ deviceToLayer() [1/2]
const SkMatrix & skif::Mapping::deviceToLayer |
( |
| ) |
const |
|
inline |
◆ deviceToLayer() [2/2]
Definition at line 617 of file SkImageFilterTypes.h.
617 {
618 return LayerSpace<T>(map(
static_cast<const T&
>(devGeometry), fDevToLayerMatrix));
619 }
◆ layerMatrix()
const SkMatrix & skif::Mapping::layerMatrix |
( |
| ) |
const |
|
inline |
◆ layerToDevice() [1/2]
const SkMatrix & skif::Mapping::layerToDevice |
( |
| ) |
const |
|
inline |
◆ layerToDevice() [2/2]
Definition at line 622 of file SkImageFilterTypes.h.
622 {
623 return DeviceSpace<T>(map(
static_cast<const T&
>(layerGeometry), fLayerToDevMatrix));
624 }
◆ paramToLayer()
Definition at line 612 of file SkImageFilterTypes.h.
612 {
613 return LayerSpace<T>(map(
static_cast<const T&
>(paramGeometry), fParamToLayerMatrix));
614 }
◆ totalMatrix()
SkMatrix skif::Mapping::totalMatrix |
( |
| ) |
const |
|
inline |
Definition at line 607 of file SkImageFilterTypes.h.
607 {
609 }
static SkMatrix Concat(const SkMatrix &a, const SkMatrix &b)
◆ FilterResult
◆ LayerSpace< SkMatrix >
The documentation for this class was generated from the following files: