1 #ifndef __INKSCAPE_EXTENSION_INTERNAL_FILTER_JIGSAW_PIECE_H__
2 #define __INKSCAPE_EXTENSION_INTERNAL_FILTER_JIGSAW_PIECE_H__
3 /* Change the 'JIGSAW_PIECE' above to be your file name */
5 /*
6 * Copyright (C) 2008 Authors:
7 * Ted Gould <ted@gould.cx>
8 *
9 * Released under GNU GPL, read the file 'COPYING' for more information
10 */
11 /* ^^^ Change the copyright to be you and your e-mail address ^^^ */
13 #include "filter.h"
15 namespace Inkscape {
16 namespace Extension {
17 namespace Internal {
18 namespace Filter {
20 class JigsawPiece : public Inkscape::Extension::Internal::Filter::Filter {
21 public:
22 static void init (void) {
23 filter_init("jigsaw-piece", /* ID -- should be unique */
24 N_("JigsawPiece"), /* Name in the menus, should have a N_() around it for translation */
25 N_("It's a puzzle, no hints"),
26 /* Menu tooltip to help users understand the name. Should also have a N_() */
27 "<filter>\n"
28 "<feSpecularLighting specularExponent=\"18.527845036319611\" specularConstant=\"2\" surfaceScale=\"1\" in=\"SourceAlpha\">\n"
29 "<feDistantLight azimuth=\"225\" elevation=\"30\"/>\n"
30 "</feSpecularLighting>\n"
31 "<feComposite in2=\"SourceGraphic\" operator=\"atop\" result=\"result0\"/>\n"
32 "<feMorphology operator=\"dilate\" in=\"SourceAlpha\" result=\"result1\" radius=\"2\"/>\n"
33 "<feComposite in2=\"result1\" in=\"result0\"/>\n"
34 "</filter>\n");
35 /* The XML of the filter that should be added. There
36 * should be a <svg:filter> surrounding what you'd like
37 * to be added with this effect. */
38 };
39 };
41 }; /* namespace Filter */
42 }; /* namespace Internal */
43 }; /* namespace Extension */
44 }; /* namespace Inkscape */
46 /* Change the 'JIGSAW_PIECE' below to be your file name */
47 #endif /* __INKSCAPE_EXTENSION_INTERNAL_FILTER_JIGSAW_PIECE_H__ */