Inkscape
Vector Graphics Editor
|
#include <lpe-clone-original.h>
Public Member Functions | |
LPECloneOriginal (LivePathEffectObject *lpeobject) | |
~LPECloneOriginal () override | |
void | doEffect (Geom::PathVector &curve) override |
void | doBeforeEffect (SPLPEItem const *lpeitem) override |
Is performed each time before the effect is updated. | |
bool | doOnOpen (SPLPEItem const *lpeitem) override |
Is performed on load document or revert If the item is fixed legacy return true. | |
void | doOnRemove (SPLPEItem const *) override |
bool | getHolderRemove () override |
Gtk::Widget * | newWidget () override |
This creates a managed widget. | |
![]() | |
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 | doOnVisibilityToggled (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 | 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. | |
Public Attributes | |
OriginalSatelliteParam | linkeditem |
![]() | |
bool | has_exception |
bool | apply_to_clippath_and_mask |
bool | keep_paths |
bool | is_load |
bool | is_applied |
bool | on_remove_all |
bool | refresh_widgets |
bool | finishiddle = false |
bool | satellitestoclipboard = false |
bool | helperLineSatellites = false |
gint | spinbutton_width_chars = 7 |
BoolParam | is_visible |
HiddenParam | lpeversion |
Geom::PathVector | pathvector_before_effect |
Geom::PathVector | pathvector_after_effect |
SPLPEItem * | sp_lpe_item = nullptr |
SPShape * | current_shape |
std::vector< Parameter * > | param_vector |
Private Member Functions | |
void | syncOriginal () |
void | cloneAttributes (SPObject *origin, SPObject *dest, const gchar *attributes, const gchar *css_properties, bool init) |
LPECloneOriginal (const LPECloneOriginal &)=delete | |
LPECloneOriginal & | operator= (const LPECloneOriginal &)=delete |
![]() | |
Geom::OptRect | clip_mask_bbox (SPLPEItem *item, Geom::Affine transform) |
Updates the boundingbox_X and boundingbox_Y values from the geometric bounding box of lpeitem . | |
void | original_bbox (SPLPEItem const *lpeitem, bool absolute=false, bool clip_mask=false, Geom::Affine base_transform=Geom::identity()) |
Private Attributes | |
EnumParam< Clonelpemethod > | method |
TextParam | attributes |
TextParam | css_properties |
BoolParam | allow_transforms |
Glib::ustring | old_attributes |
Glib::ustring | old_css_properties |
Glib::ustring | linked |
bool | sync |
bool | holderRemove = false |
![]() | |
Geom::Interval | boundingbox_X |
Geom::Interval | boundingbox_Y |
Definition at line 23 of file lpe-clone-original.h.
Inkscape::LivePathEffect::LPECloneOriginal::LPECloneOriginal | ( | LivePathEffectObject * | lpeobject | ) |
Definition at line 50 of file lpe-clone-original.cpp.
References allow_transforms, attributes, css_properties, SPObject::getAttribute(), Inkscape::LivePathEffect::Effect::getLPEObj(), linked, linkeditem, method, Inkscape::LivePathEffect::TextParam::param_hide_canvas_text(), Inkscape::LivePathEffect::Effect::registerParameter(), SPObject::removeAttribute(), SPObject::setAttribute(), and sync.
|
overridedefault |
|
privatedelete |
|
private |
Definition at line 146 of file lpe-clone-original.cpp.
References allow_transforms, attributes, c, child, Inkscape::LivePathEffect::CLM_BSPLINESPIRO, Inkscape::LivePathEffect::CLM_D, Inkscape::LivePathEffect::CLM_NONE, Inkscape::LivePathEffect::CLM_ORIGINALD, cloneAttributes(), css_properties, LivePathEffectObject::get_lpe(), SPObject::getAttribute(), Inkscape::LivePathEffect::Effect::getSPDoc(), index, init(), Inkscape::LivePathEffect::Effect::lpeobj, method, SPObject::nthChild(), old_attributes, old_css_properties, origin, ptr_to_opt(), SPObject::removeAttribute(), SPObject::requestDisplayUpdate(), root, SPObject::setAttribute(), SPObject::setAttributeOrRemoveIfEmpty(), Inkscape::LivePathEffect::sp_bspline_do_effect(), Inkscape::LivePathEffect::Effect::sp_lpe_item, sp_repr_css_attr_add_from_string(), sp_repr_css_attr_new(), sp_repr_css_property(), sp_repr_css_set_property(), sp_repr_css_write_string(), Inkscape::LivePathEffect::sp_spiro_do_effect(), sp_svg_write_path(), and sync.
Referenced by cloneAttributes(), and doBeforeEffect().
|
overridevirtual |
Is performed each time before the effect is updated.
Reimplemented from Inkscape::LivePathEffect::Effect.
Definition at line 284 of file lpe-clone-original.cpp.
References attributes, cloneAttributes(), css_properties, SPObject::getAttribute(), Inkscape::LivePathEffect::Effect::getLPEObj(), Inkscape::LivePathEffect::SatelliteParam::getObject(), Inkscape::LivePathEffect::Effect::getSPDoc(), init(), Inkscape::LivePathEffect::Effect::is_load, Inkscape::LivePathEffect::SatelliteParam::isConnected(), Inkscape::LivePathEffect::Effect::isOnClipboard(), linked, linkeditem, Inkscape::LivePathEffect::SatelliteParam::linksToItem(), Inkscape::LivePathEffect::SatelliteParam::lperef, old_attributes, old_css_properties, orig, Inkscape::LivePathEffect::GroupBBoxEffect::original_bbox(), Inkscape::LivePathEffect::TextParam::param_getSVGValue(), Inkscape::LivePathEffect::Parameter::read_from_SVG(), Inkscape::LivePathEffect::Effect::sp_lpe_item, sp_lpe_item_update_patheffect(), sp_svg_write_path(), Inkscape::LivePathEffect::SatelliteParam::start_listening(), sync, and Inkscape::LivePathEffect::SatelliteParam::unlink().
|
overridevirtual |
Reimplemented from Inkscape::LivePathEffect::Effect.
Definition at line 405 of file lpe-clone-original.cpp.
References Inkscape::LivePathEffect::CLM_NONE, Inkscape::LivePathEffect::Effect::current_shape, SPShape::curve(), SPShape::curveBeforeLPE(), method, and syncOriginal().
|
overridevirtual |
Is performed on load document or revert If the item is fixed legacy return true.
Reimplemented from Inkscape::LivePathEffect::Effect.
Definition at line 86 of file lpe-clone-original.cpp.
References Inkscape::LivePathEffect::Parameter::connect_selection_changed(), Inkscape::LivePathEffect::SatelliteParam::getObject(), linkeditem, and Inkscape::LivePathEffect::SatelliteParam::start_listening().
|
overridevirtual |
Reimplemented from Inkscape::LivePathEffect::Effect.
Definition at line 372 of file lpe-clone-original.cpp.
References SPObject::document, SPObject::getAttribute(), holderRemove, Geom::identity(), SPDocument::isSeeking(), linkeditem, Inkscape::LivePathEffect::SatelliteParam::lperef, Inkscape::LivePathEffect::SatelliteParam::quit_listening(), Inkscape::LivePathEffect::Effect::sp_lpe_item, sp_svg_transform_read(), Inkscape::Util::to_cstr(), Inkscape::Util::to_opt(), and Inkscape::LivePathEffect::SatelliteParam::unlink().
|
overridevirtual |
Reimplemented from Inkscape::LivePathEffect::Effect.
Definition at line 354 of file lpe-clone-original.cpp.
References SPObject::getAttribute(), Inkscape::LivePathEffect::Effect::getCurrrentLPEItems(), holderRemove, Inkscape::LivePathEffect::Effect::keep_paths, linkeditem, Inkscape::LivePathEffect::SatelliteParam::lperef, Inkscape::LivePathEffect::Effect::on_remove_all, and Inkscape::LivePathEffect::Effect::sp_lpe_item.
|
overridevirtual |
This creates a managed widget.
Deletion should be done by the eventual parent, or otherwise the caller.
Reimplemented from Inkscape::LivePathEffect::Effect.
Definition at line 114 of file lpe-clone-original.cpp.
References Inkscape::UI::pack_start(), Inkscape::LivePathEffect::Parameter::param_getTooltip(), Inkscape::LivePathEffect::Parameter::param_newWidget(), Inkscape::LivePathEffect::Effect::param_vector, and syncOriginal().
|
privatedelete |
|
private |
Definition at line 96 of file lpe-clone-original.cpp.
References Inkscape::LivePathEffect::CLM_NONE, desktop, SPDesktop::getTool(), method, Inkscape::LivePathEffect::EnumParam< E >::param_set_value(), Inkscape::LivePathEffect::Effect::refresh_widgets, set_active_tool(), Inkscape::LivePathEffect::Effect::sp_lpe_item, sp_lpe_item_update_patheffect(), and sync.
Referenced by doEffect(), and newWidget().
|
private |
Definition at line 39 of file lpe-clone-original.h.
Referenced by cloneAttributes(), and LPECloneOriginal().
|
private |
Definition at line 37 of file lpe-clone-original.h.
Referenced by cloneAttributes(), doBeforeEffect(), and LPECloneOriginal().
|
private |
Definition at line 38 of file lpe-clone-original.h.
Referenced by cloneAttributes(), doBeforeEffect(), and LPECloneOriginal().
|
private |
Definition at line 47 of file lpe-clone-original.h.
Referenced by doOnRemove(), and getHolderRemove().
|
private |
Definition at line 42 of file lpe-clone-original.h.
Referenced by doBeforeEffect(), and LPECloneOriginal().
OriginalSatelliteParam Inkscape::LivePathEffect::LPECloneOriginal::linkeditem |
Definition at line 33 of file lpe-clone-original.h.
Referenced by doBeforeEffect(), doOnOpen(), doOnRemove(), getHolderRemove(), and LPECloneOriginal().
|
private |
Definition at line 36 of file lpe-clone-original.h.
Referenced by cloneAttributes(), doEffect(), LPECloneOriginal(), and syncOriginal().
|
private |
Definition at line 40 of file lpe-clone-original.h.
Referenced by cloneAttributes(), and doBeforeEffect().
|
private |
Definition at line 41 of file lpe-clone-original.h.
Referenced by cloneAttributes(), and doBeforeEffect().
|
private |
Definition at line 46 of file lpe-clone-original.h.
Referenced by cloneAttributes(), doBeforeEffect(), LPECloneOriginal(), and syncOriginal().