Skia
2D Graphics Library
SkSVGFeSpecularLighting Class Referencefinal

#include <SkSVGFeLighting.h>

Inheritance diagram for SkSVGFeSpecularLighting:

Public Member Functions

sk_sp< SkImageFiltermakeImageFilter (const SkSVGRenderContext &ctx, const SkSVGFilterContext &fctx) const
 
SkRect resolveFilterSubregion (const SkSVGRenderContext &, const SkSVGFilterContext &) const
 
virtual SkSVGColorspace resolveColorspace (const SkSVGRenderContext &, const SkSVGFilterContext &) const
 Resolves the colorspace within which this filter effect should be applied. More...
 
void applyProperties (SkSVGRenderContext *) const
 Propagates any inherited presentation attributes in the given context. More...
 
void appendChild (sk_sp< SkSVGNode >) override
 
void setTransform (const SkSVGTransformType &t)
 
SkSVGTag tag () const
 
void render (const SkSVGRenderContext &) const
 
bool asPaint (const SkSVGRenderContext &, SkPaint *) const
 
SkPath asPath (const SkSVGRenderContext &) const
 
SkRect objectBoundingBox (const SkSVGRenderContext &) const
 
void setAttribute (SkSVGAttribute, const SkSVGValue &)
 
bool setAttribute (const char *attributeName, const char *attributeValue)
 
bool unique () const
 May return true if the caller is the only owner. More...
 
void ref () const
 Increment the reference count. More...
 
void unref () const
 Decrement the reference count. More...
 

Static Public Member Functions

static sk_sp< SkSVGFeSpecularLightingMake ()
 
static bool IsFilterEffect (const sk_sp< SkSVGNode > &node)
 

Protected Member Functions

bool parseAndSetAttribute (const char *, const char *) override
 
sk_sp< SkImageFiltermakeDistantLight (const SkSVGRenderContext &, const SkSVGFilterContext &, const SkSVGFeDistantLight *) const final
 
sk_sp< SkImageFiltermakePointLight (const SkSVGRenderContext &, const SkSVGFilterContext &, const SkSVGFePointLight *) const final
 
sk_sp< SkImageFiltermakeSpotLight (const SkSVGRenderContext &, const SkSVGFilterContext &, const SkSVGFeSpotLight *) const final
 
std::vector< SkSVGFeInputTypegetInputs () const final
 
sk_sp< SkImageFilteronMakeImageFilter (const SkSVGRenderContext &, const SkSVGFilterContext &) const final
 
SkColor resolveLightingColor (const SkSVGRenderContext &) const
 
SkPoint3 resolveXYZ (const SkSVGRenderContext &, const SkSVGFilterContext &, SkSVGNumberType, SkSVGNumberType, SkSVGNumberType) const
 
void onRender (const SkSVGRenderContext &) const final
 
SkPath onAsPath (const SkSVGRenderContext &) const override
 
SkRect onObjectBoundingBox (const SkSVGRenderContext &) const override
 
bool hasChildren () const final
 
bool onPrepareToRender (SkSVGRenderContext *) const override
 
void onSetAttribute (SkSVGAttribute, const SkSVGValue &) override
 
void mapToParent (SkPath *) const
 
void mapToParent (SkRect *) const
 
virtual bool onAsPaint (const SkSVGRenderContext &, SkPaint *) const
 

Static Protected Member Functions

static SkMatrix ComputeViewboxMatrix (const SkRect &, const SkRect &, SkSVGPreserveAspectRatio)
 

Protected Attributes

skia_private::STArray< 1, sk_sp< SkSVGNode >, true > fChildren
 

Member Function Documentation

◆ appendChild()

void SkSVGContainer::appendChild ( sk_sp< SkSVGNode )
overridevirtualinherited

Implements SkSVGNode.

Reimplemented in SkSVGFeLightSource.

◆ applyProperties()

void SkSVGFe::applyProperties ( SkSVGRenderContext ) const
inherited

Propagates any inherited presentation attributes in the given context.

◆ asPaint()

bool SkSVGNode::asPaint ( const SkSVGRenderContext ,
SkPaint  
) const
inherited

◆ asPath()

SkPath SkSVGNode::asPath ( const SkSVGRenderContext ) const
inherited

◆ ComputeViewboxMatrix()

static SkMatrix SkSVGNode::ComputeViewboxMatrix ( const SkRect ,
const SkRect ,
SkSVGPreserveAspectRatio   
)
staticprotectedinherited

◆ getInputs()

std::vector<SkSVGFeInputType> SkSVGFeLighting::getInputs ( ) const
inlinefinalprotectedvirtualinherited

Implements SkSVGFe.

◆ hasChildren()

bool SkSVGContainer::hasChildren ( ) const
finalprotectedvirtualinherited

Reimplemented from SkSVGNode.

◆ IsFilterEffect()

static bool SkSVGFe::IsFilterEffect ( const sk_sp< SkSVGNode > &  node)
inlinestaticinherited

◆ Make()

static sk_sp<SkSVGFeSpecularLighting> SkSVGFeSpecularLighting::Make ( )
inlinestatic

◆ makeDistantLight()

sk_sp<SkImageFilter> SkSVGFeSpecularLighting::makeDistantLight ( const SkSVGRenderContext ,
const SkSVGFilterContext ,
const SkSVGFeDistantLight  
) const
finalprotectedvirtual

Implements SkSVGFeLighting.

