Inkscape
Vector Graphics Editor
|
#include <nr-filter-convolve-matrix.h>
Public Member Functions | |
FilterConvolveMatrix () | |
~FilterConvolveMatrix () 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_targetY (int coord) |
void | set_targetX (int coord) |
void | set_orderY (int coord) |
void | set_orderX (int coord) |
void | set_kernelMatrix (std::vector< gdouble > km) |
void | set_bias (double b) |
void | set_divisor (double d) |
void | set_edgeMode (FilterConvolveMatrixEdgeMode mode) |
void | set_preserveAlpha (bool pa) |
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 | |
std::vector< double > | kernelMatrix |
int | targetX |
int | targetY |
int | orderX |
int | orderY |
double | divisor |
double | bias |
FilterConvolveMatrixEdgeMode | edgeMode |
bool | preserveAlpha |
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 32 of file nr-filter-convolve-matrix.h.
|
default |
|
overridedefault |
|
overridevirtual |
Reimplemented from Inkscape::Filters::FilterPrimitive.
Definition at line 216 of file nr-filter-convolve-matrix.cpp.
References Geom::GenericRect< C >::max(), Geom::GenericRect< C >::min(), orderX, orderY, Geom::GenericRect< C >::setMax(), Geom::GenericRect< C >::setMin(), targetX, and targetY.
|
overridevirtual |
Reimplemented from Inkscape::Filters::FilterPrimitive.
Definition at line 227 of file nr-filter-convolve-matrix.cpp.
References kernelMatrix.
|
inlineoverridevirtual |
Reimplemented from Inkscape::Filters::FilterPrimitive.
Definition at line 52 of file nr-filter-convolve-matrix.h.
|
overridevirtual |
Reimplemented from Inkscape::Filters::FilterPrimitive.
Definition at line 100 of file nr-filter-convolve-matrix.cpp.
References Inkscape::Filters::FilterPrimitive::_input, Inkscape::Filters::FilterPrimitive::_output, bias, Inkscape::Filters::FilterPrimitive::color_interpolation, Inkscape::Filters::CONVOLVEMATRIX_EDGEMODE_NONE, divisor, edgeMode, Inkscape::Filters::FilterSlot::getcairo(), ink_cairo_surface_create_identical(), ink_cairo_surface_synthesize(), kernelMatrix, orderX, orderY, preserveAlpha, Inkscape::Filters::FilterSlot::set(), set_cairo_surface_ci(), targetX, and targetY.
void Inkscape::Filters::FilterConvolveMatrix::set_bias | ( | double | b | ) |
Definition at line 196 of file nr-filter-convolve-matrix.cpp.
References bias.
void Inkscape::Filters::FilterConvolveMatrix::set_divisor | ( | double | d | ) |
Definition at line 191 of file nr-filter-convolve-matrix.cpp.
References divisor.
void Inkscape::Filters::FilterConvolveMatrix::set_edgeMode | ( | FilterConvolveMatrixEdgeMode | mode | ) |
Definition at line 206 of file nr-filter-convolve-matrix.cpp.
void Inkscape::Filters::FilterConvolveMatrix::set_kernelMatrix | ( | std::vector< gdouble > | km | ) |
Definition at line 201 of file nr-filter-convolve-matrix.cpp.
References kernelMatrix.
void Inkscape::Filters::FilterConvolveMatrix::set_orderX | ( | int | coord | ) |
Definition at line 181 of file nr-filter-convolve-matrix.cpp.
References orderX.
void Inkscape::Filters::FilterConvolveMatrix::set_orderY | ( | int | coord | ) |
Definition at line 186 of file nr-filter-convolve-matrix.cpp.
References orderY.
void Inkscape::Filters::FilterConvolveMatrix::set_preserveAlpha | ( | bool | pa | ) |
Definition at line 211 of file nr-filter-convolve-matrix.cpp.
References preserveAlpha.
void Inkscape::Filters::FilterConvolveMatrix::set_targetX | ( | int | coord | ) |
Definition at line 171 of file nr-filter-convolve-matrix.cpp.
References targetX.
void Inkscape::Filters::FilterConvolveMatrix::set_targetY | ( | int | coord | ) |
Definition at line 176 of file nr-filter-convolve-matrix.cpp.
References targetY.
|
private |
Definition at line 58 of file nr-filter-convolve-matrix.h.
Referenced by render_cairo(), and set_bias().
|
private |
Definition at line 58 of file nr-filter-convolve-matrix.h.
Referenced by render_cairo(), and set_divisor().
|
private |
Definition at line 59 of file nr-filter-convolve-matrix.h.
Referenced by render_cairo(), and set_edgeMode().
|
private |
Definition at line 55 of file nr-filter-convolve-matrix.h.
Referenced by complexity(), render_cairo(), and set_kernelMatrix().
|
private |
Definition at line 57 of file nr-filter-convolve-matrix.h.
Referenced by area_enlarge(), render_cairo(), and set_orderX().
|
private |
Definition at line 57 of file nr-filter-convolve-matrix.h.
Referenced by area_enlarge(), render_cairo(), and set_orderY().
|
private |
Definition at line 60 of file nr-filter-convolve-matrix.h.
Referenced by render_cairo(), and set_preserveAlpha().
|
private |
Definition at line 56 of file nr-filter-convolve-matrix.h.
Referenced by area_enlarge(), render_cairo(), and set_targetX().
|
private |
Definition at line 56 of file nr-filter-convolve-matrix.h.
Referenced by area_enlarge(), render_cairo(), and set_targetY().