Code

Fix version check for wheel selector.
[inkscape.git] / src / display / nr-filter-skeleton.cpp
1 /*
2  * Filter primitive renderer skeleton class
3  * You can create your new filter primitive renderer by replacing
4  * all occurences of Skeleton, skeleton and SKELETON with your filter
5  * type, like gaussian or blend in respective case.
6  *
7  * This can be accomplished with the following sed command:
8  * sed -e "s/Skeleton/Name/g" -e "s/skeleton/name/" -e "s/SKELETON/NAME/"
9  * nr-filter-skeleton.cpp >nr-filter-name.cpp
10  *
11  * (on one line, replace occurences of 'name' with your filter name)
12  *
13  * Remember to convert the .h file too. The sed command is same for both
14  * files.
15  *
16  * Authors:
17  *   Niko Kiirala <niko@kiirala.com>
18  *
19  * Copyright (C) 2007 authors
20  *
21  * Released under GNU GPL, read the file 'COPYING' for more information
22  */
24 #include "display/nr-filter-skeleton.h"
25 #include "display/nr-filter-slot.h"
26 #include "display/nr-filter-units.h"
27 #include "libnr/nr-pixblock.h"
29 namespace Inkscape {
30 namespace Filters {
32 FilterSkeleton::FilterSkeleton() 
33 {}
35 FilterPrimitive * FilterSkeleton::create() {
36     return new FilterSkeleton();
37 }
39 FilterSkeleton::~FilterSkeleton()
40 {}
42 int FilterSkeleton::render(FilterSlot &slot,
43                            FilterUnits const &/*units*/) {
44     //NRPixBlock *in = slot.get(_input);
45     NRPixBlock *out = new NRPixBlock();
47     /* Insert rendering code here */
49     out->empty = FALSE;
50     slot.set(_output, out);
52     return 0;
53 }
55 } /* namespace Filters */
56 } /* namespace Inkscape */
58 /*
59   Local Variables:
60   mode:c++
61   c-file-style:"stroustrup"
62   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
63   indent-tabs-mode:nil
64   fill-column:99
65   End:
66 */
67 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :