~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

Viewing changes to src/sp-fedisplacementmap.h

  • Committer: Ted Gould
  • Date: 2008-11-21 05:24:08 UTC
  • Revision ID: ted@canonical.com-20081121052408-tilucis2pjrrpzxx
MergeĀ fromĀ fe-moved

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef SP_FEDISPLACEMENTMAP_H_SEEN
2
 
#define SP_FEDISPLACEMENTMAP_H_SEEN
3
 
 
4
 
/** \file
5
 
 * SVG <feDisplacementMap> implementation, see sp-feDisplacementMap.cpp.
6
 
 */
7
 
/*
8
 
 * Authors:
9
 
 *   Hugo Rodrigues <haa.rodrigues@gmail.com>
10
 
 *
11
 
 * Copyright (C) 2006 Hugo Rodrigues
12
 
 *
13
 
 * Released under GNU GPL, read the file 'COPYING' for more information
14
 
 */
15
 
 
16
 
#include "sp-filter.h"
17
 
#include "sp-fedisplacementmap-fns.h"
18
 
 
19
 
enum FilterDisplacementMapChannelSelector {
20
 
    DISPLACEMENTMAP_CHANNEL_RED,
21
 
    DISPLACEMENTMAP_CHANNEL_GREEN,
22
 
    DISPLACEMENTMAP_CHANNEL_BLUE,
23
 
    DISPLACEMENTMAP_CHANNEL_ALPHA,
24
 
    DISPLACEMENTMAP_CHANNEL_ENDTYPE
25
 
};
26
 
 
27
 
/* FeDisplacementMap base class */
28
 
class SPFeDisplacementMapClass;
29
 
 
30
 
struct SPFeDisplacementMap : public SPFilterPrimitive {
31
 
    /** DISPLACEMENTMAP ATTRIBUTES HERE */
32
 
    int in2; 
33
 
    double scale;
34
 
    FilterDisplacementMapChannelSelector xChannelSelector;
35
 
    FilterDisplacementMapChannelSelector yChannelSelector;
36
 
};
37
 
 
38
 
struct SPFeDisplacementMapClass {
39
 
    SPFilterPrimitiveClass parent_class;
40
 
};
41
 
 
42
 
GType sp_feDisplacementMap_get_type();
43
 
 
44
 
 
45
 
#endif /* !SP_FEDISPLACEMENTMAP_H_SEEN */
46
 
 
47
 
/*
48
 
  Local Variables:
49
 
  mode:c++
50
 
  c-file-style:"stroustrup"
51
 
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
52
 
  indent-tabs-mode:nil
53
 
  fill-column:99
54
 
  End:
55
 
*/
56
 
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :