filter-chemistry.cpp revision b53b8aff0aa55c2349ea10992daac23a929ae19f
#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 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 *
{
}
{
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 :