Inkscape
Vector Graphics Editor
|
#include <lpe-curvestitch.h>
Public Member Functions | |
LPECurveStitch (LivePathEffectObject *lpeobject) | |
~LPECurveStitch () override | |
bool | doOnOpen (SPLPEItem const *lpeitem) override |
Is performed on load document or revert If the item is fixed legacy return true. | |
Geom::PathVector | doEffect_path (Geom::PathVector const &path_in) override |
void | resetDefaults (SPItem const *item) override |
Sets all parameters to their default values and writes them to SVG. | |
![]() | |
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 | doEffect (Geom::PathVector &curve) |
virtual Gtk::Widget * | newWidget () |
This creates a managed widget. | |
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 Member Functions | |
LPECurveStitch (const LPECurveStitch &)=delete | |
LPECurveStitch & | operator= (const LPECurveStitch &)=delete |
Definition at line 27 of file lpe-curvestitch.h.
Inkscape::LivePathEffect::LPECurveStitch::LPECurveStitch | ( | LivePathEffectObject * | lpeobject | ) |
Definition at line 30 of file lpe-curvestitch.cpp.
References endpoint_edge_variation, endpoint_spacing_variation, Geom::infinity(), nrofpaths, Inkscape::LivePathEffect::ScalarParam::param_make_integer(), Inkscape::LivePathEffect::ScalarParam::param_set_digits(), Inkscape::LivePathEffect::ScalarParam::param_set_increments(), Inkscape::LivePathEffect::ScalarParam::param_set_range(), prop_scale, Inkscape::LivePathEffect::Effect::registerParameter(), scale_y_rel, startpoint_edge_variation, startpoint_spacing_variation, strokepath, and transformed.
|
overridedefault |
|
privatedelete |
|
overridevirtual |
Reimplemented from Inkscape::LivePathEffect::Effect.
Definition at line 72 of file lpe-curvestitch.cpp.
References Geom::arc_length_parametrization(), Geom::are_near(), Geom::bounds_exact(), Geom::Piecewise< T >::domain(), end, endpoint_edge_variation, endpoint_spacing_variation, Inkscape::LivePathEffect::PathParam::get_pwd2(), Inkscape::LivePathEffect::PathParam::get_relative_affine(), Inkscape::LivePathEffect::RandomParam::get_value(), Inkscape::LivePathEffect::BoolParam::get_value(), Inkscape::LivePathEffect::Effect::is_load, Geom::L2(), Geom::make_cuts_independent(), Geom::GenericInterval< C >::max(), Geom::GenericInterval< C >::min(), nrofpaths, Geom::path_from_piecewise(), prop_scale, Geom::PathVector::push_back(), Inkscape::LivePathEffect::PathParam::reload(), Inkscape::LivePathEffect::RandomParam::resetRandomizer(), result, Geom::rot90(), scale_y_rel, Geom::Affine::setTranslation(), Geom::Affine::setXAxis(), Geom::Affine::setYAxis(), Geom::PathVector::size(), start, startpoint_edge_variation, startpoint_spacing_variation, stroke, strokepath, transformed, Geom::unit_vector(), and Geom::Affine::withoutTranslation().
|
overridevirtual |
Is performed on load document or revert If the item is fixed legacy return true.
Reimplemented from Inkscape::LivePathEffect::Effect.
Definition at line 61 of file lpe-curvestitch.cpp.
References Inkscape::LivePathEffect::Effect::is_applied, Inkscape::LivePathEffect::Effect::is_load, Inkscape::LivePathEffect::PathParam::reload(), and strokepath.
|
privatedelete |
|
overridevirtual |
Sets all parameters to their default values and writes them to SVG.
Reimplemented from Inkscape::LivePathEffect::Effect.
Definition at line 160 of file lpe-curvestitch.cpp.
References Geom::Path::appendNew(), Geom::are_near(), Inkscape::XML::Node::attribute(), Geom::bounds_exact(), Geom::Piecewise< T >::concat(), end, SPObject::getRepr(), item, Geom::make_cuts_independent(), Inkscape::LivePathEffect::PathParam::param_set_and_write_default(), Inkscape::LivePathEffect::Effect::resetDefaults(), Inkscape::LivePathEffect::PathParam::set_new_value(), sp_svg_read_pathv(), Geom::Path::start(), start, strokepath, and Geom::Path::toPwSb().
|
private |
Definition at line 41 of file lpe-curvestitch.h.
Referenced by doEffect_path(), and LPECurveStitch().
|
private |
Definition at line 42 of file lpe-curvestitch.h.
Referenced by doEffect_path(), and LPECurveStitch().
|
private |
Definition at line 38 of file lpe-curvestitch.h.
Referenced by doEffect_path(), and LPECurveStitch().
|
private |
Definition at line 43 of file lpe-curvestitch.h.
Referenced by doEffect_path(), and LPECurveStitch().
|
private |
Definition at line 44 of file lpe-curvestitch.h.
Referenced by doEffect_path(), and LPECurveStitch().
|
private |
Definition at line 39 of file lpe-curvestitch.h.
Referenced by doEffect_path(), and LPECurveStitch().
|
private |
Definition at line 40 of file lpe-curvestitch.h.
Referenced by doEffect_path(), and LPECurveStitch().
|
private |
Definition at line 37 of file lpe-curvestitch.h.
Referenced by doEffect_path(), doOnOpen(), LPECurveStitch(), and resetDefaults().
|
private |
Definition at line 45 of file lpe-curvestitch.h.
Referenced by doEffect_path(), and LPECurveStitch().