◆ makeImageFilter()

sk_sp<SkImageFilter> SkSVGFe::makeImageFilter ( const SkSVGRenderContext ctx,
const SkSVGFilterContext fctx 
) const
inherited

◆ makePointLight()

sk_sp<SkImageFilter> SkSVGFeSpecularLighting::makePointLight ( const SkSVGRenderContext ,
const SkSVGFilterContext ,
const SkSVGFePointLight  
) const
finalprotectedvirtual

Implements SkSVGFeLighting.

◆ makeSpotLight()

sk_sp<SkImageFilter> SkSVGFeSpecularLighting::makeSpotLight ( const SkSVGRenderContext ,
const SkSVGFilterContext ,
const SkSVGFeSpotLight  
) const
finalprotectedvirtual

Implements SkSVGFeLighting.

◆ mapToParent() [1/2]

void SkSVGTransformableNode::mapToParent ( SkPath ) const
protectedinherited

◆ mapToParent() [2/2]

void SkSVGTransformableNode::mapToParent ( SkRect ) const
protectedinherited

◆ objectBoundingBox()

SkRect SkSVGNode::objectBoundingBox ( const SkSVGRenderContext ) const
inherited

◆ onAsPaint()

virtual bool SkSVGNode::onAsPaint ( const SkSVGRenderContext ,
SkPaint  
) const
inlineprotectedvirtualinherited

Reimplemented in SkSVGPattern, and SkSVGGradient.

◆ onAsPath()

SkPath SkSVGContainer::onAsPath ( const SkSVGRenderContext ) const
overrideprotectedvirtualinherited

Implements SkSVGNode.

◆ onMakeImageFilter()

sk_sp<SkImageFilter> SkSVGFeLighting::onMakeImageFilter ( const SkSVGRenderContext ,
const SkSVGFilterContext  
) const
finalprotectedvirtualinherited

Implements SkSVGFe.

◆ onObjectBoundingBox()

SkRect SkSVGContainer::onObjectBoundingBox ( const SkSVGRenderContext ) const
overrideprotectedvirtualinherited

Reimplemented from SkSVGNode.

◆ onPrepareToRender()

bool SkSVGTransformableNode::onPrepareToRender ( SkSVGRenderContext ) const
overrideprotectedvirtualinherited

Reimplemented from SkSVGNode.

Reimplemented in SkSVGUse.

◆ onRender()

void SkSVGHiddenContainer::onRender ( const SkSVGRenderContext ) const
inlinefinalprotectedvirtualinherited

Reimplemented from SkSVGContainer.

◆ onSetAttribute()

void SkSVGTransformableNode::onSetAttribute ( SkSVGAttribute  ,
const SkSVGValue  
)
overrideprotectedvirtualinherited

Reimplemented from SkSVGNode.

◆ parseAndSetAttribute()

bool SkSVGFeSpecularLighting::parseAndSetAttribute ( const char *  ,
const char *   
)
overrideprotectedvirtual

Reimplemented from SkSVGFeLighting.

◆ ref()

void SkRefCntBase::ref ( ) const
inlineinherited

Increment the reference count.

Must be balanced by a call to unref().

◆ render()

void SkSVGNode::render ( const SkSVGRenderContext ) const
inherited

◆ resolveColorspace()

virtual SkSVGColorspace SkSVGFe::resolveColorspace ( const SkSVGRenderContext ,
const SkSVGFilterContext  
) const
virtualinherited

Resolves the colorspace within which this filter effect should be applied.

Spec: https://www.w3.org/TR/SVG11/painting.html#ColorInterpolationProperties 'color-interpolation-filters' property.

Reimplemented in SkSVGFeDisplacementMap.

◆ resolveFilterSubregion()

SkRect SkSVGFe::resolveFilterSubregion ( const SkSVGRenderContext ,
const SkSVGFilterContext  
) const
inherited

◆ resolveLightingColor()

SkColor SkSVGFeLighting::resolveLightingColor ( const SkSVGRenderContext ) const
protectedinherited

◆ resolveXYZ()

SkPoint3 SkSVGFeLighting::resolveXYZ ( const SkSVGRenderContext ,
const SkSVGFilterContext ,
SkSVGNumberType  ,
SkSVGNumberType  ,
SkSVGNumberType   
) const
protectedinherited

◆ setAttribute() [1/2]

bool SkSVGNode::setAttribute ( const char *  attributeName,
const char *  attributeValue 
)
inherited

◆ setAttribute() [2/2]

void SkSVGNode::setAttribute ( SkSVGAttribute  ,
const SkSVGValue  
)
inherited

◆ setTransform()

void SkSVGTransformableNode::setTransform ( const SkSVGTransformType t)
inlineinherited

◆ tag()

SkSVGTag SkSVGNode::tag ( ) const
inlineinherited

◆ unique()

bool SkRefCntBase::unique ( ) const
inlineinherited

May return true if the caller is the only owner.

Ensures that all previous owner's actions are complete.

◆ unref()

void SkRefCntBase::unref ( ) const
inlineinherited

Decrement the reference count.

If the reference count is 1 before the decrement, then delete the object. Note that if this is the case, then the object needs to have been allocated via new, and not on the stack.

Member Data Documentation

◆ fChildren

skia_private::STArray<1, sk_sp<SkSVGNode>, true> SkSVGContainer::fChildren
protectedinherited

The documentation for this class was generated from the following file: