Code

0ded94a8101434f83855be1e0143884acc3d1e81
[inkscape.git] / src / extension / internal / filter / patterned-glass.h
1 #ifndef __INKSCAPE_EXTENSION_INTERNAL_FILTER_PATTERNED_GLASS_H__
2 #define __INKSCAPE_EXTENSION_INTERNAL_FILTER_PATTERNED_GLASS_H__
3 /* Change the 'PATTERNED_GLASS' 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 PatternedGlass : public Inkscape::Extension::Internal::Filter::Filter {
21 public:
22         static void init (void) {
23                 filter_init("patterned-glass",     /* ID -- should be unique */
24                             N_("PatternedGlass"), /* Name in the menus, should have a N_() around it for translation */
25                             N_("Doesn't work, bug"),
26                                                      /* Menu tooltip to help users understand the name.  Should also have a N_() */
27                                         "<filter>\n"
28                         "<feTurbulence numOctaves=\"1\" baseFrequency=\"0.10861423220973783\"/>\n"
29                         "<feDisplacementMap in=\"BackgroundImage\" xChannelSelector=\"R\" yChannelSelector=\"G\" scale=\"11.795774647887324\"/>\n"
30                         "<feComposite in2=\"SourceAlpha\" operator=\"in\"/>\n"
31                         "<feBlend blend=\"normal\" in=\"SourceGraphic\" mode=\"multiply\"/>\n"
32                                         "</filter>\n");
33                                                  /* The XML of the filter that should be added.  There
34                                                   * should be a <svg:filter> surrounding what you'd like
35                                                   * to be added with this effect. */
36         };
37 };
39 }; /* namespace Filter */
40 }; /* namespace Internal */
41 }; /* namespace Extension */
42 }; /* namespace Inkscape */
44 /* Change the 'PATTERNED_GLASS' below to be your file name */
45 #endif /* __INKSCAPE_EXTENSION_INTERNAL_FILTER_PATTERNED_GLASS_H__ */