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

#include <nr-filter-displacement-map.h>

Inheritance diagram for Inkscape::Filters::FilterDisplacementMap:
Inkscape::Filters::FilterPrimitive

Public Member Functions

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_input (int slot) override
 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.
 
void set_input (int input, int slot) override
 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.
 
void set_scale (double s)
 
void set_channel_selector (int s, FilterDisplacementMapChannelSelector channel)
 
Glib::ustring name () const override
 
- Public Member Functions inherited from Inkscape::Filters::FilterPrimitive
 FilterPrimitive ()
 
virtual ~FilterPrimitive ()
 
virtual void update ()
 
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

double scale
 
int _input2
 
unsigned Xchannel
 
unsigned Ychannel
 

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 24 of file nr-filter-displacement-map.h.

Member Function Documentation

◆ area_enlarge()

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

Reimplemented from Inkscape::Filters::FilterPrimitive.

Definition at line 142 of file nr-filter-displacement-map.cpp.

References Geom::GenericRect< C >::expandBy(), and scale.

◆ complexity()

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

Reimplemented from Inkscape::Filters::FilterPrimitive.

Definition at line 154 of file nr-filter-displacement-map.cpp.

◆ name()

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

Reimplemented from Inkscape::Filters::FilterPrimitive.

Definition at line 36 of file nr-filter-displacement-map.h.

◆ render_cairo()

◆ set_channel_selector()

void Inkscape::Filters::FilterDisplacementMap::set_channel_selector ( int  s,
FilterDisplacementMapChannelSelector  channel 
)

◆ set_input() [1/2]

void Inkscape::Filters::FilterDisplacementMap::set_input ( int  input,
int  slot 
)
overridevirtual

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.

For primitives with attributes 'in' and 'in2', these are numbered 0 and 1, respectively. If any of required input slots for a filter is not set, the output of previous filter primitive is used, or SourceGraphic if this is the first filter primitive for this filter.

Reimplemented from Inkscape::Filters::FilterPrimitive.

Definition at line 103 of file nr-filter-displacement-map.cpp.

References Inkscape::Filters::FilterPrimitive::_input, and _input2.

◆ set_input() [2/2]

void Inkscape::Filters::FilterDisplacementMap::set_input ( int  slot)
overridevirtual

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.

If any of the required input slots is not set, the output of previous filter primitive is used, or SourceGraphic if this is the first primitive for this filter.

Reimplemented from Inkscape::Filters::FilterPrimitive.

Definition at line 93 of file nr-filter-displacement-map.cpp.

References Inkscape::Filters::FilterPrimitive::_input.

◆ set_scale()

void Inkscape::Filters::FilterDisplacementMap::set_scale ( double  s)

Definition at line 98 of file nr-filter-displacement-map.cpp.

References scale.

Member Data Documentation

◆ _input2

int Inkscape::Filters::FilterDisplacementMap::_input2
private

Definition at line 40 of file nr-filter-displacement-map.h.

Referenced by render_cairo(), and set_input().

◆ scale

double Inkscape::Filters::FilterDisplacementMap::scale
private

Definition at line 39 of file nr-filter-displacement-map.h.

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

◆ Xchannel

unsigned Inkscape::Filters::FilterDisplacementMap::Xchannel
private

Definition at line 41 of file nr-filter-displacement-map.h.

Referenced by render_cairo(), and set_channel_selector().

◆ Ychannel

unsigned Inkscape::Filters::FilterDisplacementMap::Ychannel
private

Definition at line 41 of file nr-filter-displacement-map.h.

Referenced by render_cairo(), and set_channel_selector().


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