Inkscape
Vector Graphics Editor
|
#include <lpe-embrodery-stitch.h>
Public Member Functions | |
LPEEmbroderyStitch (LivePathEffectObject *lpeobject) | |
~LPEEmbroderyStitch () override | |
Geom::PathVector | doEffect_path (Geom::PathVector const &path_in) override |
![]() | |
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. | |
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 Member Functions | |
LPEEmbroderyStitch (const LPEEmbroderyStitch &)=delete | |
LPEEmbroderyStitch & | operator= (const LPEEmbroderyStitch &)=delete |
double | GetPatternInitialStep (int pattern, int line) |
Geom::Point | GetStartPointInterpolAfterRev (std::vector< OrderingInfo > const &info, unsigned i) |
Geom::Point | GetEndPointInterpolAfterRev (std::vector< OrderingInfo > const &info, unsigned i) |
Geom::Point | GetStartPointInterpolBeforeRev (std::vector< OrderingInfo > const &info, unsigned i) |
Geom::Point | GetEndPointInterpolBeforeRev (std::vector< OrderingInfo > const &info, unsigned i) |
Definition at line 24 of file lpe-embrodery-stitch.h.
Enumerator | |
---|---|
connect_method_line | |
connect_method_move_point_from | |
connect_method_move_point_mid | |
connect_method_move_point_to | |
connect_method_count |
Definition at line 44 of file lpe-embrodery-stitch.h.
Definition at line 32 of file lpe-embrodery-stitch.h.
Inkscape::LivePathEffect::LPEEmbroderyStitch::LPEEmbroderyStitch | ( | LivePathEffectObject * | lpeobject | ) |
Definition at line 56 of file lpe-embrodery-stitch.cpp.
References connection, jump_if_longer, ordering, Inkscape::LivePathEffect::ScalarParam::param_make_integer(), Inkscape::LivePathEffect::ScalarParam::param_set_digits(), Inkscape::LivePathEffect::ScalarParam::param_set_range(), Inkscape::LivePathEffect::Effect::registerParameter(), show_stitch_gap, show_stitches, stitch_length, stitch_min_length, and stitch_pattern.
|
overridedefault |
|
privatedelete |
|
overridevirtual |
Reimplemented from Inkscape::LivePathEffect::Effect.
Definition at line 199 of file lpe-embrodery-stitch.cpp.
References Geom::Path::append(), Geom::arc_length_parametrization(), Geom::PathVector::back(), Geom::PathVector::begin(), Inkscape::LivePathEffect::LPEEmbroderyStitchOrdering::OrderingInfo::begOrig, Inkscape::LivePathEffect::LPEEmbroderyStitchOrdering::OrderingInfo::connect, Geom::distance(), Geom::Piecewise< T >::domain(), Geom::PathVector::end(), end, Inkscape::LivePathEffect::LPEEmbroderyStitchOrdering::OrderingInfo::endOrig, Inkscape::LivePathEffect::EnumParam< E >::get_value(), GetEndPointInterpolBeforeRev(), GetPatternInitialStep(), GetStartPointInterpolAfterRev(), GetStartPointInterpolBeforeRev(), Inkscape::LivePathEffect::LPEEmbroderyStitchOrdering::OrderingInfo::index, jump_if_longer, Geom::Piecewise< T >::lastValue(), len, Geom::GenericInterval< C >::max(), Geom::GenericInterval< C >::min(), order_method_closest, order_method_closest_rev_first, order_method_no_reorder, order_method_tsp_kopt_2, order_method_tsp_kopt_3, order_method_tsp_kopt_4, order_method_tsp_kopt_5, order_method_zigzag, order_method_zigzag_rev_first, ordering, Inkscape::LivePathEffect::LPEEmbroderyStitchOrdering::OrderingAdvanced(), Inkscape::LivePathEffect::LPEEmbroderyStitchOrdering::OrderingClosest(), Inkscape::LivePathEffect::LPEEmbroderyStitchOrdering::OrderingOriginal(), Inkscape::LivePathEffect::LPEEmbroderyStitchOrdering::OrderingZigZag(), Geom::path_from_piecewise(), Geom::path_from_sbasis(), Geom::PathVector::push_back(), Geom::Piecewise< T >::push_cut(), Geom::Piecewise< T >::push_seg(), Geom::reverse(), Inkscape::LivePathEffect::LPEEmbroderyStitchOrdering::OrderingInfo::reverse, Geom::Piecewise< T >::segs, show_stitch_gap, show_stitches, Geom::PathVector::size(), stitch_length, stitch_min_length, stitch_pattern, Inkscape::LivePathEffect::LPEEmbroderyStitchOrdering::OrderingInfo::used, Geom::Piecewise< T >::valueAt(), Geom::X, and Geom::Y.
|
private |
Definition at line 153 of file lpe-embrodery-stitch.cpp.
References connect_method_line, connect_method_move_point_from, connect_method_move_point_mid, connect_method_move_point_to, connection, and Inkscape::LivePathEffect::EnumParam< E >::get_value().
Referenced by GetEndPointInterpolBeforeRev(), and GetStartPointInterpolBeforeRev().
|
private |
Definition at line 190 of file lpe-embrodery-stitch.cpp.
References GetEndPointInterpolAfterRev(), GetStartPointInterpolAfterRev(), and Geom::reverse().
Referenced by doEffect_path().
|
private |
Definition at line 88 of file lpe-embrodery-stitch.cpp.
Referenced by doEffect_path().
|
private |
Definition at line 126 of file lpe-embrodery-stitch.cpp.
References connect_method_line, connect_method_move_point_from, connect_method_move_point_mid, connect_method_move_point_to, connection, and Inkscape::LivePathEffect::EnumParam< E >::get_value().
Referenced by doEffect_path(), GetEndPointInterpolBeforeRev(), and GetStartPointInterpolBeforeRev().
|
private |
Definition at line 181 of file lpe-embrodery-stitch.cpp.
References GetEndPointInterpolAfterRev(), GetStartPointInterpolAfterRev(), and Geom::reverse().
Referenced by doEffect_path().
|
privatedelete |
|
private |
Definition at line 54 of file lpe-embrodery-stitch.h.
Referenced by GetEndPointInterpolAfterRev(), GetStartPointInterpolAfterRev(), and LPEEmbroderyStitch().
|
private |
Definition at line 60 of file lpe-embrodery-stitch.h.
Referenced by doEffect_path(), and LPEEmbroderyStitch().
|
private |
Definition at line 53 of file lpe-embrodery-stitch.h.
Referenced by doEffect_path(), and LPEEmbroderyStitch().
|
private |
Definition at line 59 of file lpe-embrodery-stitch.h.
Referenced by doEffect_path(), and LPEEmbroderyStitch().
|
private |
Definition at line 58 of file lpe-embrodery-stitch.h.
Referenced by doEffect_path(), and LPEEmbroderyStitch().
|
private |
Definition at line 55 of file lpe-embrodery-stitch.h.
Referenced by doEffect_path(), and LPEEmbroderyStitch().
|
private |
Definition at line 56 of file lpe-embrodery-stitch.h.
Referenced by doEffect_path(), and LPEEmbroderyStitch().
|
private |
Definition at line 57 of file lpe-embrodery-stitch.h.
Referenced by doEffect_path(), and LPEEmbroderyStitch().