KHTML
SVGFEDisplacementMapElement.h
Go to the documentation of this file.
00001 /* 00002 Copyright (C) 2006 Oliver Hunt <oliver@nerget.com> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to 00016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00017 Boston, MA 02110-1301, USA. 00018 */ 00019 00020 #ifndef SVGFEDisplacementMapElement_h 00021 #define SVGFEDisplacementMapElement_h 00022 00023 #if ENABLE(SVG) && ENABLE(SVG_FILTERS) 00024 #include "SVGFEDisplacementMap.h" 00025 #include "SVGFilterPrimitiveStandardAttributes.h" 00026 00027 namespace WebCore { 00028 00029 class SVGFEDisplacementMapElement : public SVGFilterPrimitiveStandardAttributes { 00030 public: 00031 SVGFEDisplacementMapElement(const QualifiedName& tagName, Document*); 00032 virtual ~SVGFEDisplacementMapElement(); 00033 00034 static SVGChannelSelectorType stringToChannel(const String&); 00035 00036 virtual void parseMappedAttribute(MappedAttribute*); 00037 virtual SVGFEDisplacementMap* filterEffect(SVGResourceFilter*) const; 00038 00039 protected: 00040 virtual const SVGElement* contextElement() const { return this; } 00041 00042 private: 00043 ANIMATED_PROPERTY_DECLARATIONS(SVGFEDisplacementMapElement, String, String, In1, in1) 00044 ANIMATED_PROPERTY_DECLARATIONS(SVGFEDisplacementMapElement, String, String, In2, in2) 00045 ANIMATED_PROPERTY_DECLARATIONS(SVGFEDisplacementMapElement, int, int, XChannelSelector, xChannelSelector) 00046 ANIMATED_PROPERTY_DECLARATIONS(SVGFEDisplacementMapElement, int, int, YChannelSelector, yChannelSelector) 00047 ANIMATED_PROPERTY_DECLARATIONS(SVGFEDisplacementMapElement, float, float, Scale, scale) 00048 00049 mutable SVGFEDisplacementMap* m_filterEffect; 00050 }; 00051 00052 } // namespace WebCore 00053 00054 #endif // ENABLE(SVG) 00055 #endif // SVGFEDisplacementMapElement_h
KDE 4.6 API Reference