KHTML
SVGDistantLightSource.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef SVGDistantLightSource_h
00023 #define SVGDistantLightSource_h
00024
00025 #if ENABLE(SVG) && ENABLE(SVG_FILTERS)
00026 #include "SVGLightSource.h"
00027
00028 namespace WebCore {
00029
00030 class SVGDistantLightSource : public SVGLightSource {
00031 public:
00032 SVGDistantLightSource(float azimuth, float elevation)
00033 : SVGLightSource(LS_DISTANT)
00034 , m_azimuth(azimuth)
00035 , m_elevation(elevation)
00036 { }
00037
00038 float azimuth() const { return m_azimuth; }
00039 float elevation() const { return m_elevation; }
00040
00041 virtual TextStream& externalRepresentation(TextStream&) const;
00042
00043 private:
00044 float m_azimuth;
00045 float m_elevation;
00046 };
00047
00048 }
00049
00050 #endif // ENABLE(SVG) && ENABLE(SVG_FILTERS)
00051
00052 #endif // SVGDistantLightSource_h