filter-chemistry.cpp revision 3caca4f8381f7ae35678d16074c2414c02a0c0ff
#define __SP_FILTER_CHEMISTRY_C__
/*
* Various utility methods for filters
*
* Authors:
* Hugo Rodrigues
* bulia byak
*
* Copyright (C) 2006 authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "style.h"
#include "document-private.h"
#include "desktop-style.h"
#include "sp-filter.h"
#include "sp-gaussian-blur.h"
#include "svg/css-ostringstream.h"
/**
* Creates a filter with blur primitive of specified radius for an item with the given matrix expansion, width and height
*/
SPFilter *
new_filter_gaussian_blur (SPDocument *document, gdouble radius, double expansion, double expansionX, double expansionY, double width, double height)
{
// create a new filter
// If not within the default 10% margin (see
// http://www.w3.org/TR/SVG11/filters.html#FilterEffectsRegion), specify margins
// TODO: set it in UserSpaceOnUse instead?
}
//create feGaussianBlur node
double stdDeviation = radius;
if (expansion != 0)
//set stdDeviation attribute
//set feGaussianBlur as child of filter node
// Append the new filter node to defs
// get corresponding object
g_assert(SP_IS_FILTER(f));
return f;
}
/**
* Creates a filter with blur primitive of specified radius for the given item
*/
SPFilter *
{
return (new_filter_gaussian_blur (document, radius, i2d.expansion(), i2d.expansionX(), i2d.expansionY(), width, height));
}
{
if (recursive)
else
}
/*
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 :