Inkscape
Vector Graphics Editor
|
#include <nr-filter-morphology.h>
Public Member Functions | |
FilterMorphology () | |
~FilterMorphology () override | |
void | render_cairo (FilterSlot &slot) const override |
void | area_enlarge (Geom::IntRect &area, Geom::Affine const &trans) const override |
double | complexity (Geom::Affine const &ctm) const override |
void | set_operator (FilterMorphologyOperator o) |
void | set_xradius (double x) |
void | set_yradius (double y) |
Glib::ustring | name () const override |
![]() | |
FilterPrimitive () | |
virtual | ~FilterPrimitive () |
virtual void | update () |
virtual void | set_input (int slot) |
Sets the input slot number 'slot' to be used as input in rendering filter primitive 'primitive' For filter primitive types accepting more than one input, this sets the first input. | |
virtual void | set_input (int input, int slot) |
Sets the input slot number 'slot' to be user as input number 'input' in rendering filter primitive 'primitive' First input for a filter primitive is number 0. | |
virtual void | set_output (int slot) |
Sets the slot number 'slot' to be used as output from filter primitive 'primitive' If output slot for a filter element is not set, one of the unused image slots is used. | |
virtual bool | uses_background () const |
void | set_x (SVGLength const &length) |
Sets the filter primitive subregion. | |
void | set_y (SVGLength const &length) |
void | set_width (SVGLength const &length) |
void | set_height (SVGLength const &length) |
void | set_subregion (SVGLength const &x, SVGLength const &y, SVGLength const &width, SVGLength const &height) |
Geom::Rect | filter_primitive_area (FilterUnits const &units) const |
Returns the filter primitive area in user coordinate system. | |
virtual bool | can_handle_affine (Geom::Affine const &) const |
Indicate whether the filter primitive can handle the given affine. | |
void | setStyle (SPStyle const *style) |
Sets style for access to properties used by filter primitives. | |
Private Attributes | |
FilterMorphologyOperator | Operator |
double | xradius |
double | yradius |
Additional Inherited Members | |
![]() | |
int | _input |
int | _output |
SVGLength | _subregion_x |
SVGLength | _subregion_y |
SVGLength | _subregion_width |
SVGLength | _subregion_height |
SPColorInterpolation | color_interpolation |
Definition at line 30 of file nr-filter-morphology.h.
|
default |
|
overridedefault |
|
overridevirtual |
Reimplemented from Inkscape::Filters::FilterPrimitive.
Definition at line 212 of file nr-filter-morphology.cpp.
References Geom::GenericRect< C >::expandBy(), Geom::Affine::expansionX(), Geom::Affine::expansionY(), xradius, and yradius.
|
overridevirtual |
Reimplemented from Inkscape::Filters::FilterPrimitive.
Definition at line 220 of file nr-filter-morphology.cpp.
References Geom::Affine::expansionX(), Geom::Affine::expansionY(), xradius, and yradius.
|
inlineoverridevirtual |
Reimplemented from Inkscape::Filters::FilterPrimitive.
Definition at line 44 of file nr-filter-morphology.h.
|
overridevirtual |
Reimplemented from Inkscape::Filters::FilterPrimitive.
Definition at line 152 of file nr-filter-morphology.cpp.
References Inkscape::Filters::FilterPrimitive::_input, Inkscape::Filters::FilterPrimitive::_output, copy_cairo_surface_ci(), Geom::Affine::expansionX(), Geom::Affine::expansionY(), Inkscape::Filters::FilterSlot::get_device_scale(), Inkscape::Filters::FilterUnits::get_matrix_primitiveunits2pb(), Inkscape::Filters::FilterSlot::get_units(), Inkscape::Filters::FilterSlot::getcairo(), ink_cairo_surface_create_identical(), Inkscape::Filters::MORPHOLOGY_OPERATOR_DILATE, Inkscape::Filters::FilterSlot::set(), Geom::X, xradius, Geom::Y, and yradius.
void Inkscape::Filters::FilterMorphology::set_operator | ( | FilterMorphologyOperator | o | ) |
Definition at line 227 of file nr-filter-morphology.cpp.
void Inkscape::Filters::FilterMorphology::set_xradius | ( | double | x | ) |
Definition at line 232 of file nr-filter-morphology.cpp.
References xradius.
void Inkscape::Filters::FilterMorphology::set_yradius | ( | double | y | ) |
Definition at line 237 of file nr-filter-morphology.cpp.
References yradius.
|
private |
Definition at line 47 of file nr-filter-morphology.h.
|
private |
Definition at line 48 of file nr-filter-morphology.h.
Referenced by area_enlarge(), complexity(), render_cairo(), and set_xradius().
|
private |
Definition at line 49 of file nr-filter-morphology.h.
Referenced by area_enlarge(), complexity(), render_cairo(), and set_yradius().