OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2005 Oliver Hunt <oliver@nerget.com> | 4 * Copyright (C) 2005 Oliver Hunt <oliver@nerget.com> |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 12 matching lines...) Expand all Loading... |
23 #define SVGFEDiffuseLightingElement_h | 23 #define SVGFEDiffuseLightingElement_h |
24 | 24 |
25 #include "core/SVGNames.h" | 25 #include "core/SVGNames.h" |
26 #include "core/svg/SVGAnimatedNumberOptionalNumber.h" | 26 #include "core/svg/SVGAnimatedNumberOptionalNumber.h" |
27 #include "core/svg/SVGFELightElement.h" | 27 #include "core/svg/SVGFELightElement.h" |
28 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h" | 28 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h" |
29 | 29 |
30 namespace blink { | 30 namespace blink { |
31 | 31 |
32 class SVGFEDiffuseLightingElement FINAL : public SVGFilterPrimitiveStandardAttri
butes { | 32 class SVGFEDiffuseLightingElement FINAL : public SVGFilterPrimitiveStandardAttri
butes { |
| 33 DEFINE_WRAPPERTYPEINFO(); |
33 public: | 34 public: |
34 DECLARE_NODE_FACTORY(SVGFEDiffuseLightingElement); | 35 DECLARE_NODE_FACTORY(SVGFEDiffuseLightingElement); |
35 void lightElementAttributeChanged(const SVGFELightElement*, const QualifiedN
ame&); | 36 void lightElementAttributeChanged(const SVGFELightElement*, const QualifiedN
ame&); |
36 | 37 |
37 SVGAnimatedNumber* diffuseConstant() { return m_diffuseConstant.get(); } | 38 SVGAnimatedNumber* diffuseConstant() { return m_diffuseConstant.get(); } |
38 SVGAnimatedNumber* surfaceScale() { return m_surfaceScale.get(); } | 39 SVGAnimatedNumber* surfaceScale() { return m_surfaceScale.get(); } |
39 SVGAnimatedNumber* kernelUnitLengthX() { return m_kernelUnitLength->firstNum
ber(); } | 40 SVGAnimatedNumber* kernelUnitLengthX() { return m_kernelUnitLength->firstNum
ber(); } |
40 SVGAnimatedNumber* kernelUnitLengthY() { return m_kernelUnitLength->secondNu
mber(); } | 41 SVGAnimatedNumber* kernelUnitLengthY() { return m_kernelUnitLength->secondNu
mber(); } |
41 SVGAnimatedString* in1() { return m_in1.get(); } | 42 SVGAnimatedString* in1() { return m_in1.get(); } |
42 | 43 |
43 private: | 44 private: |
44 explicit SVGFEDiffuseLightingElement(Document&); | 45 explicit SVGFEDiffuseLightingElement(Document&); |
45 | 46 |
46 bool isSupportedAttribute(const QualifiedName&); | 47 bool isSupportedAttribute(const QualifiedName&); |
47 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 48 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
48 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&) O
VERRIDE; | 49 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&) O
VERRIDE; |
49 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 50 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; |
50 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE; | 51 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE; |
51 | 52 |
52 RefPtr<SVGAnimatedNumber> m_diffuseConstant; | 53 RefPtr<SVGAnimatedNumber> m_diffuseConstant; |
53 RefPtr<SVGAnimatedNumber> m_surfaceScale; | 54 RefPtr<SVGAnimatedNumber> m_surfaceScale; |
54 RefPtr<SVGAnimatedNumberOptionalNumber> m_kernelUnitLength; | 55 RefPtr<SVGAnimatedNumberOptionalNumber> m_kernelUnitLength; |
55 RefPtr<SVGAnimatedString> m_in1; | 56 RefPtr<SVGAnimatedString> m_in1; |
56 }; | 57 }; |
57 | 58 |
58 } // namespace blink | 59 } // namespace blink |
59 | 60 |
60 #endif | 61 #endif // SVGFEDiffuseLightingElement_h |
OLD | NEW |