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>
5
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.
10
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.
15
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.
20 */
21
22 #include "config.h"
23
24 #if ENABLE(FILTERS)
25 #include "FEComposite.h"
26
27 #include "Filter.h"
28
29 namespace WebCore {
30
FEComposite(FilterEffect * in,FilterEffect * in2,const CompositeOperationType & type,const float & k1,const float & k2,const float & k3,const float & k4)31 FEComposite::FEComposite(FilterEffect* in, FilterEffect* in2, const CompositeOperationType& type,
32 const float& k1, const float& k2, const float& k3, const float& k4)
33 : FilterEffect()
34 , m_in(in)
35 , m_in2(in2)
36 , m_type(type)
37 , m_k1(k1)
38 , m_k2(k2)
39 , m_k3(k3)
40 , m_k4(k4)
41 {
42 }
43
create(FilterEffect * in,FilterEffect * in2,const CompositeOperationType & type,const float & k1,const float & k2,const float & k3,const float & k4)44 PassRefPtr<FEComposite> FEComposite::create(FilterEffect* in, FilterEffect* in2, const CompositeOperationType& type,
45 const float& k1, const float& k2, const float& k3, const float& k4)
46 {
47 return adoptRef(new FEComposite(in, in2, type, k1, k2, k3, k4));
48 }
49
operation() const50 CompositeOperationType FEComposite::operation() const
51 {
52 return m_type;
53 }
54
setOperation(CompositeOperationType type)55 void FEComposite::setOperation(CompositeOperationType type)
56 {
57 m_type = type;
58 }
59
k1() const60 float FEComposite::k1() const
61 {
62 return m_k1;
63 }
64
setK1(float k1)65 void FEComposite::setK1(float k1)
66 {
67 m_k1 = k1;
68 }
69
k2() const70 float FEComposite::k2() const
71 {
72 return m_k2;
73 }
74
setK2(float k2)75 void FEComposite::setK2(float k2)
76 {
77 m_k2 = k2;
78 }
79
k3() const80 float FEComposite::k3() const
81 {
82 return m_k3;
83 }
84
setK3(float k3)85 void FEComposite::setK3(float k3)
86 {
87 m_k3 = k3;
88 }
89
k4() const90 float FEComposite::k4() const
91 {
92 return m_k4;
93 }
94
setK4(float k4)95 void FEComposite::setK4(float k4)
96 {
97 m_k4 = k4;
98 }
99
apply(Filter *)100 void FEComposite::apply(Filter*)
101 {
102 }
103
dump()104 void FEComposite::dump()
105 {
106 }
107
108 } // namespace WebCore
109
110 #endif // ENABLE(FILTERS)
111