Inkscape
Vector Graphics Editor
|
Base class for live path effect items. More...
Go to the source code of this file.
Typedefs | |
typedef std::list< std::string > | HRefList |
Functions | |
static void | lpeobject_ref_modified (SPObject *, guint flags, SPLPEItem *lpeitem) |
Gets called when any of the lpestack's lpeobject repr contents change: i.e. | |
static void | sp_lpe_item_create_original_path_recursive (SPLPEItem *lpeitem) |
static SPLPEItem * | sp_lpe_item_cleanup_original_path_recursive (SPLPEItem *lpeitem, bool keep_paths, bool force=false, bool is_clip_mask=false) |
static std::string | patheffectlist_svg_string (PathEffectList const &list) |
static std::string | hreflist_svg_string (HRefList const &list) |
THE function that should be used to generate any patheffectlist string. | |
void | sp_lpe_item_update_patheffect (SPLPEItem *lpeitem, bool wholetree, bool write, bool with_satellites) |
Calls any registered handlers for the update_patheffect action. | |
template<bool as_const> | |
auto | getPathEffectsOfTypeImpl (PathEffectList const &path_effect_list, std::optional< int > const type) |
void | sp_lpe_item_enable_path_effects (SPLPEItem *lpeitem, bool enable) |
Base class for live path effect items.
Definition in file sp-lpe-item.cpp.
typedef std::list<std::string> HRefList |
Definition at line 52 of file sp-lpe-item.cpp.
auto getPathEffectsOfTypeImpl | ( | PathEffectList const & | path_effect_list, |
std::optional< int > const | type | ||
) |
Definition at line 1303 of file sp-lpe-item.cpp.
|
static |
THE function that should be used to generate any patheffectlist string.
one of the methods to change the effect list:
Definition at line 1392 of file sp-lpe-item.cpp.
Referenced by SPLPEItem::addPathEffect(), SPLPEItem::duplicateCurrentPathEffect(), SPLPEItem::flattenCurrentPathEffect(), patheffectlist_svg_string(), and SPLPEItem::replacePathEffects().
Gets called when any of the lpestack's lpeobject repr contents change: i.e.
parameter change in any of the stacked LPEs
Definition at line 419 of file sp-lpe-item.cpp.
References SPObject::document, SPDocument::isSeeking(), and sp_lpe_item_update_patheffect().
Referenced by SPLPEItem::set().
|
static |
Definition at line 1374 of file sp-lpe-item.cpp.
References hreflist_svg_string().
Referenced by SPLPEItem::downCurrentPathEffect(), SPLPEItem::movePathEffect(), SPLPEItem::removeCurrentPathEffect(), SPLPEItem::upCurrentPathEffect(), and SPLPEItem::write().
|
static |
Definition at line 475 of file sp-lpe-item.cpp.
References Inkscape::XML::Node::attribute(), SPObject::childList(), Inkscape::XML::Document::createElement(), SPCurve::get_pathvector(), SPObject::getAttribute(), SPItem::getClipObject(), SPItem::getMaskObject(), SPDocument::getObjectByRepr(), SPObject::getRepr(), SPDocument::getReprDoc(), SPLPEItem::hasPathEffectRecursive(), parent, Inkscape::XML::Node::parent(), SPLPEItem::path_effect_list, Inkscape::GC::release(), Inkscape::XML::Node::removeAttribute(), Inkscape::XML::Node::removeChild(), Inkscape::XML::Node::setAttribute(), SPObject::setDesc(), Inkscape::XML::Node::setPosition(), SPObject::setTitle(), sp_lpe_item_cleanup_original_path_recursive(), sp_lpe_item_update_patheffect(), sp_object_unref(), sp_svg_read_pathv(), and sp_svg_write_path().
Referenced by SPLPEItem::downCurrentPathEffect(), SPLPEItem::duplicateCurrentPathEffect(), SPLPEItem::flattenCurrentPathEffect(), SPLPEItem::movePathEffect(), SPLPEItem::remove_child(), SPLPEItem::removeAllPathEffects(), SPLPEItem::removeCurrentPathEffect(), sp_lpe_item_cleanup_original_path_recursive(), and SPLPEItem::upCurrentPathEffect().
|
static |
Definition at line 431 of file sp-lpe-item.cpp.
References SPObject::childList(), SPItem::getClipObject(), SPItem::getMaskObject(), sp_lpe_item_create_original_path_recursive(), and sp_object_unref().
Referenced by SPLPEItem::addPathEffect(), SPLPEItem::child_added(), SPLPEItem::flattenCurrentPathEffect(), SPLPEItem::resetClipPathAndMaskLPE(), and sp_lpe_item_create_original_path_recursive().
void sp_lpe_item_enable_path_effects | ( | SPLPEItem * | lpeitem, |
bool | enable | ||
) |
Definition at line 1715 of file sp-lpe-item.cpp.
References SPLPEItem::path_effects_enabled.
Referenced by Inkscape::SelTrans::_clear_stamp(), SPLPEItem::addPathEffect(), Inkscape::UI::Tools::PencilTool::addPowerStrokePencil(), Inkscape::LivePathEffect::LPESlice::cloneD(), Inkscape::LivePathEffect::Effect::doOnBeforeCommit(), SPLPEItem::flattenCurrentPathEffect(), SPPattern::modified(), Inkscape::LivePathEffect::LPEMeasureSegments::processObjects(), SPLPEItem::set(), sp_import_document(), sp_item_group_ungroup(), Inkscape::LivePathEffect::LPESlice::splititem(), and Inkscape::SelTrans::stamp().
void sp_lpe_item_update_patheffect | ( | SPLPEItem * | lpeitem, |
bool | wholetree, | ||
bool | write, | ||
bool | with_satellites | ||
) |
Calls any registered handlers for the update_patheffect action.
Definition at line 384 of file sp-lpe-item.cpp.
References parent, SPObject::parent, SPLPEItem::pathEffectsEnabled(), SPLPEItem::update_patheffect(), and SPLPEItem::update_satellites().
Referenced by Inkscape::UI::Toolbar::PencilToolbar::_flattenLPE(), Inkscape::SelTrans::_selChanged(), Inkscape::UI::PathManipulator::_setGeometry(), Inkscape::LivePathEffect::Effect::addHandles(), SPLPEItem::addPathEffect(), Inkscape::UI::Tools::PencilTool::addPowerStrokePencil(), Inkscape::LivePathEffect::LPEMirrorSymmetry::centerHoriz(), Inkscape::LivePathEffect::LPESlice::centerHoriz(), Inkscape::LivePathEffect::LPEMirrorSymmetry::centerVert(), Inkscape::LivePathEffect::LPESlice::centerVert(), Inkscape::UI::Toolbar::LPEToolbar::change_line_segment_type(), Inkscape::UI::Dialog::LivePathEffectEditor::clonetolpeitem(), Inkscape::LivePathEffect::LPETiling::doAfterEffect(), Inkscape::LivePathEffect::LPECopyRotate::doAfterEffect(), Inkscape::LivePathEffect::LPESlice::doAfterEffect(), Inkscape::LivePathEffect::LPEBool::doBeforeEffect(), Inkscape::LivePathEffect::LPECloneOriginal::doBeforeEffect(), Inkscape::LivePathEffect::LPEMeasureSegments::doBeforeEffect(), Inkscape::LivePathEffect::LPESlice::doOnApply(), Inkscape::LivePathEffect::Effect::doOnBeforeCommit(), Inkscape::LivePathEffect::LPESlice::doOnOpen(), Inkscape::LivePathEffect::LPEBool::doOnRemove(), Inkscape::LivePathEffect::LPESlice::doOnVisibilityToggled(), SPItem::doWriteTransform(), Inkscape::ObjectSet::duplicate(), Inkscape::UI::Tools::ArcTool::finishItem(), Inkscape::UI::Tools::RectTool::finishItem(), Inkscape::UI::Tools::SpiralTool::finishItem(), Inkscape::UI::Tools::StarTool::finishItem(), SPLPEItem::flattenCurrentPathEffect(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_click(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_set(), Inkscape::LivePathEffect::PowerStrokePointArrayParamKnotHolderEntity::knot_set(), lpeobject_ref_modified(), Inkscape::LivePathEffect::LPEOffset::modified(), SPShape::modified(), SPShape::prepareShapeForLPE(), SPGroup::remove_child(), SPPath::removeTransformsRecursively(), Inkscape::LivePathEffect::LPESlice::resetStyles(), Inkscape::UI::Tools::Box3dTool::root_handler(), Box3DSide::set_shape(), SPPath::set_transform(), Inkscape::LivePathEffect::LPEFilletChamfer::setSelected(), Inkscape::UI::Toolbar::PencilToolbar::shapewidth_value_changed(), sp_lpe_item_cleanup_original_path_recursive(), Inkscape::UI::Tools::spdc_check_for_and_apply_waiting_LPE(), Inkscape::UI::Tools::spdc_flush_white(), Inkscape::LivePathEffect::LPESlice::splititem(), Inkscape::SelTrans::stamp(), Inkscape::LivePathEffect::LPECloneOriginal::syncOriginal(), Inkscape::LivePathEffect::LPEBSpline::toDefaultWeight(), Inkscape::UI::Toolbar::PencilToolbar::tolerance_value_changed(), Inkscape::LivePathEffect::LPEBSpline::toMakeCusp(), Inkscape::LivePathEffect::LPEMirrorSymmetry::toMirror(), Inkscape::LivePathEffect::LPEBSpline::toWeight(), Inkscape::SelTrans::transform(), Inkscape::SelTrans::ungrab(), and SPDocument::update_lpobjs().