Inkscape
Vector Graphics Editor
|
#include <lpe-sketch.h>
Public Member Functions | |
LPESketch (LivePathEffectObject *lpeobject) | |
~LPESketch () override | |
Geom::Piecewise< Geom::D2< Geom::SBasis > > | doEffect_pwd2 (Geom::Piecewise< Geom::D2< Geom::SBasis > > const &pwd2_in) override |
void | doBeforeEffect (SPLPEItem const *lpeitem) override |
Is performed each time before the effect is updated. | |
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 | doEffect (Geom::PathVector &curve) |
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 | |
LPESketch (const LPESketch &)=delete | |
LPESketch & | operator= (const LPESketch &)=delete |
Geom::Piecewise< Geom::D2< Geom::SBasis > > | computePerturbation (double s0, double s1) |
Definition at line 28 of file lpe-sketch.h.
Inkscape::LivePathEffect::LPESketch::LPESketch | ( | LivePathEffectObject * | lpeobject | ) |
|
override |
|
privatedelete |
|
private |
Definition at line 175 of file lpe-sketch.cpp.
References Geom::Piecewise< T >::concat(), offset, and Geom::Piecewise< T >::setDomain().
|
overridevirtual |
Is performed each time before the effect is updated.
Reimplemented from Inkscape::LivePathEffect::Effect.
Definition at line 378 of file lpe-sketch.cpp.
|
overridevirtual |
!the root solver might miss s1==piece_total_length...
Reimplemented from Inkscape::LivePathEffect::Effect.
Definition at line 217 of file lpe-sketch.cpp.
References Geom::abs(), Geom::arcLengthSb(), Geom::bounds_exact(), compose(), Geom::Piecewise< T >::concat(), Geom::cross(), curvature(), Geom::derivative(), Geom::Piecewise< T >::firstValue(), integral(), Geom::Piecewise< T >::lastValue(), Geom::portion(), Geom::Piecewise< T >::push(), Geom::Piecewise< T >::push_cut(), Geom::roots(), Geom::Piecewise< T >::segs, Geom::split_at_discontinuities(), and Geom::sqrt().
|
overridevirtual |
This creates a managed widget.
Deletion should be done by the eventual parent, or otherwise the caller.
Reimplemented from Inkscape::LivePathEffect::Effect.
|
private |
Definition at line 47 of file lpe-sketch.h.
|
private |
Definition at line 60 of file lpe-sketch.h.
|
private |
Definition at line 59 of file lpe-sketch.h.
|
private |
Definition at line 42 of file lpe-sketch.h.
|
private |
Definition at line 53 of file lpe-sketch.h.
|
private |
Definition at line 48 of file lpe-sketch.h.
|
private |
Definition at line 43 of file lpe-sketch.h.
|
private |
Definition at line 44 of file lpe-sketch.h.
|
private |
Definition at line 45 of file lpe-sketch.h.
|
private |
Definition at line 46 of file lpe-sketch.h.
|
private |
Definition at line 57 of file lpe-sketch.h.
|
private |
Definition at line 55 of file lpe-sketch.h.
|
private |
Definition at line 56 of file lpe-sketch.h.
|
private |
Definition at line 54 of file lpe-sketch.h.
|
private |
Definition at line 50 of file lpe-sketch.h.
|
private |
Definition at line 49 of file lpe-sketch.h.