Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::Filters::FilterConvolveMatrix Class Reference

#include <nr-filter-convolve-matrix.h>

Inheritance diagram for Inkscape::Filters::FilterConvolveMatrix:
Inkscape::Filters::FilterPrimitive

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
 
- Public Member Functions inherited from Inkscape::Filters::FilterPrimitive
 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

- Protected Attributes inherited from Inkscape::Filters::FilterPrimitive
int _input
 
int _output
 
SVGLength _subregion_x
 
SVGLength _subregion_y
 
SVGLength _subregion_width
 
SVGLength _subregion_height
 
SPColorInterpolation color_interpolation
 

Detailed Description

Definition at line 32 of file nr-filter-convolve-matrix.h.

Constructor & Destructor Documentation

◆ FilterConvolveMatrix()

Inkscape::Filters::FilterConvolveMatrix::FilterConvolveMatrix ( )
default

◆ ~FilterConvolveMatrix()

Inkscape::Filters::FilterConvolveMatrix::~FilterConvolveMatrix ( )
overridedefault

Member Function Documentation

◆ area_enlarge()

void Inkscape::Filters::FilterConvolveMatrix::area_enlarge ( Geom::IntRect area,
Geom::Affine const &  trans 
) const
overridevirtual

◆ complexity()

double Inkscape::Filters::FilterConvolveMatrix::complexity ( Geom::Affine const &  ctm) const
overridevirtual

Reimplemented from Inkscape::Filters::FilterPrimitive.

Definition at line 227 of file nr-filter-convolve-matrix.cpp.

References kernelMatrix.

◆ name()

Glib::ustring Inkscape::Filters::FilterConvolveMatrix::name ( ) const
inlineoverridevirtual

Reimplemented from Inkscape::Filters::FilterPrimitive.

Definition at line 52 of file nr-filter-convolve-matrix.h.

◆ render_cairo()

◆ set_bias()

void Inkscape::Filters::FilterConvolveMatrix::set_bias ( double  b)

Definition at line 196 of file nr-filter-convolve-matrix.cpp.

References bias.

◆ set_divisor()

void Inkscape::Filters::FilterConvolveMatrix::set_divisor ( double  d)

Definition at line 191 of file nr-filter-convolve-matrix.cpp.

References divisor.

◆ set_edgeMode()

void Inkscape::Filters::FilterConvolveMatrix::set_edgeMode ( FilterConvolveMatrixEdgeMode  mode)

Definition at line 206 of file nr-filter-convolve-matrix.cpp.

References edgeMode, and mode.

◆ set_kernelMatrix()

void Inkscape::Filters::FilterConvolveMatrix::set_kernelMatrix ( std::vector< gdouble >  km)

Definition at line 201 of file nr-filter-convolve-matrix.cpp.

References kernelMatrix.

◆ set_orderX()

void Inkscape::Filters::FilterConvolveMatrix::set_orderX ( int  coord)

Definition at line 181 of file nr-filter-convolve-matrix.cpp.

References orderX.

◆ set_orderY()

void Inkscape::Filters::FilterConvolveMatrix::set_orderY ( int  coord)

Definition at line 186 of file nr-filter-convolve-matrix.cpp.

References orderY.

◆ set_preserveAlpha()

void Inkscape::Filters::FilterConvolveMatrix::set_preserveAlpha ( bool  pa)

Definition at line 211 of file nr-filter-convolve-matrix.cpp.

References preserveAlpha.

◆ set_targetX()

void Inkscape::Filters::FilterConvolveMatrix::set_targetX ( int  coord)

Definition at line 171 of file nr-filter-convolve-matrix.cpp.

References targetX.

◆ set_targetY()

void Inkscape::Filters::FilterConvolveMatrix::set_targetY ( int  coord)

Definition at line 176 of file nr-filter-convolve-matrix.cpp.

References targetY.

Member Data Documentation

◆ bias

double Inkscape::Filters::FilterConvolveMatrix::bias
private

Definition at line 58 of file nr-filter-convolve-matrix.h.

Referenced by render_cairo(), and set_bias().

◆ divisor

double Inkscape::Filters::FilterConvolveMatrix::divisor
private

Definition at line 58 of file nr-filter-convolve-matrix.h.

Referenced by render_cairo(), and set_divisor().

◆ edgeMode

FilterConvolveMatrixEdgeMode Inkscape::Filters::FilterConvolveMatrix::edgeMode
private

Definition at line 59 of file nr-filter-convolve-matrix.h.

Referenced by render_cairo(), and set_edgeMode().

◆ kernelMatrix

std::vector<double> Inkscape::Filters::FilterConvolveMatrix::kernelMatrix
private

Definition at line 55 of file nr-filter-convolve-matrix.h.

Referenced by complexity(), render_cairo(), and set_kernelMatrix().

◆ orderX

int Inkscape::Filters::FilterConvolveMatrix::orderX
private

Definition at line 57 of file nr-filter-convolve-matrix.h.

Referenced by area_enlarge(), render_cairo(), and set_orderX().

◆ orderY

int Inkscape::Filters::FilterConvolveMatrix::orderY
private

Definition at line 57 of file nr-filter-convolve-matrix.h.

Referenced by area_enlarge(), render_cairo(), and set_orderY().

◆ preserveAlpha

bool Inkscape::Filters::FilterConvolveMatrix::preserveAlpha
private

Definition at line 60 of file nr-filter-convolve-matrix.h.

Referenced by render_cairo(), and set_preserveAlpha().

◆ targetX

int Inkscape::Filters::FilterConvolveMatrix::targetX
private

Definition at line 56 of file nr-filter-convolve-matrix.h.

Referenced by area_enlarge(), render_cairo(), and set_targetX().

◆ targetY

int Inkscape::Filters::FilterConvolveMatrix::targetY
private

Definition at line 56 of file nr-filter-convolve-matrix.h.

Referenced by area_enlarge(), render_cairo(), and set_targetY().


The documentation for this class was generated from the following files: