SVGFEDiffuseLightingElement.h [plain text]
#ifndef SVGFEDiffuseLightingElement_h
#define SVGFEDiffuseLightingElement_h
#if ENABLE(SVG) && ENABLE(SVG_FILTERS)
#include "SVGFilterPrimitiveStandardAttributes.h"
namespace WebCore {
class SVGFEDiffuseLighting;
class SVGColor;
class SVGFEDiffuseLightingElement : public SVGFilterPrimitiveStandardAttributes
{
public:
SVGFEDiffuseLightingElement(const QualifiedName&, Document*);
virtual ~SVGFEDiffuseLightingElement();
virtual void parseMappedAttribute(MappedAttribute*);
virtual SVGFilterEffect* filterEffect(SVGResourceFilter*) const;
protected:
virtual const SVGElement* contextElement() const { return this; }
private:
ANIMATED_PROPERTY_DECLARATIONS(SVGFEDiffuseLightingElement, String, String, In1, in1)
ANIMATED_PROPERTY_DECLARATIONS(SVGFEDiffuseLightingElement, float, float, DiffuseConstant, diffuseConstant)
ANIMATED_PROPERTY_DECLARATIONS(SVGFEDiffuseLightingElement, float, float, SurfaceScale, surfaceScale)
ANIMATED_PROPERTY_DECLARATIONS(SVGFEDiffuseLightingElement, float, float, KernelUnitLengthX, kernelUnitLengthX)
ANIMATED_PROPERTY_DECLARATIONS(SVGFEDiffuseLightingElement, float, float, KernelUnitLengthY, kernelUnitLengthY)
mutable SVGFEDiffuseLighting* m_filterEffect;
void updateLights() const;
};
}
#endif // ENABLE(SVG)
#endif