nr-filter-composite.cpp revision d02b7a50402e26d68aff1de33ed15ff0e97fe2ac
/*
* feComposite filter effect renderer
*
* Authors:
* Niko Kiirala <niko@kiirala.com>
*
* Copyright (C) 2007 authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <cmath>
#include "display/cairo-templates.h"
#include "display/cairo-utils.h"
#include "display/nr-filter-composite.h"
#include "display/nr-filter-slot.h"
#include "display/nr-filter-units.h"
namespace Inkscape {
namespace Filters {
{}
return new FilterComposite();
}
{}
struct BlendArithmetic {
{}
return pxout;
}
private:
};
{
if (op == COMPOSITE_ARITHMETIC) {
} else {
switch(op) {
case COMPOSITE_IN:
break;
case COMPOSITE_OUT:
break;
case COMPOSITE_ATOP:
break;
case COMPOSITE_XOR:
break;
case COMPOSITE_OVER:
case COMPOSITE_DEFAULT:
default:
// OVER is the default operator
break;
}
}
}
{
return true;
}
}
}
if (op == COMPOSITE_DEFAULT) {
this->op = COMPOSITE_OVER;
} else if (op == COMPOSITE_OVER ||
op == COMPOSITE_IN ||
op == COMPOSITE_OUT ||
op == COMPOSITE_ATOP ||
op == COMPOSITE_XOR ||
{
}
}
g_warning("Non-finite parameter for feComposite arithmetic operator");
return;
}
}
} /* namespace Filters */
} /* namespace Inkscape */
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :