don't discard iframe children.
[kdelibs.git] / khtml / svg / graphics / filters / SVGFESpecularLighting.h
blob66e156128c59887c6392754360222969c7f064ac
1 /*
2 Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 2004, 2005 Rob Buis <buis@kde.org>
4 2005 Eric Seidel <eric@webkit.org>
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
16 You should have received a copy of the GNU Library General Public License
17 aint with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
22 #ifndef SVGFESpecularLighting_h
23 #define SVGFESpecularLighting_h
25 #if ENABLE(SVG) && ENABLE(SVG_FILTERS)
26 #include "Color.h"
27 #include "SVGLightSource.h"
28 #include "SVGFilterEffect.h"
30 namespace WebCore {
32 class SVGFESpecularLighting : public SVGFilterEffect {
33 public:
34 SVGFESpecularLighting(SVGResourceFilter*);
35 virtual ~SVGFESpecularLighting();
37 Color lightingColor() const;
38 void setLightingColor(const Color&);
40 float surfaceScale() const;
41 void setSurfaceScale(float);
43 float specularConstant() const;
44 void setSpecularConstant(float);
46 float specularExponent() const;
47 void setSpecularExponent(float);
49 float kernelUnitLengthX() const;
50 void setKernelUnitLengthX(float);
52 float kernelUnitLengthY() const;
53 void setKernelUnitLengthY(float);
55 const SVGLightSource* lightSource() const;
56 void setLightSource(SVGLightSource*);
58 virtual TextStream& externalRepresentation(TextStream&) const;
60 #if PLATFORM(CI)
61 virtual CIFilter* getCIFilter(const FloatRect& bbox) const;
62 #endif
64 private:
65 Color m_lightingColor;
66 float m_surfaceScale;
67 float m_specularConstant;
68 float m_specularExponent;
69 float m_kernelUnitLengthX;
70 float m_kernelUnitLengthY;
71 SVGLightSource* m_lightSource;
74 } // namespace WebCore
76 #endif // ENABLE(SVG) && ENABLE(SVG_FILTERS)
78 #endif // SVGFESpecularLighting_h