drawing.cpp revision 3a3365c39fe3932d005ae1aa4324ef48606f5e18
/**
* @file
* @brief SVG drawing for display
*//*
* Authors:
* Krzysztof KosiĆski <tweenk.pl@gmail.com>
*
* Copyright (C) 2011 Authors
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "nr-filter-gaussian.h"
#include "nr-filter-types.h"
namespace Inkscape {
, outlinecolor(0x000000ff)
, delta(0)
, _exact(false)
{
}
{
delete _root;
}
void
{
delete _root;
_root->_drawing_root = true;
}
Drawing::renderMode() const
{
}
{
}
bool
{
return renderMode() == RENDERMODE_OUTLINE;
}
bool
Drawing::renderFilters() const
{
return renderMode() == RENDERMODE_NORMAL;
}
int
Drawing::blurQuality() const
{
if (renderMode() == RENDERMODE_NORMAL) {
} else {
return BLUR_QUALITY_WORST;
}
}
int
Drawing::filterQuality() const
{
if (renderMode() == RENDERMODE_NORMAL) {
} else {
return Filters::FILTER_QUALITY_WORST;
}
}
void
{
_rendermode = mode;
}
void
{
_colormode = mode;
}
void
Drawing::setBlurQuality(int q)
{
_blur_quality = q;
}
void
Drawing::setFilterQuality(int q)
{
_filter_quality = q;
}
void
{
_exact = e;
}
Geom::OptIntRect const &
Drawing::cacheLimit() const
{
return _cache_limit;
}
void
{
_cache_limit = r;
i != _cached_items.end(); ++i)
{
}
}
void
Drawing::update(Geom::IntRect const &area, UpdateContext const &ctx, unsigned flags, unsigned reset)
{
// TODO add autocache
if (!_root) return;
}
void
{
if (!_root) return;
}
{
}
} // end 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:fileencoding=utf-8:textwidth=99 :