Inkscape
Vector Graphics Editor
|
#include <lpe-powerclip.h>
Public Member Functions | |
LPEPowerClip (LivePathEffectObject *lpeobject) | |
~LPEPowerClip () override | |
void | doBeforeEffect (SPLPEItem const *lpeitem) override |
Is performed each time before the effect is updated. | |
Geom::PathVector | doEffect_path (Geom::PathVector const &path_in) override |
void | doOnRemove (SPLPEItem const *) override |
void | doOnVisibilityToggled (SPLPEItem const *lpeitem) override |
Glib::ustring | getId () |
void | add () |
void | upd () |
void | del () |
Geom::PathVector | getClipPathvector () |
![]() | |
virtual | ~Effect () |
Effect (const Effect &)=delete | |
Effect & | operator= (const Effect &)=delete |
EffectType | effectType () const |
void | doAfterEffect_impl (SPLPEItem const *lpeitem, Geom::PathVector *curve) |
void | doOnApply_impl (SPLPEItem const *lpeitem) |
void | doBeforeEffect_impl (SPLPEItem const *lpeitem) |
void | doOnOpen_impl () |
Is performed on document open allow things like fix legacy LPE in a undo insensitive way. | |
void | doOnRemove_impl (SPLPEItem const *lpeitem) |
void | transform_multiply_impl (Geom::Affine const &postmul, SPLPEItem *) |
void | doOnBeforeCommit () |
void | read_from_SVG () |
void | setCurrentZoom (double cZ) |
void | setSelectedNodePoints (std::vector< Geom::Point > sNP) |
bool | isNodePointSelected (Geom::Point const &nodePoint) const |
bool | isOnClipboard () |
The lpe is on clipboard. | |
std::vector< SPLPEItem * > | getCurrrentLPEItems () const |
void | update_satellites () |
virtual void | doOnException (SPLPEItem const *lpeitem) |
virtual void | adjustForNewPath () |
void | writeParamsToSVG () |
std::vector< SPObject * > | effect_get_satellites (bool force=true) |
virtual void | acceptParamPath (SPPath const *param_path) |
If the effect expects a path parameter (specified by a number of mouse clicks) before it is applied, this is the method that processes the resulting path. | |
int | acceptsNumClicks () const |
SPShape * | getCurrentShape () const |
void | setCurrentShape (SPShape *shape) |
virtual void | processObjects (LPEAction lpe_action) |
void | makeUndoDone (Glib::ustring message) |
bool | isReady () const |
void | setReady (bool ready=true) |
virtual void | doEffect (Geom::PathVector &curve) |
virtual Gtk::Widget * | newWidget () |
This creates a managed widget. | |
virtual void | resetDefaults (SPItem const *item) |
Sets all parameters to their default values and writes them to SVG. | |
bool | providesKnotholder () const |
virtual LPEPathFlashType | pathFlashType () const |
void | addHandles (KnotHolder *knotholder, SPItem *item) |
Add all registered LPE knotholder handles to the knotholder. | |
std::vector< Geom::PathVector > | getCanvasIndicators (SPLPEItem const *lpeitem) |
Return a vector of PathVectors which contain all canvas indicators for this effect. | |
void | update_helperpath () |
Call to a method on nodetool to update the helper path from the effect. | |
bool | providesOwnFlashPaths () const |
bool | showOrigPath () const |
Glib::ustring | getName () const |
Inkscape::XML::Node * | getRepr () |
SPDocument * | getSPDoc () |
LivePathEffectObject * | getLPEObj () |
LivePathEffectObject const * | getLPEObj () const |
Parameter * | getParameter (const char *key) |
void | readallParameters (Inkscape::XML::Node const *repr) |
void | setParameter (const gchar *key, const gchar *new_value) |
bool | isVisible () const |
void | editNextParamOncanvas (SPItem *item, SPDesktop *desktop) |
void | setLPEAction (LPEAction lpe_action) |
void | setDefaultParameters () |
Set this LPE defaults. | |
void | resetDefaultParameters () |
Reset this LPE defaults. | |
bool | hasDefaultParameters () |
Get LPE has defaults. | |
virtual bool | getHolderRemove () |
Private Attributes | |
BoolParam | inverse |
BoolParam | flatten |
BoolParam | hide_clip |
MessageParam | message |
bool | _updating |
bool | _legacy |
Definition at line 17 of file lpe-powerclip.h.
Inkscape::LivePathEffect::LPEPowerClip::LPEPowerClip | ( | LivePathEffectObject * | lpeobject | ) |
Definition at line 32 of file lpe-powerclip.cpp.
References _legacy, _updating, flatten, Inkscape::LivePathEffect::Effect::getRepr(), hide_clip, inverse, message, Inkscape::LivePathEffect::MessageParam::param_set_min_height(), Inkscape::LivePathEffect::Effect::registerParameter(), Inkscape::XML::Node::removeAttribute(), and Inkscape::LivePathEffect::Parameter::write_to_SVG().
|
overridedefault |
void Inkscape::LivePathEffect::LPEPowerClip::add | ( | ) |
Definition at line 144 of file lpe-powerclip.cpp.
References Inkscape::XML::Node::appendChild(), SPObject::appendChildRepr(), SPObject::childList(), Inkscape::XML::Document::createElement(), Inkscape::XML::Node::duplicate(), SPItem::getClipObject(), getClipPathvector(), SPDocument::getDefs(), getId(), SPDocument::getObjectByRepr(), SPObject::getRepr(), SPDocument::getReprDoc(), Inkscape::LivePathEffect::Effect::getSPDoc(), parent, Inkscape::GC::release(), SPLPEItem::removeCurrentPathEffect(), SPObject::setAttribute(), Inkscape::XML::Node::setAttribute(), Inkscape::LivePathEffect::Effect::sp_lpe_item, and sp_svg_write_path().
Referenced by upd().
void Inkscape::LivePathEffect::LPEPowerClip::del | ( | ) |
|
overridevirtual |
Is performed each time before the effect is updated.
Reimplemented from Inkscape::LivePathEffect::Effect.
Definition at line 214 of file lpe-powerclip.cpp.
|
overridevirtual |
Reimplemented from Inkscape::LivePathEffect::Effect.
Definition at line 260 of file lpe-powerclip.cpp.
References Geom::PathVector::empty(), flatten, and getClipPathvector().
|
overridevirtual |
Reimplemented from Inkscape::LivePathEffect::Effect.
Definition at line 222 of file lpe-powerclip.cpp.
References _updating, SPObject::childList(), Geom::clip(), SPObject::deleteObject(), Inkscape::Preferences::get(), Inkscape::Preferences::getBool(), SPItem::getClipObject(), getId(), SPDocument::getObjectById(), Inkscape::LivePathEffect::Effect::getSPDoc(), Inkscape::LivePathEffect::Effect::keep_paths, SP_CSS_DISPLAY_BLOCK, SP_CSS_DISPLAY_NONE, and Inkscape::LivePathEffect::Effect::sp_lpe_item.
|
overridevirtual |
Reimplemented from Inkscape::LivePathEffect::Effect.
Definition at line 272 of file lpe-powerclip.cpp.
References upd().
Geom::PathVector Inkscape::LivePathEffect::LPEPowerClip::getClipPathvector | ( | ) |
Definition at line 97 of file lpe-powerclip.cpp.
References _legacy, SPObject::childList(), Geom::clip(), SPItem::getClipObject(), hide_clip, inverse, Inkscape::LivePathEffect::Effect::is_load, Inkscape::LivePathEffect::Effect::isVisible(), Geom::PathVector::push_back(), Inkscape::LivePathEffect::sp_bbox_without_clip(), SP_CSS_DISPLAY_NONE, Inkscape::LivePathEffect::sp_get_recursive_pathvector(), and Inkscape::LivePathEffect::Effect::sp_lpe_item.
Referenced by add(), doEffect_path(), and upd().
Glib::ustring Inkscape::LivePathEffect::LPEPowerClip::getId | ( | ) |
Definition at line 196 of file lpe-powerclip.cpp.
References getId(), and Inkscape::LivePathEffect::Effect::getLPEObj().
Referenced by add(), doOnRemove(), getId(), and upd().
void Inkscape::LivePathEffect::LPEPowerClip::upd | ( | ) |
Definition at line 198 of file lpe-powerclip.cpp.
References add(), getClipPathvector(), getId(), SPDocument::getObjectById(), Inkscape::LivePathEffect::Effect::getSPDoc(), SPObject::setAttribute(), Inkscape::LivePathEffect::Effect::sp_lpe_item, sp_svg_write_path(), and SPObject::updateRepr().
Referenced by doBeforeEffect(), and doOnVisibilityToggled().
|
private |
Definition at line 37 of file lpe-powerclip.h.
Referenced by getClipPathvector(), and LPEPowerClip().
|
private |
Definition at line 36 of file lpe-powerclip.h.
Referenced by doBeforeEffect(), doOnRemove(), and LPEPowerClip().
|
private |
Definition at line 33 of file lpe-powerclip.h.
Referenced by doEffect_path(), and LPEPowerClip().
|
private |
Definition at line 34 of file lpe-powerclip.h.
Referenced by getClipPathvector(), and LPEPowerClip().
|
private |
Definition at line 32 of file lpe-powerclip.h.
Referenced by getClipPathvector(), and LPEPowerClip().
|
private |
Definition at line 35 of file lpe-powerclip.h.
Referenced by LPEPowerClip().