KHTML
SVGFEDiffuseLightingElement.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef SVGFEDiffuseLightingElement_h
00023 #define SVGFEDiffuseLightingElement_h
00024
00025 #if ENABLE(SVG) && ENABLE(SVG_FILTERS)
00026 #include "SVGFilterPrimitiveStandardAttributes.h"
00027
00028 namespace WebCore {
00029 class SVGFEDiffuseLighting;
00030 class SVGColor;
00031
00032 class SVGFEDiffuseLightingElement : public SVGFilterPrimitiveStandardAttributes
00033 {
00034 public:
00035 SVGFEDiffuseLightingElement(const QualifiedName&, Document*);
00036 virtual ~SVGFEDiffuseLightingElement();
00037
00038 virtual void parseMappedAttribute(MappedAttribute*);
00039 virtual SVGFilterEffect* filterEffect(SVGResourceFilter*) const;
00040
00041 protected:
00042 virtual const SVGElement* contextElement() const { return this; }
00043
00044 private:
00045 ANIMATED_PROPERTY_DECLARATIONS(SVGFEDiffuseLightingElement, String, String, In1, in1)
00046 ANIMATED_PROPERTY_DECLARATIONS(SVGFEDiffuseLightingElement, float, float, DiffuseConstant, diffuseConstant)
00047 ANIMATED_PROPERTY_DECLARATIONS(SVGFEDiffuseLightingElement, float, float, SurfaceScale, surfaceScale)
00048 ANIMATED_PROPERTY_DECLARATIONS(SVGFEDiffuseLightingElement, float, float, KernelUnitLengthX, kernelUnitLengthX)
00049 ANIMATED_PROPERTY_DECLARATIONS(SVGFEDiffuseLightingElement, float, float, KernelUnitLengthY, kernelUnitLengthY)
00050
00051 mutable SVGFEDiffuseLighting* m_filterEffect;
00052
00053 void updateLights() const;
00054 };
00055
00056 }
00057
00058 #endif // ENABLE(SVG)
00059 #endif