Inkscape
Vector Graphics Editor
|
#include <lpe-tangent_to_curve.h>
Public Member Functions | |
LPETangentToCurve (LivePathEffectObject *lpeobject) | |
~LPETangentToCurve () override | |
Geom::Piecewise< Geom::D2< Geom::SBasis > > | doEffect_pwd2 (Geom::Piecewise< Geom::D2< Geom::SBasis > > const &pwd2_in) override |
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 () |
Private Member Functions | |
LPETangentToCurve (const LPETangentToCurve &)=delete | |
LPETangentToCurve & | operator= (const LPETangentToCurve &)=delete |
Private Attributes | |
ScalarParam | angle |
ScalarParam | t_attach |
ScalarParam | length_left |
ScalarParam | length_right |
Geom::Point | ptA |
Geom::Point | derivA |
Geom::Point | C |
Geom::Point | D |
Friends | |
class | TtC::KnotHolderEntityLeftEnd |
class | TtC::KnotHolderEntityRightEnd |
class | TtC::KnotHolderEntityAttachPt |
Definition at line 34 of file lpe-tangent_to_curve.h.
Inkscape::LivePathEffect::LPETangentToCurve::LPETangentToCurve | ( | LivePathEffectObject * | lpeobject | ) |
Definition at line 58 of file lpe-tangent_to_curve.cpp.
References Inkscape::LivePathEffect::Effect::_provides_knotholder_entities, angle, length_left, length_right, Inkscape::LivePathEffect::Effect::registerParameter(), Inkscape::LivePathEffect::Effect::show_orig_path, and t_attach.
|
overridedefault |
|
privatedelete |
|
overridevirtual |
Reimplemented from Inkscape::LivePathEffect::Effect.
Definition at line 98 of file lpe-tangent_to_curve.cpp.
References KnotHolder::add(), Inkscape::CANVAS_ITEM_CTRL_TYPE_LPE, KnotHolderEntity::create(), item, TtC::KnotHolderEntityAttachPt, TtC::KnotHolderEntityLeftEnd, and TtC::KnotHolderEntityRightEnd.
|
overridevirtual |
Reimplemented from Inkscape::LivePathEffect::Effect.
Definition at line 77 of file lpe-tangent_to_curve.cpp.
References angle, C, D, derivA, Geom::derivative(), Geom::Rotate::from_degrees(), length_left, length_right, ptA, t_attach, Geom::unit_vector(), Geom::X, and Geom::Y.
|
privatedelete |
|
friend |
Definition at line 44 of file lpe-tangent_to_curve.h.
Referenced by addKnotHolderEntities().
|
friend |
Definition at line 42 of file lpe-tangent_to_curve.h.
Referenced by addKnotHolderEntities().
|
friend |
Definition at line 43 of file lpe-tangent_to_curve.h.
Referenced by addKnotHolderEntities().
|
private |
Definition at line 48 of file lpe-tangent_to_curve.h.
Referenced by doEffect_pwd2(), and LPETangentToCurve().
|
private |
Definition at line 57 of file lpe-tangent_to_curve.h.
Referenced by doEffect_pwd2().
|
private |
Definition at line 58 of file lpe-tangent_to_curve.h.
Referenced by doEffect_pwd2().
|
private |
Definition at line 55 of file lpe-tangent_to_curve.h.
Referenced by doEffect_pwd2().
|
private |
Definition at line 51 of file lpe-tangent_to_curve.h.
Referenced by doEffect_pwd2(), and LPETangentToCurve().
|
private |
Definition at line 52 of file lpe-tangent_to_curve.h.
Referenced by doEffect_pwd2(), and LPETangentToCurve().
|
private |
Definition at line 54 of file lpe-tangent_to_curve.h.
Referenced by doEffect_pwd2().
|
private |
Definition at line 50 of file lpe-tangent_to_curve.h.
Referenced by doEffect_pwd2(), and LPETangentToCurve().