Inkscape
Vector Graphics Editor
|
Go to the source code of this file.
SPFilterPrimitive * filter_add_primitive | ( | SPFilter * | filter, |
Inkscape::Filters::FilterPrimitiveType | type | ||
) |
Definition at line 94 of file filter-chemistry.cpp.
References SPObject::appendChild(), Inkscape::XML::Document::createElement(), SPObject::document, FPConverter, Inkscape::Util::EnumDataConverter< E >::get_key(), SPDocument::getObjectByRepr(), SPDocument::getReprDoc(), Inkscape::Filters::NR_FILTER_BLEND, Inkscape::Filters::NR_FILTER_COLORMATRIX, Inkscape::Filters::NR_FILTER_COMPONENTTRANSFER, Inkscape::Filters::NR_FILTER_COMPOSITE, Inkscape::Filters::NR_FILTER_CONVOLVEMATRIX, Inkscape::Filters::NR_FILTER_DIFFUSELIGHTING, Inkscape::Filters::NR_FILTER_DISPLACEMENTMAP, Inkscape::Filters::NR_FILTER_FLOOD, Inkscape::Filters::NR_FILTER_GAUSSIANBLUR, Inkscape::Filters::NR_FILTER_IMAGE, Inkscape::Filters::NR_FILTER_MERGE, Inkscape::Filters::NR_FILTER_MORPHOLOGY, Inkscape::Filters::NR_FILTER_OFFSET, Inkscape::Filters::NR_FILTER_SPECULARLIGHTING, Inkscape::Filters::NR_FILTER_TILE, Inkscape::Filters::NR_FILTER_TURBULENCE, Inkscape::GC::release(), and Inkscape::XML::Node::setAttribute().
Referenced by Inkscape::UI::Dialog::FilterEffectsDialog::add_filter_primitive().
SPBlendMode filter_get_legacy_blend | ( | SPObject * | item | ) |
Get if the filter have a < 1.0 blending filter @params: the item to get filtered blend.
Definition at line 490 of file filter-chemistry.cpp.
References SPObject::children, SPStyle::filter, SPStyle::getFilter(), item, SP_CSS_BLEND_NORMAL, and SPObject::style.
Referenced by objects_query_blend().
bool filter_is_single_gaussian_blur | ( | SPFilter * | filter | ) |
Definition at line 523 of file filter-chemistry.cpp.
References SPObject::children.
Referenced by Inkscape::UI::Widget::ObjectCompositeSettings::_blendBlurValueChanged().
double get_single_gaussian_blur_radius | ( | SPFilter * | filter | ) |
Definition at line 529 of file filter-chemistry.cpp.
References SPObject::children, SPObject::firstChild(), and MAX.
bool has_hidder_filter | ( | SPObject const * | item | ) |
Definition at line 405 of file filter-chemistry.cpp.
References SPStyle::getFilter(), SPObject::getId(), item, and SPObject::style.
Referenced by Inkscape::Extension::Internal::CairoRenderer::_doRender(), and object_align().
SPFilter * modify_filter_gaussian_blur_from_item | ( | SPDocument * | document, |
SPItem * | item, | ||
double | stdDeviation | ||
) |
SPFilter * new_filter | ( | SPDocument * | document | ) |
Definition at line 59 of file filter-chemistry.cpp.
References SPObject::appendChild(), Inkscape::XML::Document::createElement(), css, SPDocument::getDefs(), SPDocument::getObjectByRepr(), SPDocument::getReprDoc(), Inkscape::GC::release(), sp_repr_css_attr_new(), sp_repr_css_attr_unref(), sp_repr_css_change(), and sp_repr_css_set_property().
Referenced by Inkscape::UI::Dialog::FilterEffectsDialog::FilterModifier::add_filter(), and SPItem::filter_ref_changed().
SPFilter * new_filter_gaussian_blur | ( | SPDocument * | document, |
double | stdDeviation, | ||
double | expansion | ||
) |
SPFilter * new_filter_simple_from_item | ( | SPDocument * | document, |
SPItem * | item, | ||
const char * | mode, | ||
double | stdDeviation | ||
) |
void remove_filter | ( | SPObject * | item, |
bool | recursive | ||
) |
Definition at line 382 of file filter-chemistry.cpp.
References css, SPObject::getRepr(), item, sp_repr_css_attr_new(), sp_repr_css_attr_unref(), sp_repr_css_change(), sp_repr_css_change_recursive(), and sp_repr_css_unset_property().
Referenced by Inkscape::UI::Widget::ObjectCompositeSettings::_blendBlurValueChanged(), Inkscape::UI::Dialog::FilterEffectsDialog::FilterModifier::remove_filter(), remove_filter_gaussian_blur(), remove_filter_legacy_blend(), remove_hidder_filter(), Inkscape::UI::Dialog::FilterEffectsDialog::FilterModifier::selection_toggled(), and Inkscape::UI::Tools::sp_tweak_color_recursive().
void remove_filter_gaussian_blur | ( | SPObject * | item | ) |
Removes the first feGaussianBlur from the filter attached to given item.
Should this leave us with an empty filter, remove that filter.
Definition at line 424 of file filter-chemistry.cpp.
References Inkscape::XML::Node::childCount(), SPStyle::filter, Inkscape::XML::Node::firstChild(), SPStyle::getFilter(), SPObject::getRepr(), item, Inkscape::XML::Node::name(), Inkscape::XML::Node::next(), remove_filter(), sp_repr_unparent(), and SPObject::style.
void remove_filter_legacy_blend | ( | SPObject * | item | ) |
Removes blend primitive from the filter attached to given item.
Get if the filter have a < 1.0 blending filter and if it remove it @params: the item to remove filtered blend
Definition at line 453 of file filter-chemistry.cpp.
References SPObject::children, SPObject::deleteObject(), SPStyle::filter, SPStyle::getFilter(), item, remove_filter(), and SPObject::style.
Referenced by set_blend_mode().
void remove_hidder_filter | ( | SPObject * | item | ) |
Definition at line 394 of file filter-chemistry.cpp.
References SPStyle::getFilter(), SPObject::getId(), item, remove_filter(), and SPObject::style.
bool set_blend_mode | ( | SPItem * | item, |
SPBlendMode | mode | ||
) |
Definition at line 545 of file filter-chemistry.cpp.
References SPStyle::filter, SPStyle::getFilter(), SPStyle::isolation, item, SPStyle::mix_blend_mode, remove_filter_legacy_blend(), SP_CSS_BLEND_NORMAL, SP_CSS_ISOLATION_ISOLATE, SPObject::style, and SPObject::updateRepr().
Referenced by Inkscape::UI::Widget::ObjectCompositeSettings::_blendBlurValueChanged(), and Inkscape::UI::Dialog::ObjectsPanel::ObjectsPanel().