#ifndef SVGComponentTransferFunctionElement_h
#define SVGComponentTransferFunctionElement_h
#include "core/svg/SVGAnimatedEnumeration.h"
#include "core/svg/SVGAnimatedNumber.h"
#include "core/svg/SVGAnimatedNumberList.h"
#include "core/svg/SVGElement.h"
#include "platform/graphics/filters/FEComponentTransfer.h"
namespace WebCore {
template<> const SVGEnumerationStringEntries& getStaticStringEntries<ComponentTransferType>();
class SVGComponentTransferFunctionElement : public SVGElement {
public:
ComponentTransferFunction transferFunction() const;
SVGAnimatedNumberList* tableValues() { return m_tableValues.get(); }
SVGAnimatedNumber* slope() { return m_slope.get(); }
SVGAnimatedNumber* intercept() { return m_intercept.get(); }
SVGAnimatedNumber* amplitude() { return m_amplitude.get(); }
SVGAnimatedNumber* exponent() { return m_exponent.get(); }
SVGAnimatedNumber* offset() { return m_offset.get(); }
SVGAnimatedEnumeration<ComponentTransferType>* type() { return m_type.get(); }
protected:
SVGComponentTransferFunctionElement(const QualifiedName&, Document&);
bool isSupportedAttribute(const QualifiedName&);
virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE FINAL;
virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE FINAL;
virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE FINAL { return false; }
private:
RefPtr<SVGAnimatedNumberList> m_tableValues;
RefPtr<SVGAnimatedNumber> m_slope;
RefPtr<SVGAnimatedNumber> m_intercept;
RefPtr<SVGAnimatedNumber> m_amplitude;
RefPtr<SVGAnimatedNumber> m_exponent;
RefPtr<SVGAnimatedNumber> m_offset;
RefPtr<SVGAnimatedEnumeration<ComponentTransferType> > m_type;
};
}
#endif