Inkscape
Vector Graphics Editor
|
#include <lpe-patternalongpath.h>
Public Member Functions | |
LPEPatternAlongPath (LivePathEffectObject *lpeobject) | |
~LPEPatternAlongPath () override | |
void | doBeforeEffect (SPLPEItem const *lpeitem) override |
Is performed each time before the effect is updated. | |
Geom::Piecewise< Geom::D2< Geom::SBasis > > | doEffect_pwd2 (Geom::Piecewise< Geom::D2< Geom::SBasis > > const &pwd2_in) override |
bool | doOnOpen (SPLPEItem const *lpeitem) override |
Is performed on load document or revert If the item is fixed legacy return true. | |
void | transform_multiply (Geom::Affine const &postmul, bool set) override |
Overridden function to apply transforms for example to powerstroke, jointtype or tapperstroke. | |
void | addCanvasIndicators (SPLPEItem const *, std::vector< Geom::PathVector > &hp_vec) override |
Add possible canvas indicators (i.e., helperpaths other than the original path) to hp_vec This function should be overwritten by derived effects if they want to provide their own helperpaths. | |
void | addKnotHolderEntities (KnotHolder *knotholder, SPItem *item) 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 () |
Public Attributes | |
PathParam | pattern |
![]() | |
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 |
Protected Attributes | |
double | original_height |
ScalarParam | prop_scale |
![]() | |
bool | _adjust_path = false |
bool | _provides_knotholder_entities |
bool | _provides_path_adjustment = false |
LPEAction | _lpe_action = LPE_NONE |
int | oncanvasedit_it |
bool | show_orig_path |
bool | concatenate_before_pwd2 |
double | current_zoom |
std::vector< Geom::Point > | selectedNodesPoints |
Inkscape::UI::Widget::Registry | wr |
Private Member Functions | |
void | on_pattern_pasted () |
LPEPatternAlongPath (const LPEPatternAlongPath &) | |
LPEPatternAlongPath & | operator= (const LPEPatternAlongPath &) |
Friends | |
class | WPAP::KnotHolderEntityWidthPatternAlongPath |
class | Inkscape::UI::Toolbar::PencilToolbar |
Additional Inherited Members | |
![]() | |
static Effect * | New (EffectType lpenr, LivePathEffectObject *lpeobj) |
static void | createAndApply (const char *name, SPDocument *doc, SPItem *item) |
static void | createAndApply (EffectType type, SPDocument *doc, SPItem *item) |
static int | acceptsNumClicks (EffectType type) |
![]() | |
Effect (LivePathEffectObject *lpeobject) | |
virtual Geom::PathVector | doEffect_path (Geom::PathVector const &path_in) |
void | registerParameter (Parameter *param) |
Parameter * | getNextOncanvasEditableParam () |
Definition at line 39 of file lpe-patternalongpath.h.
Inkscape::LivePathEffect::LPEPatternAlongPath::LPEPatternAlongPath | ( | LivePathEffectObject * | lpeobject | ) |
Definition at line 72 of file lpe-patternalongpath.cpp.
References _knotholder, Inkscape::LivePathEffect::Effect::_provides_knotholder_entities, copytype, fuse_tolerance, hide_knot, normal_offset, Inkscape::LivePathEffect::ScalarParam::param_set_digits(), Inkscape::LivePathEffect::ScalarParam::param_set_increments(), pattern, prop_scale, prop_units, Inkscape::LivePathEffect::Effect::registerParameter(), scale_y_rel, spacing, tang_offset, and vertical_pattern.
|
override |
Definition at line 114 of file lpe-patternalongpath.cpp.
References _knotholder, and KnotHolder::clear().
|
private |
|
overridevirtual |
Add possible canvas indicators (i.e., helperpaths other than the original path) to hp_vec This function should be overwritten by derived effects if they want to provide their own helperpaths.
Reimplemented from Inkscape::LivePathEffect::Effect.
Definition at line 293 of file lpe-patternalongpath.cpp.
References helper_path.
|
overridevirtual |
Reimplemented from Inkscape::LivePathEffect::Effect.
Definition at line 300 of file lpe-patternalongpath.cpp.
References _knotholder, KnotHolder::add(), Inkscape::CANVAS_ITEM_CTRL_TYPE_LPE, KnotHolderEntity::create(), SPKnot::hide(), hide_knot, item, KnotHolderEntity::knot, KnotHolderEntity::update_knot(), and WPAP::KnotHolderEntityWidthPatternAlongPath.
|
overridevirtual |
Is performed each time before the effect is updated.
Reimplemented from Inkscape::LivePathEffect::Effect.
Definition at line 139 of file lpe-patternalongpath.cpp.
References _knotholder, Geom::PathVector::boundsFast(), Geom::PathVector::clear(), KnotHolder::entity, Inkscape::LivePathEffect::PathParam::get_pathvector(), helper_path, hide_knot, Inkscape::LivePathEffect::Effect::is_load, original_height, pattern, Inkscape::LivePathEffect::PathParam::reload(), KnotHolder::update_knots(), and Geom::Y.
|
overridevirtual |
Reimplemented from Inkscape::LivePathEffect::Effect.
Definition at line 161 of file lpe-patternalongpath.cpp.
References Geom::arc_length_parametrization(), Geom::are_near(), Geom::bounds_exact(), Geom::compose(), Geom::Piecewise< T >::concat(), copytype, Geom::derivative(), Geom::Piecewise< T >::domain(), Geom::PathVector::empty(), Geom::GenericInterval< C >::extent(), floor(), Geom::force_continuity(), Geom::fuse_nearby_ends(), fuse_tolerance, Inkscape::LivePathEffect::PathParam::get_pathvector(), Inkscape::LivePathEffect::PathParam::get_pwd2(), Inkscape::LivePathEffect::PathParam::get_relative_affine(), Inkscape::LivePathEffect::BoolParam::get_value(), Inkscape::LivePathEffect::EnumParam< E >::get_value(), Geom::make_cuts_independent(), normal_offset, Inkscape::LivePathEffect::PAPCT_REPEATED, Inkscape::LivePathEffect::PAPCT_REPEATED_STRETCHED, Inkscape::LivePathEffect::PAPCT_SINGLE, Inkscape::LivePathEffect::PAPCT_SINGLE_STRETCHED, pattern, prop_scale, prop_units, Geom::rot90(), scale_y_rel, spacing, Geom::split_at_discontinuities(), tang_offset, and vertical_pattern.
|
overridevirtual |
Is performed on load document or revert If the item is fixed legacy return true.
Reimplemented from Inkscape::LivePathEffect::Effect.
Definition at line 122 of file lpe-patternalongpath.cpp.
References Inkscape::LivePathEffect::Effect::is_applied, Inkscape::LivePathEffect::Effect::is_load, pattern, and Inkscape::LivePathEffect::PathParam::reload().
|
private |
|
private |
|
overridevirtual |
Overridden function to apply transforms for example to powerstroke, jointtype or tapperstroke.
Reimplemented from Inkscape::LivePathEffect::Effect.
Definition at line 131 of file lpe-patternalongpath.cpp.
References SPLPEItem::optimizeTransforms(), Inkscape::LivePathEffect::PathParam::param_transform_multiply(), SPLPEItem::pathEffectsEnabled(), pattern, and Inkscape::LivePathEffect::Effect::sp_lpe_item.
|
friend |
Definition at line 53 of file lpe-patternalongpath.h.
|
friend |
Definition at line 52 of file lpe-patternalongpath.h.
Referenced by addKnotHolderEntities().
|
private |
Definition at line 69 of file lpe-patternalongpath.h.
Referenced by addKnotHolderEntities(), doBeforeEffect(), LPEPatternAlongPath(), and ~LPEPatternAlongPath().
|
private |
Definition at line 60 of file lpe-patternalongpath.h.
Referenced by doEffect_pwd2(), and LPEPatternAlongPath().
|
private |
Definition at line 68 of file lpe-patternalongpath.h.
Referenced by doEffect_pwd2(), and LPEPatternAlongPath().
|
private |
Definition at line 70 of file lpe-patternalongpath.h.
Referenced by addCanvasIndicators(), and doBeforeEffect().
|
private |
Definition at line 67 of file lpe-patternalongpath.h.
Referenced by addKnotHolderEntities(), doBeforeEffect(), and LPEPatternAlongPath().
|
private |
Definition at line 63 of file lpe-patternalongpath.h.
Referenced by doEffect_pwd2(), and LPEPatternAlongPath().
|
protected |
Definition at line 56 of file lpe-patternalongpath.h.
Referenced by doBeforeEffect().
PathParam Inkscape::LivePathEffect::LPEPatternAlongPath::pattern |
Definition at line 51 of file lpe-patternalongpath.h.
Referenced by doBeforeEffect(), doEffect_pwd2(), doOnOpen(), LPEPatternAlongPath(), and transform_multiply().
|
protected |
Definition at line 57 of file lpe-patternalongpath.h.
Referenced by doEffect_pwd2(), and LPEPatternAlongPath().
|
private |
Definition at line 65 of file lpe-patternalongpath.h.
Referenced by doEffect_pwd2(), and LPEPatternAlongPath().
|
private |
Definition at line 61 of file lpe-patternalongpath.h.
Referenced by doEffect_pwd2(), and LPEPatternAlongPath().
|
private |
Definition at line 62 of file lpe-patternalongpath.h.
Referenced by doEffect_pwd2(), and LPEPatternAlongPath().
|
private |
Definition at line 64 of file lpe-patternalongpath.h.
Referenced by doEffect_pwd2(), and LPEPatternAlongPath().
|
private |
Definition at line 66 of file lpe-patternalongpath.h.
Referenced by doEffect_pwd2(), and LPEPatternAlongPath().