gaussian-blur.cpp revision a2e796b608034e2c62290378d713058b8b58ef8f
/** \file
* SVG <gaussianBlur> implementation.
*
*/
/*
* Authors:
* Hugo Rodrigues <haa.rodrigues@gmail.com>
* Niko Kiirala <niko@kiirala.com>
* Abhishek Sharma
*
* Copyright (C) 2006,2007 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "attributes.h"
#include "filters/gaussian-blur.h"
#include "display/nr-filter.h"
#include "display/nr-filter-primitive.h"
#include "display/nr-filter-gaussian.h"
#include "display/nr-filter-types.h"
//#define SP_MACROS_SILENT
//#include "macros.h"
/* GaussianBlur base class */
static void
{
}
this->spgaussianblur = gb;
}
CGaussianBlur::~CGaussianBlur() {
}
SPGaussianBlur* gaussianBlur = this;
delete gaussianBlur->cfilterprimitive;
}
static void
{
new (gaussianBlur) SPGaussianBlur();
}
/**
* Reads the Inkscape::XML::Node, and initializes SPGaussianBlur variables. For this to get called,
* our name must be associated with a repr via "sp_object_type_register". Best done through
* sp-object-repr.cpp's repr_name_entries array.
*/
}
/**
* Drops any allocated memory.
*/
void CGaussianBlur::release() {
}
/**
* Sets a specific value in the SPGaussianBlur.
*/
switch(key) {
case SP_ATTR_STDDEVIATION:
break;
default:
break;
}
}
/**
* Receives update notifications.
*/
if (flags & SP_OBJECT_MODIFIED_FLAG) {
}
}
/**
* Writes its settings to an incoming repr object, if any.
*/
Inkscape::XML::Node* CGaussianBlur::write(Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, guint flags) {
/* TODO: Don't just clone, but create a new repr node and write all
* relevant values into it */
if (!repr) {
}
return repr;
}
{
}
{
}
Inkscape::Filters::FilterGaussian *nr_blur = dynamic_cast<Inkscape::Filters::FilterGaussian*>(nr_primitive);
if (num >= 0.0) {
if(optnum >= 0.0)
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:fileencoding=utf-8:textwidth=99 :