16#include "morphology.h"
52 if (std::strcmp(value,
"erode") == 0) {
57 if (std::strcmp(value,
"dilate") == 0) {
95 auto morphology = std::make_unique<Inkscape::Filters::FilterMorphology>();
Lookup dictionary for attributes/properties.
void expandBy(C amount)
Expand the rectangle in both directions by the specified amount.
Axis aligned, non-empty rectangle.
SVG drawing item for display.
Interface for refcounted XML nodes.
float getOptNumber(bool or_num=false) const
void set(char const *str)
void setOptNumber(float optnum)
Typed SVG document implementation.
void set(SPAttr key, char const *value) override
void build(SPDocument *doc, Inkscape::XML::Node *repr) override
std::unique_ptr< Inkscape::Filters::FilterPrimitive > build_renderer(Inkscape::DrawingItem *item) const override
Geom::Rect calculate_region(Geom::Rect const ®ion) const override
Calculate the region taken up by a mophoplogy primitive.
void build(SPDocument *doc, Inkscape::XML::Node *repr) override
void set(SPAttr key, char const *value) override
void build_renderer_common(Inkscape::Filters::FilterPrimitive *primitive) const
Inkscape::XML::Node * repr
void requestModified(unsigned int flags)
Requests that a modification notification signal be emitted later (e.g.
void readAttr(char const *key)
Read value of key attribute from XML node into object.
static FeCompositeOperator read_operator(char const *value)
static Inkscape::Filters::FilterMorphologyOperator read_operator(char const *value)
@ MORPHOLOGY_OPERATOR_ERODE
@ MORPHOLOGY_OPERATOR_DILATE
Helper class to stream background task notifications as a series of messages.
static cairo_user_data_key_t key
Document level base class for all SVG filter primitives.