Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::LivePathEffect::LPECloneOriginal Class Reference

#include <lpe-clone-original.h>

Inheritance diagram for Inkscape::LivePathEffect::LPECloneOriginal:
Inkscape::LivePathEffect::Effect Inkscape::LivePathEffect::GroupBBoxEffect

Public Member Functions

 LPECloneOriginal (LivePathEffectObject *lpeobject)
 
 ~LPECloneOriginal () override
 
void doEffect (Geom::PathVector &curve) override
 
void doBeforeEffect (SPLPEItem const *lpeitem) override
 Is performed each time before the effect is updated.
 
bool doOnOpen (SPLPEItem const *lpeitem) override
 Is performed on load document or revert If the item is fixed legacy return true.
 
void doOnRemove (SPLPEItem const *) override
 
bool getHolderRemove () override
 
Gtk::Widget * newWidget () override
 This creates a managed widget.
 
- Public Member Functions inherited from Inkscape::LivePathEffect::Effect
virtual ~Effect ()
 
 Effect (const Effect &)=delete
 
Effectoperator= (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
 
SPShapegetCurrentShape () 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 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::PathVectorgetCanvasIndicators (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::NodegetRepr ()
 
SPDocumentgetSPDoc ()
 
LivePathEffectObjectgetLPEObj ()
 
LivePathEffectObject const * getLPEObj () const
 
ParametergetParameter (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.
 

Public Attributes

OriginalSatelliteParam linkeditem
 
- Public Attributes inherited from Inkscape::LivePathEffect::Effect
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
 
SPLPEItemsp_lpe_item = nullptr
 
SPShapecurrent_shape
 
std::vector< Parameter * > param_vector
 

Private Member Functions

void syncOriginal ()
 
void cloneAttributes (SPObject *origin, SPObject *dest, const gchar *attributes, const gchar *css_properties, bool init)
 
 LPECloneOriginal (const LPECloneOriginal &)=delete
 
LPECloneOriginaloperator= (const LPECloneOriginal &)=delete
 
- Private Member Functions inherited from Inkscape::LivePathEffect::GroupBBoxEffect
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

EnumParam< Clonelpemethodmethod
 
TextParam attributes
 
TextParam css_properties
 
BoolParam allow_transforms
 
Glib::ustring old_attributes
 
Glib::ustring old_css_properties
 
Glib::ustring linked
 
bool sync
 
bool holderRemove = false
 
- Private Attributes inherited from Inkscape::LivePathEffect::GroupBBoxEffect
Geom::Interval boundingbox_X
 
Geom::Interval boundingbox_Y
 

Additional Inherited Members

- Static Public Member Functions inherited from Inkscape::LivePathEffect::Effect
static EffectNew (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)
 
- Protected Member Functions inherited from Inkscape::LivePathEffect::Effect
 Effect (LivePathEffectObject *lpeobject)
 
virtual Geom::PathVector doEffect_path (Geom::PathVector const &path_in)
 
virtual Geom::Piecewise< Geom::D2< Geom::SBasis > > doEffect_pwd2 (Geom::Piecewise< Geom::D2< Geom::SBasis > > const &pwd2_in)
 
void registerParameter (Parameter *param)
 
ParametergetNextOncanvasEditableParam ()
 
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.
 
- Protected Attributes inherited from Inkscape::LivePathEffect::Effect
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::PointselectedNodesPoints
 
Inkscape::UI::Widget::Registry wr
 

Detailed Description

Definition at line 23 of file lpe-clone-original.h.

Constructor & Destructor Documentation

◆ LPECloneOriginal() [1/2]

◆ ~LPECloneOriginal()

Inkscape::LivePathEffect::LPECloneOriginal::~LPECloneOriginal ( )
overridedefault

◆ LPECloneOriginal() [2/2]

Inkscape::LivePathEffect::LPECloneOriginal::LPECloneOriginal ( const LPECloneOriginal )
privatedelete

Member Function Documentation

◆ cloneAttributes()

◆ doBeforeEffect()

◆ doEffect()

void Inkscape::LivePathEffect::LPECloneOriginal::doEffect ( Geom::PathVector curve)
overridevirtual

◆ doOnOpen()

bool Inkscape::LivePathEffect::LPECloneOriginal::doOnOpen ( SPLPEItem const *  lpeitem)
overridevirtual

◆ doOnRemove()

◆ getHolderRemove()

◆ newWidget()

Gtk::Widget * Inkscape::LivePathEffect::LPECloneOriginal::newWidget ( )
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 114 of file lpe-clone-original.cpp.

References Inkscape::UI::pack_start(), Inkscape::LivePathEffect::Parameter::param_getTooltip(), Inkscape::LivePathEffect::Parameter::param_newWidget(), Inkscape::LivePathEffect::Effect::param_vector, and syncOriginal().

◆ operator=()

LPECloneOriginal & Inkscape::LivePathEffect::LPECloneOriginal::operator= ( const LPECloneOriginal )
privatedelete

◆ syncOriginal()

Member Data Documentation

◆ allow_transforms

BoolParam Inkscape::LivePathEffect::LPECloneOriginal::allow_transforms
private

Definition at line 39 of file lpe-clone-original.h.

Referenced by cloneAttributes(), and LPECloneOriginal().

◆ attributes

TextParam Inkscape::LivePathEffect::LPECloneOriginal::attributes
private

Definition at line 37 of file lpe-clone-original.h.

Referenced by cloneAttributes(), doBeforeEffect(), and LPECloneOriginal().

◆ css_properties

TextParam Inkscape::LivePathEffect::LPECloneOriginal::css_properties
private

Definition at line 38 of file lpe-clone-original.h.

Referenced by cloneAttributes(), doBeforeEffect(), and LPECloneOriginal().

◆ holderRemove

bool Inkscape::LivePathEffect::LPECloneOriginal::holderRemove = false
private

Definition at line 47 of file lpe-clone-original.h.

Referenced by doOnRemove(), and getHolderRemove().

◆ linked

Glib::ustring Inkscape::LivePathEffect::LPECloneOriginal::linked
private

Definition at line 42 of file lpe-clone-original.h.

Referenced by doBeforeEffect(), and LPECloneOriginal().

◆ linkeditem

OriginalSatelliteParam Inkscape::LivePathEffect::LPECloneOriginal::linkeditem

◆ method

EnumParam<Clonelpemethod> Inkscape::LivePathEffect::LPECloneOriginal::method
private

Definition at line 36 of file lpe-clone-original.h.

Referenced by cloneAttributes(), doEffect(), LPECloneOriginal(), and syncOriginal().

◆ old_attributes

Glib::ustring Inkscape::LivePathEffect::LPECloneOriginal::old_attributes
private

Definition at line 40 of file lpe-clone-original.h.

Referenced by cloneAttributes(), and doBeforeEffect().

◆ old_css_properties

Glib::ustring Inkscape::LivePathEffect::LPECloneOriginal::old_css_properties
private

Definition at line 41 of file lpe-clone-original.h.

Referenced by cloneAttributes(), and doBeforeEffect().

◆ sync

bool Inkscape::LivePathEffect::LPECloneOriginal::sync
private

The documentation for this class was generated from the following files: