KHtml

SVGFEDisplacementMapElement.h
1 /*
2  Copyright (C) 2006 Oliver Hunt <[email protected]>
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(SVG_FILTERS)
24 #include "SVGFEDisplacementMap.h"
25 #include "SVGFilterPrimitiveStandardAttributes.h"
26 
27 namespace WebCore
28 {
29 
30 class SVGFEDisplacementMapElement : public SVGFilterPrimitiveStandardAttributes
31 {
32 public:
33  SVGFEDisplacementMapElement(const QualifiedName &tagName, Document *);
34  virtual ~SVGFEDisplacementMapElement();
35 
36  static SVGChannelSelectorType stringToChannel(const String &);
37 
38  virtual void parseMappedAttribute(MappedAttribute *);
39  virtual SVGFEDisplacementMap *filterEffect(SVGResourceFilter *) const;
40 
41 protected:
42  virtual const SVGElement *contextElement() const
43  {
44  return this;
45  }
46 
47 private:
48  ANIMATED_PROPERTY_DECLARATIONS(SVGFEDisplacementMapElement, String, String, In1, in1)
49  ANIMATED_PROPERTY_DECLARATIONS(SVGFEDisplacementMapElement, String, String, In2, in2)
50  ANIMATED_PROPERTY_DECLARATIONS(SVGFEDisplacementMapElement, int, int, XChannelSelector, xChannelSelector)
51  ANIMATED_PROPERTY_DECLARATIONS(SVGFEDisplacementMapElement, int, int, YChannelSelector, yChannelSelector)
52  ANIMATED_PROPERTY_DECLARATIONS(SVGFEDisplacementMapElement, float, float, Scale, scale)
53 
54  mutable SVGFEDisplacementMap *m_filterEffect;
55 };
56 
57 } // namespace WebCore
58 
59 #endif // ENABLE(SVG)
60 #endif // SVGFEDisplacementMapElement_h
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Oct 16 2021 22:48:01 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.