SVGFEDisplacementMapElement.h [plain text]
#ifndef SVGFEDisplacementMapElement_h
#define SVGFEDisplacementMapElement_h
#if ENABLE(SVG) && ENABLE(SVG_FILTERS)
#include "SVGFEDisplacementMap.h"
#include "SVGFilterPrimitiveStandardAttributes.h"
namespace WebCore {
class SVGFEDisplacementMapElement : public SVGFilterPrimitiveStandardAttributes {
public:
SVGFEDisplacementMapElement(const QualifiedName& tagName, Document*);
virtual ~SVGFEDisplacementMapElement();
static SVGChannelSelectorType stringToChannel(const String&);
virtual void parseMappedAttribute(MappedAttribute*);
virtual SVGFEDisplacementMap* filterEffect(SVGResourceFilter*) const;
protected:
virtual const SVGElement* contextElement() const { return this; }
private:
ANIMATED_PROPERTY_DECLARATIONS(SVGFEDisplacementMapElement, String, String, In1, in1)
ANIMATED_PROPERTY_DECLARATIONS(SVGFEDisplacementMapElement, String, String, In2, in2)
ANIMATED_PROPERTY_DECLARATIONS(SVGFEDisplacementMapElement, int, int, XChannelSelector, xChannelSelector)
ANIMATED_PROPERTY_DECLARATIONS(SVGFEDisplacementMapElement, int, int, YChannelSelector, yChannelSelector)
ANIMATED_PROPERTY_DECLARATIONS(SVGFEDisplacementMapElement, float, float, Scale, scale)
mutable SVGFEDisplacementMap* m_filterEffect;
};
}
#endif // ENABLE(SVG)
#endif // SVGFEDisplacementMapElement_h