SVGFEDisplacementMapElement.h [plain text]
#ifndef SVGFEDisplacementMapElement_h
#define SVGFEDisplacementMapElement_h
#if ENABLE(SVG) && ENABLE(FILTERS)
#include "FEDisplacementMap.h"
#include "SVGAnimatedEnumeration.h"
#include "SVGAnimatedNumber.h"
#include "SVGFilterPrimitiveStandardAttributes.h"
namespace WebCore {
class SVGFEDisplacementMapElement : public SVGFilterPrimitiveStandardAttributes {
public:
static PassRefPtr<SVGFEDisplacementMapElement> create(const QualifiedName&, Document*);
static ChannelSelectorType stringToChannel(const String&);
private:
SVGFEDisplacementMapElement(const QualifiedName& tagName, Document*);
virtual void parseMappedAttribute(Attribute*);
virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName& attrName);
virtual void svgAttributeChanged(const QualifiedName&);
virtual void synchronizeProperty(const QualifiedName&);
virtual void fillAttributeToPropertyTypeMap();
virtual AttributeToPropertyTypeMap& attributeToPropertyTypeMap();
virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*);
DECLARE_ANIMATED_STRING(In1, in1)
DECLARE_ANIMATED_STRING(In2, in2)
DECLARE_ANIMATED_ENUMERATION(XChannelSelector, xChannelSelector)
DECLARE_ANIMATED_ENUMERATION(YChannelSelector, yChannelSelector)
DECLARE_ANIMATED_NUMBER(Scale, scale)
};
}
#endif // ENABLE(SVG)
#endif // SVGFEDisplacementMapElement_h