KHTML
SVGFEDisplacementMapElement.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 #ifndef SVGFEDisplacementMapElement_h
00021 #define SVGFEDisplacementMapElement_h
00022
00023 #if ENABLE(SVG) && ENABLE(SVG_FILTERS)
00024 #include "SVGFEDisplacementMap.h"
00025 #include "SVGFilterPrimitiveStandardAttributes.h"
00026
00027 namespace WebCore {
00028
00029 class SVGFEDisplacementMapElement : public SVGFilterPrimitiveStandardAttributes {
00030 public:
00031 SVGFEDisplacementMapElement(const QualifiedName& tagName, Document*);
00032 virtual ~SVGFEDisplacementMapElement();
00033
00034 static SVGChannelSelectorType stringToChannel(const String&);
00035
00036 virtual void parseMappedAttribute(MappedAttribute*);
00037 virtual SVGFEDisplacementMap* filterEffect(SVGResourceFilter*) const;
00038
00039 protected:
00040 virtual const SVGElement* contextElement() const { return this; }
00041
00042 private:
00043 ANIMATED_PROPERTY_DECLARATIONS(SVGFEDisplacementMapElement, String, String, In1, in1)
00044 ANIMATED_PROPERTY_DECLARATIONS(SVGFEDisplacementMapElement, String, String, In2, in2)
00045 ANIMATED_PROPERTY_DECLARATIONS(SVGFEDisplacementMapElement, int, int, XChannelSelector, xChannelSelector)
00046 ANIMATED_PROPERTY_DECLARATIONS(SVGFEDisplacementMapElement, int, int, YChannelSelector, yChannelSelector)
00047 ANIMATED_PROPERTY_DECLARATIONS(SVGFEDisplacementMapElement, float, float, Scale, scale)
00048
00049 mutable SVGFEDisplacementMap* m_filterEffect;
00050 };
00051
00052 }
00053
00054 #endif // ENABLE(SVG)
00055 #endif // SVGFEDisplacementMapElement_h