1 /*
2  *  Copyright (c) 2016 Dmitry Kazakov <dimula73@gmail.com>
3  *
4  *  This program is free software; you can redistribute it and/or modify
5  *  it under the terms of the GNU General Public License as published by
6  *  the Free Software Foundation; either version 2 of the License, or
7  *  (at your option) any later version.
8  *
9  *  This program is distributed in the hope that it will be useful,
10  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *  GNU General Public License for more details.
13  *
14  *  You should have received a copy of the GNU General Public License
15  *  along with this program; if not, write to the Free Software
16  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17  */
18 
19 #ifndef TESTING_NODES_H
20 #define TESTING_NODES_H
21 
22 #include "kis_node.h"
23 #include "kis_image.h"
24 
25 namespace TestUtil {
26 
27 struct DefaultNode : public KisNode {
DefaultNodeDefaultNode28     DefaultNode() : KisNode(nullptr)
29     {
30     }
31 
paintDeviceDefaultNode32     KisPaintDeviceSP paintDevice() const override {
33         return KisPaintDeviceSP();
34     }
35 
originalDefaultNode36     KisPaintDeviceSP original() const override {
37         return KisPaintDeviceSP();
38     }
39 
projectionDefaultNode40     KisPaintDeviceSP projection() const override {
41         return KisPaintDeviceSP();
42     }
43 
allowAsChildDefaultNode44     bool allowAsChild(KisNodeSP) const override {
45         return true;
46     }
colorSpaceDefaultNode47     const KoColorSpace * colorSpace() const override {
48         return 0;
49     }
compositeOpDefaultNode50     const KoCompositeOp * compositeOp() const override {
51         return 0;
52     }
53 };
54 
55 }
56 
57 #endif // TESTING_NODES_H
58 
59