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

#include <nr-filter-specularlighting.h>

Inheritance diagram for Inkscape::Filters::FilterSpecularLighting:
Inkscape::Filters::FilterPrimitive

Public Member Functions

 FilterSpecularLighting ()
 
 ~FilterSpecularLighting () 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
 
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.
 

Public Attributes

union { 
 
   DistantLightData   distant 
 
   PointLightData   point 
 
   SpotLightData   spot 
 
light 
 
LightType light_type
 
double surfaceScale
 
double specularConstant
 
double specularExponent
 
guint32 lighting_color
 

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 30 of file nr-filter-specularlighting.h.

Constructor & Destructor Documentation

◆ FilterSpecularLighting()

Inkscape::Filters::FilterSpecularLighting::FilterSpecularLighting ( )

Definition at line 33 of file nr-filter-specularlighting.cpp.

◆ ~FilterSpecularLighting()

Inkscape::Filters::FilterSpecularLighting::~FilterSpecularLighting ( )
overridedefault

Member Function Documentation

◆ area_enlarge()

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

◆ complexity()

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

Reimplemented from Inkscape::Filters::FilterPrimitive.

Definition at line 214 of file nr-filter-specularlighting.cpp.

◆ name()

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

Reimplemented from Inkscape::Filters::FilterPrimitive.

Definition at line 52 of file nr-filter-specularlighting.h.

◆ render_cairo()

Member Data Documentation

◆ distant

DistantLightData Inkscape::Filters::FilterSpecularLighting::distant

Definition at line 42 of file nr-filter-specularlighting.h.

◆ [union]

union { ... } Inkscape::Filters::FilterSpecularLighting::light

Referenced by render_cairo().

◆ light_type

LightType Inkscape::Filters::FilterSpecularLighting::light_type

Definition at line 46 of file nr-filter-specularlighting.h.

Referenced by render_cairo().

◆ lighting_color

guint32 Inkscape::Filters::FilterSpecularLighting::lighting_color

Definition at line 50 of file nr-filter-specularlighting.h.

Referenced by render_cairo().

◆ point

PointLightData Inkscape::Filters::FilterSpecularLighting::point

Definition at line 43 of file nr-filter-specularlighting.h.

◆ specularConstant

double Inkscape::Filters::FilterSpecularLighting::specularConstant

Definition at line 48 of file nr-filter-specularlighting.h.

Referenced by render_cairo().

◆ specularExponent

double Inkscape::Filters::FilterSpecularLighting::specularExponent

Definition at line 49 of file nr-filter-specularlighting.h.

Referenced by render_cairo().

◆ spot

SpotLightData Inkscape::Filters::FilterSpecularLighting::spot

Definition at line 44 of file nr-filter-specularlighting.h.

◆ surfaceScale

double Inkscape::Filters::FilterSpecularLighting::surfaceScale

Definition at line 47 of file nr-filter-specularlighting.h.

Referenced by render_cairo().


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