1 /* 2 Copyright (C) 2006 Oliver Hunt <oliver (at) nerget.com> 3 4 This library is free software; you can redistribute it and/or 5 modify it under the terms of the GNU Library General Public 6 License as published by the Free Software Foundation; either 7 version 2 of the License, or (at your option) any later version. 8 9 This library is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 Library General Public License for more details. 13 14 You should have received a copy of the GNU Library General Public License 15 along with this library; see the file COPYING.LIB. If not, write to 16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 Boston, MA 02110-1301, USA. 18 */ 19 20 #ifndef SVGFEDisplacementMapElement_h 21 #define SVGFEDisplacementMapElement_h 22 23 #if ENABLE(SVG) && ENABLE(FILTERS) 24 #include "SVGFEDisplacementMap.h" 25 #include "SVGFilterPrimitiveStandardAttributes.h" 26 27 namespace WebCore { 28 29 class SVGFEDisplacementMapElement : public SVGFilterPrimitiveStandardAttributes { 30 public: 31 SVGFEDisplacementMapElement(const QualifiedName& tagName, Document*); 32 virtual ~SVGFEDisplacementMapElement(); 33 34 static ChannelSelectorType stringToChannel(const String&); 35 36 virtual void parseMappedAttribute(MappedAttribute*); 37 virtual void synchronizeProperty(const QualifiedName&); 38 virtual bool build(SVGResourceFilter*); 39 40 private: 41 DECLARE_ANIMATED_PROPERTY(SVGFEDisplacementMapElement, SVGNames::inAttr, String, In1, in1) 42 DECLARE_ANIMATED_PROPERTY(SVGFEDisplacementMapElement, SVGNames::in2Attr, String, In2, in2) 43 DECLARE_ANIMATED_PROPERTY(SVGFEDisplacementMapElement, SVGNames::xChannelSelectorAttr, int, XChannelSelector, xChannelSelector) 44 DECLARE_ANIMATED_PROPERTY(SVGFEDisplacementMapElement, SVGNames::yChannelSelectorAttr, int, YChannelSelector, yChannelSelector) 45 DECLARE_ANIMATED_PROPERTY(SVGFEDisplacementMapElement, SVGNames::scaleAttr, float, Scale, scale) 46 }; 47 48 } // namespace WebCore 49 50 #endif // ENABLE(SVG) 51 #endif // SVGFEDisplacementMapElement_h 52