SVGFESpecularLighting.h [plain text]
#ifndef SVGFESpecularLighting_h
#define SVGFESpecularLighting_h
#if ENABLE(SVG) && ENABLE(SVG_FILTERS)
#include "Color.h"
#include "SVGLightSource.h"
#include "SVGFilterEffect.h"
namespace WebCore {
class SVGFESpecularLighting : public SVGFilterEffect {
public:
SVGFESpecularLighting(SVGResourceFilter*);
virtual ~SVGFESpecularLighting();
Color lightingColor() const;
void setLightingColor(const Color&);
float surfaceScale() const;
void setSurfaceScale(float);
float specularConstant() const;
void setSpecularConstant(float);
float specularExponent() const;
void setSpecularExponent(float);
float kernelUnitLengthX() const;
void setKernelUnitLengthX(float);
float kernelUnitLengthY() const;
void setKernelUnitLengthY(float);
const SVGLightSource* lightSource() const;
void setLightSource(SVGLightSource*);
virtual TextStream& externalRepresentation(TextStream&) const;
#if PLATFORM(CI)
virtual CIFilter* getCIFilter(const FloatRect& bbox) const;
#endif
private:
Color m_lightingColor;
float m_surfaceScale;
float m_specularConstant;
float m_specularExponent;
float m_kernelUnitLengthX;
float m_kernelUnitLengthY;
SVGLightSource* m_lightSource;
};
}
#endif // ENABLE(SVG) && ENABLE(SVG_FILTERS)
#endif // SVGFESpecularLighting_h