2 Copyright (C) 2006 Oliver Hunt <oliver@nerget.com>
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.
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.
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.
20 #ifndef SVGFEDisplacementMapElement_h
21 #define SVGFEDisplacementMapElement_h
23 #if ENABLE(SVG) && ENABLE(SVG_FILTERS)
24 #include "SVGFEDisplacementMap.h"
25 #include "SVGFilterPrimitiveStandardAttributes.h"
29 class SVGFEDisplacementMapElement
: public SVGFilterPrimitiveStandardAttributes
{
31 SVGFEDisplacementMapElement(const QualifiedName
& tagName
, Document
*);
32 virtual ~SVGFEDisplacementMapElement();
34 static SVGChannelSelectorType
stringToChannel(const String
&);
36 virtual void parseMappedAttribute(MappedAttribute
*);
37 virtual SVGFEDisplacementMap
* filterEffect(SVGResourceFilter
*) const;
40 virtual const SVGElement
* contextElement() const { return this; }
43 ANIMATED_PROPERTY_DECLARATIONS(SVGFEDisplacementMapElement
, String
, String
, In1
, in1
)
44 ANIMATED_PROPERTY_DECLARATIONS(SVGFEDisplacementMapElement
, String
, String
, In2
, in2
)
45 ANIMATED_PROPERTY_DECLARATIONS(SVGFEDisplacementMapElement
, int, int, XChannelSelector
, xChannelSelector
)
46 ANIMATED_PROPERTY_DECLARATIONS(SVGFEDisplacementMapElement
, int, int, YChannelSelector
, yChannelSelector
)
47 ANIMATED_PROPERTY_DECLARATIONS(SVGFEDisplacementMapElement
, float, float, Scale
, scale
)
49 mutable SVGFEDisplacementMap
* m_filterEffect
;
52 } // namespace WebCore
55 #endif // SVGFEDisplacementMapElement_h