Inkscape
Vector Graphics Editor
|
#include <lpe-show_handles.h>
Public Member Functions | |
LPEShowHandles (LivePathEffectObject *lpeobject) | |
~LPEShowHandles () override=default | |
void | doOnApply (SPLPEItem const *lpeitem) override |
Sets default styles to element this permanently remove.some styles of the element. | |
void | doBeforeEffect (SPLPEItem const *lpeitem) override |
Is performed each time before the effect is updated. | |
virtual void | generateHelperPath (Geom::PathVector result) |
virtual void | drawNode (Geom::Point p, Geom::NodeType nodetype) |
virtual void | drawHandle (Geom::Point p) |
virtual void | drawHandleLine (Geom::Point p, Geom::Point p2) |
![]() | |
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 () |
Protected Member Functions | |
Geom::PathVector | doEffect_path (Geom::PathVector const &path_in) override |
![]() | |
Effect (LivePathEffectObject *lpeobject) | |
virtual Geom::Piecewise< Geom::D2< Geom::SBasis > > | doEffect_pwd2 (Geom::Piecewise< Geom::D2< Geom::SBasis > > const &pwd2_in) |
void | registerParameter (Parameter *param) |
Parameter * | getNextOncanvasEditableParam () |
virtual void | addKnotHolderEntities (KnotHolder *, SPItem *) |
virtual void | addCanvasIndicators (SPLPEItem const *lpeitem, std::vector< Geom::PathVector > &hp_vec) |
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. | |
Private Member Functions | |
LPEShowHandles (const LPEShowHandles &)=delete | |
LPEShowHandles & | operator= (const LPEShowHandles &)=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()) |
Private Attributes | |
BoolParam | nodes |
BoolParam | handles |
BoolParam | original_path |
BoolParam | original_d |
BoolParam | show_center_node |
ScalarParam | scale_nodes_and_handles |
double | stroke_width |
Geom::PathVector | outline_path |
![]() | |
Geom::Interval | boundingbox_X |
Geom::Interval | boundingbox_Y |
Definition at line 20 of file lpe-show_handles.h.
Inkscape::LivePathEffect::LPEShowHandles::LPEShowHandles | ( | LivePathEffectObject * | lpeobject | ) |
Definition at line 27 of file lpe-show_handles.cpp.
References handles, nodes, original_d, original_path, Inkscape::LivePathEffect::ScalarParam::param_set_digits(), Inkscape::LivePathEffect::ScalarParam::param_set_increments(), Inkscape::LivePathEffect::ScalarParam::param_set_range(), Inkscape::LivePathEffect::Effect::registerParameter(), scale_nodes_and_handles, show_center_node, and stroke_width.
|
overridedefault |
|
privatedelete |
|
overridevirtual |
Is performed each time before the effect is updated.
Reimplemented from Inkscape::LivePathEffect::Effect.
Definition at line 66 of file lpe-show_handles.cpp.
References stroke_width, SPStyle::stroke_width, and SPObject::style.
|
overrideprotectedvirtual |
Reimplemented from Inkscape::LivePathEffect::Effect.
Definition at line 71 of file lpe-show_handles.cpp.
References Geom::PathVector::begin(), Geom::PathVector::clear(), Inkscape::LivePathEffect::Effect::current_shape, SPShape::curveForEdit(), Geom::PathVector::empty(), Geom::PathVector::end(), generateHelperPath(), Geom::PathVector::insert(), original_d, original_path, outline_path, pathv_to_linear_and_cubic_beziers(), and Geom::PathVector::push_back().
|
overridevirtual |
Sets default styles to element this permanently remove.some styles of the element.
Reimplemented from Inkscape::LivePathEffect::Effect.
Definition at line 53 of file lpe-show_handles.cpp.
References css, item, sp_desktop_apply_css_recursive(), sp_repr_css_attr_new(), sp_repr_css_attr_unref(), and sp_repr_css_set_property().
|
virtual |
Definition at line 193 of file lpe-show_handles.cpp.
References outline_path, Geom::PathVector::push_back(), scale_nodes_and_handles, sp_svg_read_pathv(), and stroke_width.
Referenced by generateHelperPath().
|
virtual |
Definition at line 207 of file lpe-show_handles.cpp.
References Geom::Ray::angle(), Geom::Path::appendNew(), Geom::distance(), outline_path, Geom::PathVector::push_back(), scale_nodes_and_handles, Geom::Path::start(), and stroke_width.
Referenced by generateHelperPath().
|
virtual |
Definition at line 169 of file lpe-show_handles.cpp.
References Geom::Rotate::from_degrees(), Geom::NODE_CUSP, outline_path, Geom::PathVector::push_back(), scale_nodes_and_handles, show_center_node, sp_svg_read_pathv(), and stroke_width.
Referenced by generateHelperPath().
|
virtual |
Definition at line 105 of file lpe-show_handles.cpp.
References Geom::are_near(), drawHandle(), drawHandleLine(), drawNode(), Geom::Curve::finalPoint(), Geom::get_nodetype(), handles, Geom::Curve::initialPoint(), Geom::NODE_CUSP, nodes, and result.
Referenced by doEffect_path().
|
privatedelete |
|
private |
Definition at line 45 of file lpe-show_handles.h.
Referenced by generateHelperPath(), and LPEShowHandles().
|
private |
Definition at line 44 of file lpe-show_handles.h.
Referenced by generateHelperPath(), and LPEShowHandles().
|
private |
Definition at line 47 of file lpe-show_handles.h.
Referenced by doEffect_path(), and LPEShowHandles().
|
private |
Definition at line 46 of file lpe-show_handles.h.
Referenced by doEffect_path(), and LPEShowHandles().
|
private |
Definition at line 52 of file lpe-show_handles.h.
Referenced by doEffect_path(), drawHandle(), drawHandleLine(), and drawNode().
|
private |
Definition at line 49 of file lpe-show_handles.h.
Referenced by drawHandle(), drawHandleLine(), drawNode(), and LPEShowHandles().
|
private |
Definition at line 48 of file lpe-show_handles.h.
Referenced by drawNode(), and LPEShowHandles().
|
private |
Definition at line 50 of file lpe-show_handles.h.
Referenced by doBeforeEffect(), drawHandle(), drawHandleLine(), drawNode(), and LPEShowHandles().