Inkscape
Vector Graphics Editor
|
#include <lpe-lattice2.h>
Public Member Functions | |
LPELattice2 (LivePathEffectObject *lpeobject) | |
~LPELattice2 () override | |
Geom::Piecewise< Geom::D2< Geom::SBasis > > | doEffect_pwd2 (Geom::Piecewise< Geom::D2< Geom::SBasis > > const &pwd2_in) override |
void | resetDefaults (SPItem const *item) override |
Sets all parameters to their default values and writes them to SVG. | |
void | doBeforeEffect (SPLPEItem const *lpeitem) override |
Is performed each time before the effect is updated. | |
Gtk::Widget * | newWidget () override |
This creates a managed widget. | |
void | calculateCurve (Geom::Point a, Geom::Point b, Geom::PathBuilder &c, bool horizontal, bool move) |
void | vertical (PointParam ¶mA, PointParam ¶mB, Geom::Line vert) |
void | horizontal (PointParam ¶mA, PointParam ¶mB, Geom::Line horiz) |
void | setDefaults () |
void | onExpanderChanged () |
void | resetGrid () |
![]() | |
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) |
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 () |
Protected Member Functions | |
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. | |
![]() | |
Effect (LivePathEffectObject *lpeobject) | |
virtual Geom::PathVector | doEffect_path (Geom::PathVector const &path_in) |
void | registerParameter (Parameter *param) |
Parameter * | getNextOncanvasEditableParam () |
virtual void | addKnotHolderEntities (KnotHolder *, SPItem *) |
Private Member Functions | |
LPELattice2 (const LPELattice2 &)=delete | |
LPELattice2 & | operator= (const LPELattice2 &)=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()) |
Definition at line 37 of file lpe-lattice2.h.
Inkscape::LivePathEffect::LPELattice2::LPELattice2 | ( | LivePathEffectObject * | lpeobject | ) |
Definition at line 39 of file lpe-lattice2.cpp.
References Inkscape::LivePathEffect::Effect::apply_to_clippath_and_mask, grid_point_0, grid_point_1, grid_point_10x11, grid_point_12, grid_point_13, grid_point_14, grid_point_15, grid_point_16, grid_point_17, grid_point_18, grid_point_19, grid_point_2, grid_point_20x21, grid_point_22x23, grid_point_24x26, grid_point_25x27, grid_point_28x30, grid_point_29x31, grid_point_3, grid_point_32x33x34x35, grid_point_4, grid_point_5, grid_point_6, grid_point_7, grid_point_8x9, horizontal_mirror, live_update, perimetral, Inkscape::LivePathEffect::Effect::registerParameter(), and vertical_mirror.
|
overridedefault |
|
privatedelete |
|
overrideprotectedvirtual |
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 584 of file lpe-lattice2.cpp.
References c, calculateCurve(), grid_point_0, grid_point_1, grid_point_10x11, grid_point_12, grid_point_13, grid_point_14, grid_point_15, grid_point_16, grid_point_17, grid_point_18, grid_point_19, grid_point_2, grid_point_20x21, grid_point_22x23, grid_point_24x26, grid_point_25x27, grid_point_28x30, grid_point_29x31, grid_point_3, grid_point_32x33x34x35, grid_point_4, grid_point_5, grid_point_6, grid_point_7, grid_point_8x9, and perimetral.
void Inkscape::LivePathEffect::LPELattice2::calculateCurve | ( | Geom::Point | a, |
Geom::Point | b, | ||
Geom::PathBuilder & | c, | ||
bool | horizontal, | ||
bool | move | ||
) |
Definition at line 570 of file lpe-lattice2.cpp.
References c, horizontal(), Geom::X, and Geom::Y.
Referenced by addCanvasIndicators().
|
overridevirtual |
Is performed each time before the effect is updated.
Reimplemented from Inkscape::LivePathEffect::Effect.
Definition at line 335 of file lpe-lattice2.cpp.
References grid_point_0, grid_point_1, grid_point_10x11, grid_point_12, grid_point_13, grid_point_14, grid_point_15, grid_point_16, grid_point_17, grid_point_18, grid_point_19, grid_point_2, grid_point_20x21, grid_point_22x23, grid_point_24x26, grid_point_25x27, grid_point_28x30, grid_point_29x31, grid_point_3, grid_point_32x33x34x35, grid_point_4, grid_point_5, grid_point_6, grid_point_7, grid_point_8x9, horizontal(), horizontal_mirror, Inkscape::LivePathEffect::Effect::is_applied, Inkscape::LivePathEffect::GroupBBoxEffect::original_bbox(), Inkscape::LivePathEffect::PointParam::param_get_default(), Inkscape::LivePathEffect::PointParam::param_hide_knot(), Inkscape::LivePathEffect::PointParam::param_set_default(), perimetral, resetGrid(), setDefaults(), vertical(), and vertical_mirror.
|
overridevirtual |
Reimplemented from Inkscape::LivePathEffect::Effect.
Definition at line 108 of file lpe-lattice2.cpp.
References Inkscape::LivePathEffect::GroupBBoxEffect::boundingbox_X, Inkscape::LivePathEffect::GroupBBoxEffect::boundingbox_Y, Geom::compose_each(), Geom::dot(), Geom::PathVector::empty(), Geom::GenericInterval< C >::extent(), grid_point_0, grid_point_1, grid_point_10x11, grid_point_12, grid_point_13, grid_point_14, grid_point_15, grid_point_16, grid_point_17, grid_point_18, grid_point_19, grid_point_2, grid_point_20x21, grid_point_22x23, grid_point_24x26, grid_point_25x27, grid_point_28x30, grid_point_29x31, grid_point_3, grid_point_32x33x34x35, grid_point_4, grid_point_5, grid_point_6, grid_point_7, grid_point_8x9, height, Geom::GenericInterval< C >::min(), origin, Geom::path_from_piecewise(), Geom::paths_to_pw(), pathv_to_cubicbezier(), Geom::pow(), Geom::Piecewise< T >::push(), Geom::Piecewise< T >::push_cut(), Geom::Piecewise< T >::size(), width, Geom::X, and Geom::Y.
void Inkscape::LivePathEffect::LPELattice2::horizontal | ( | PointParam & | paramA, |
PointParam & | paramB, | ||
Geom::Line | horiz | ||
) |
Definition at line 313 of file lpe-lattice2.cpp.
References Geom::distance(), live_update, Geom::Line::nearestTime(), Inkscape::LivePathEffect::PointParam::param_setValue(), Geom::Line::pointAt(), Geom::X, and Geom::Y.
Referenced by calculateCurve(), and doBeforeEffect().
|
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 224 of file lpe-lattice2.cpp.
References expanded, expander, onExpanderChanged(), Inkscape::UI::pack_start(), Inkscape::LivePathEffect::Parameter::param_getTooltip(), Inkscape::LivePathEffect::Parameter::param_key, Inkscape::LivePathEffect::Parameter::param_newWidget(), Inkscape::LivePathEffect::Effect::param_vector, and resetGrid().
void Inkscape::LivePathEffect::LPELattice2::onExpanderChanged | ( | ) |
Definition at line 282 of file lpe-lattice2.cpp.
References expanded, and expander.
Referenced by newWidget().
|
privatedelete |
|
overridevirtual |
Sets all parameters to their default values and writes them to SVG.
Reimplemented from Inkscape::LivePathEffect::Effect.
Definition at line 561 of file lpe-lattice2.cpp.
References item, Inkscape::LivePathEffect::GroupBBoxEffect::original_bbox(), Inkscape::LivePathEffect::Effect::resetDefaults(), resetGrid(), and setDefaults().
void Inkscape::LivePathEffect::LPELattice2::resetGrid | ( | ) |
Definition at line 531 of file lpe-lattice2.cpp.
References grid_point_0, grid_point_1, grid_point_10x11, grid_point_12, grid_point_13, grid_point_14, grid_point_15, grid_point_16, grid_point_17, grid_point_18, grid_point_19, grid_point_2, grid_point_20x21, grid_point_22x23, grid_point_24x26, grid_point_25x27, grid_point_28x30, grid_point_29x31, grid_point_3, grid_point_32x33x34x35, grid_point_4, grid_point_5, grid_point_6, grid_point_7, grid_point_8x9, and Inkscape::LivePathEffect::PointParam::param_set_default().
Referenced by doBeforeEffect(), newWidget(), and resetDefaults().
void Inkscape::LivePathEffect::LPELattice2::setDefaults | ( | ) |
Definition at line 401 of file lpe-lattice2.cpp.
References Inkscape::LivePathEffect::GroupBBoxEffect::boundingbox_X, Inkscape::LivePathEffect::GroupBBoxEffect::boundingbox_Y, grid_point_0, grid_point_1, grid_point_10x11, grid_point_12, grid_point_13, grid_point_14, grid_point_15, grid_point_16, grid_point_17, grid_point_18, grid_point_19, grid_point_2, grid_point_20x21, grid_point_22x23, grid_point_24x26, grid_point_25x27, grid_point_28x30, grid_point_29x31, grid_point_3, grid_point_32x33x34x35, grid_point_4, grid_point_5, grid_point_6, grid_point_7, grid_point_8x9, live_update, Geom::GenericInterval< C >::max(), Geom::GenericInterval< C >::min(), Inkscape::LivePathEffect::PointParam::param_set_liveupdate(), and Inkscape::LivePathEffect::PointParam::param_update_default().
Referenced by doBeforeEffect(), and resetDefaults().
void Inkscape::LivePathEffect::LPELattice2::vertical | ( | PointParam & | paramA, |
PointParam & | paramB, | ||
Geom::Line | vert | ||
) |
Definition at line 292 of file lpe-lattice2.cpp.
References Geom::distance(), live_update, Geom::Line::nearestTime(), Inkscape::LivePathEffect::PointParam::param_setValue(), Geom::Line::pointAt(), Geom::X, and Geom::Y.
Referenced by doBeforeEffect().
|
private |
Definition at line 97 of file lpe-lattice2.h.
Referenced by newWidget(), and onExpanderChanged().
|
private |
Definition at line 98 of file lpe-lattice2.h.
Referenced by newWidget(), and onExpanderChanged().
|
private |
Definition at line 71 of file lpe-lattice2.h.
Referenced by addCanvasIndicators(), doBeforeEffect(), doEffect_pwd2(), LPELattice2(), resetGrid(), and setDefaults().
|
private |
Definition at line 72 of file lpe-lattice2.h.
Referenced by addCanvasIndicators(), doBeforeEffect(), doEffect_pwd2(), LPELattice2(), resetGrid(), and setDefaults().
|
private |
Definition at line 80 of file lpe-lattice2.h.
Referenced by addCanvasIndicators(), doBeforeEffect(), doEffect_pwd2(), LPELattice2(), resetGrid(), and setDefaults().
|
private |
Definition at line 81 of file lpe-lattice2.h.
Referenced by addCanvasIndicators(), doBeforeEffect(), doEffect_pwd2(), LPELattice2(), resetGrid(), and setDefaults().
|
private |
Definition at line 82 of file lpe-lattice2.h.
Referenced by addCanvasIndicators(), doBeforeEffect(), doEffect_pwd2(), LPELattice2(), resetGrid(), and setDefaults().
|
private |
Definition at line 83 of file lpe-lattice2.h.
Referenced by addCanvasIndicators(), doBeforeEffect(), doEffect_pwd2(), LPELattice2(), resetGrid(), and setDefaults().
|
private |
Definition at line 84 of file lpe-lattice2.h.
Referenced by addCanvasIndicators(), doBeforeEffect(), doEffect_pwd2(), LPELattice2(), resetGrid(), and setDefaults().
|
private |
Definition at line 85 of file lpe-lattice2.h.
Referenced by addCanvasIndicators(), doBeforeEffect(), doEffect_pwd2(), LPELattice2(), resetGrid(), and setDefaults().
|
private |
Definition at line 86 of file lpe-lattice2.h.
Referenced by addCanvasIndicators(), doBeforeEffect(), doEffect_pwd2(), LPELattice2(), resetGrid(), and setDefaults().
|
private |
Definition at line 87 of file lpe-lattice2.h.
Referenced by addCanvasIndicators(), doBeforeEffect(), doEffect_pwd2(), LPELattice2(), resetGrid(), and setDefaults().
|
private |
Definition at line 88 of file lpe-lattice2.h.
Referenced by addCanvasIndicators(), doBeforeEffect(), doEffect_pwd2(), LPELattice2(), resetGrid(), and setDefaults().
|
private |
Definition at line 73 of file lpe-lattice2.h.
Referenced by addCanvasIndicators(), doBeforeEffect(), doEffect_pwd2(), LPELattice2(), resetGrid(), and setDefaults().
|
private |
Definition at line 89 of file lpe-lattice2.h.
Referenced by addCanvasIndicators(), doBeforeEffect(), doEffect_pwd2(), LPELattice2(), resetGrid(), and setDefaults().
|
private |
Definition at line 90 of file lpe-lattice2.h.
Referenced by addCanvasIndicators(), doBeforeEffect(), doEffect_pwd2(), LPELattice2(), resetGrid(), and setDefaults().
|
private |
Definition at line 91 of file lpe-lattice2.h.
Referenced by addCanvasIndicators(), doBeforeEffect(), doEffect_pwd2(), LPELattice2(), resetGrid(), and setDefaults().
|
private |
Definition at line 92 of file lpe-lattice2.h.
Referenced by addCanvasIndicators(), doBeforeEffect(), doEffect_pwd2(), LPELattice2(), resetGrid(), and setDefaults().
|
private |
Definition at line 93 of file lpe-lattice2.h.
Referenced by addCanvasIndicators(), doBeforeEffect(), doEffect_pwd2(), LPELattice2(), resetGrid(), and setDefaults().
|
private |
Definition at line 94 of file lpe-lattice2.h.
Referenced by addCanvasIndicators(), doBeforeEffect(), doEffect_pwd2(), LPELattice2(), resetGrid(), and setDefaults().
|
private |
Definition at line 74 of file lpe-lattice2.h.
Referenced by addCanvasIndicators(), doBeforeEffect(), doEffect_pwd2(), LPELattice2(), resetGrid(), and setDefaults().
|
private |
Definition at line 95 of file lpe-lattice2.h.
Referenced by addCanvasIndicators(), doBeforeEffect(), doEffect_pwd2(), LPELattice2(), resetGrid(), and setDefaults().
|
private |
Definition at line 75 of file lpe-lattice2.h.
Referenced by addCanvasIndicators(), doBeforeEffect(), doEffect_pwd2(), LPELattice2(), resetGrid(), and setDefaults().
|
private |
Definition at line 76 of file lpe-lattice2.h.
Referenced by addCanvasIndicators(), doBeforeEffect(), doEffect_pwd2(), LPELattice2(), resetGrid(), and setDefaults().
|
private |
Definition at line 77 of file lpe-lattice2.h.
Referenced by addCanvasIndicators(), doBeforeEffect(), doEffect_pwd2(), LPELattice2(), resetGrid(), and setDefaults().
|
private |
Definition at line 78 of file lpe-lattice2.h.
Referenced by addCanvasIndicators(), doBeforeEffect(), doEffect_pwd2(), LPELattice2(), resetGrid(), and setDefaults().
|
private |
Definition at line 79 of file lpe-lattice2.h.
Referenced by addCanvasIndicators(), doBeforeEffect(), doEffect_pwd2(), LPELattice2(), resetGrid(), and setDefaults().
|
private |
Definition at line 67 of file lpe-lattice2.h.
Referenced by doBeforeEffect(), and LPELattice2().
|
private |
Definition at line 70 of file lpe-lattice2.h.
Referenced by horizontal(), LPELattice2(), setDefaults(), and vertical().
|
private |
Definition at line 69 of file lpe-lattice2.h.
Referenced by addCanvasIndicators(), doBeforeEffect(), and LPELattice2().
|
private |
Definition at line 68 of file lpe-lattice2.h.
Referenced by doBeforeEffect(), and LPELattice2().