~valavanisalex/ubuntu/precise/inkscape/fix-943984

« back to all changes in this revision

Viewing changes to inkscape-0.47pre1/src/display/nr-filter-composite.h

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2009-07-02 17:09:45 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090702170945-nn6d6zswovbwju1t
Tags: 0.47~pre1-0ubuntu1
* New upstream release.
  - Don't constrain maximization on small resolution devices (pre0)
    (LP: #348842)
  - Fixes segfault on startup (pre0)
    (LP: #391149)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __NR_FILTER_COMPOSITE_H__
 
2
#define __NR_FILTER_COMPOSITE_H__
 
3
 
 
4
/*
 
5
 * feComposite filter effect renderer
 
6
 *
 
7
 * Authors:
 
8
 *   Niko Kiirala <niko@kiirala.com>
 
9
 *
 
10
 * Copyright (C) 2007 authors
 
11
 *
 
12
 * Released under GNU GPL, read the file 'COPYING' for more information
 
13
 */
 
14
 
 
15
#include "filters/composite.h"
 
16
#include "display/nr-filter-primitive.h"
 
17
#include "display/nr-filter-slot.h"
 
18
#include "display/nr-filter-units.h"
 
19
 
 
20
namespace Inkscape {
 
21
namespace Filters {
 
22
 
 
23
class FilterComposite : public FilterPrimitive {
 
24
public:
 
25
    FilterComposite();
 
26
    static FilterPrimitive *create();
 
27
    virtual ~FilterComposite();
 
28
 
 
29
    virtual int render(FilterSlot &slot, FilterUnits const &units);
 
30
 
 
31
    virtual void set_input(int input);
 
32
    virtual void set_input(int input, int slot);
 
33
 
 
34
    void set_operator(FeCompositeOperator op);
 
35
    void set_arithmetic(double k1, double k2, double k3, double k4);
 
36
 
 
37
private:
 
38
    FeCompositeOperator op;
 
39
    double k1, k2, k3, k4;
 
40
    int _input2;
 
41
};
 
42
 
 
43
} /* namespace Filters */
 
44
} /* namespace Inkscape */
 
45
 
 
46
#endif /* __NR_FILTER_COMPOSITE_H__ */
 
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 :