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

#include <lpe-lattice2.h>

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

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 &paramA, PointParam &paramB, Geom::Line vert)
 
void horizontal (PointParam &paramA, PointParam &paramB, Geom::Line horiz)
 
void setDefaults ()
 
void onExpanderChanged ()
 
void resetGrid ()
 
- 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 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::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.
 
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.
 
- Protected Member Functions inherited from Inkscape::LivePathEffect::Effect
 Effect (LivePathEffectObject *lpeobject)
 
virtual Geom::PathVector doEffect_path (Geom::PathVector const &path_in)
 
void registerParameter (Parameter *param)
 
ParametergetNextOncanvasEditableParam ()
 
virtual void addKnotHolderEntities (KnotHolder *, SPItem *)
 

Private Member Functions

 LPELattice2 (const LPELattice2 &)=delete
 
LPELattice2operator= (const LPELattice2 &)=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

BoolParam horizontal_mirror
 
BoolParam vertical_mirror
 
BoolParam perimetral
 
BoolParam live_update
 
PointParam grid_point_0
 
PointParam grid_point_1
 
PointParam grid_point_2
 
PointParam grid_point_3
 
PointParam grid_point_4
 
PointParam grid_point_5
 
PointParam grid_point_6
 
PointParam grid_point_7
 
PointParam grid_point_8x9
 
PointParam grid_point_10x11
 
PointParam grid_point_12
 
PointParam grid_point_13
 
PointParam grid_point_14
 
PointParam grid_point_15
 
PointParam grid_point_16
 
PointParam grid_point_17
 
PointParam grid_point_18
 
PointParam grid_point_19
 
PointParam grid_point_20x21
 
PointParam grid_point_22x23
 
PointParam grid_point_24x26
 
PointParam grid_point_25x27
 
PointParam grid_point_28x30
 
PointParam grid_point_29x31
 
PointParam grid_point_32x33x34x35
 
bool expanded
 
Gtk::Expander * expander
 
- 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)
 
- 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
 
- 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 37 of file lpe-lattice2.h.

Constructor & Destructor Documentation

◆ LPELattice2() [1/2]

◆ ~LPELattice2()

Inkscape::LivePathEffect::LPELattice2::~LPELattice2 ( )
overridedefault

◆ LPELattice2() [2/2]

Inkscape::LivePathEffect::LPELattice2::LPELattice2 ( const LPELattice2 )
privatedelete

Member Function Documentation

◆ addCanvasIndicators()

void Inkscape::LivePathEffect::LPELattice2::addCanvasIndicators ( SPLPEItem const *  lpeitem,
std::vector< Geom::PathVector > &  hp_vec 
)
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.

◆ calculateCurve()

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().

◆ doBeforeEffect()

◆ doEffect_pwd2()

◆ horizontal()

void Inkscape::LivePathEffect::LPELattice2::horizontal ( PointParam paramA,
PointParam paramB,
Geom::Line  horiz 
)

◆ newWidget()

Gtk::Widget * Inkscape::LivePathEffect::LPELattice2::newWidget ( )
overridevirtual

◆ onExpanderChanged()

void Inkscape::LivePathEffect::LPELattice2::onExpanderChanged ( )

Definition at line 282 of file lpe-lattice2.cpp.

References expanded, and expander.

Referenced by newWidget().

◆ operator=()

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

◆ resetDefaults()

void Inkscape::LivePathEffect::LPELattice2::resetDefaults ( SPItem const *  item)
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().

◆ resetGrid()

◆ setDefaults()

◆ vertical()

void Inkscape::LivePathEffect::LPELattice2::vertical ( PointParam paramA,
PointParam paramB,
Geom::Line  vert 
)

Member Data Documentation

◆ expanded

bool Inkscape::LivePathEffect::LPELattice2::expanded
private

Definition at line 97 of file lpe-lattice2.h.

Referenced by newWidget(), and onExpanderChanged().

◆ expander

Gtk::Expander* Inkscape::LivePathEffect::LPELattice2::expander
private

Definition at line 98 of file lpe-lattice2.h.

Referenced by newWidget(), and onExpanderChanged().

◆ grid_point_0

PointParam Inkscape::LivePathEffect::LPELattice2::grid_point_0
private

◆ grid_point_1

PointParam Inkscape::LivePathEffect::LPELattice2::grid_point_1
private

◆ grid_point_10x11

PointParam Inkscape::LivePathEffect::LPELattice2::grid_point_10x11
private

◆ grid_point_12

PointParam Inkscape::LivePathEffect::LPELattice2::grid_point_12
private

◆ grid_point_13

PointParam Inkscape::LivePathEffect::LPELattice2::grid_point_13
private

◆ grid_point_14

PointParam Inkscape::LivePathEffect::LPELattice2::grid_point_14
private

◆ grid_point_15

PointParam Inkscape::LivePathEffect::LPELattice2::grid_point_15
private

◆ grid_point_16

PointParam Inkscape::LivePathEffect::LPELattice2::grid_point_16
private

◆ grid_point_17

PointParam Inkscape::LivePathEffect::LPELattice2::grid_point_17
private

◆ grid_point_18

PointParam Inkscape::LivePathEffect::LPELattice2::grid_point_18
private

◆ grid_point_19

PointParam Inkscape::LivePathEffect::LPELattice2::grid_point_19
private

◆ grid_point_2

PointParam Inkscape::LivePathEffect::LPELattice2::grid_point_2
private

◆ grid_point_20x21

PointParam Inkscape::LivePathEffect::LPELattice2::grid_point_20x21
private

◆ grid_point_22x23

PointParam Inkscape::LivePathEffect::LPELattice2::grid_point_22x23
private

◆ grid_point_24x26

PointParam Inkscape::LivePathEffect::LPELattice2::grid_point_24x26
private

◆ grid_point_25x27

PointParam Inkscape::LivePathEffect::LPELattice2::grid_point_25x27
private

◆ grid_point_28x30

PointParam Inkscape::LivePathEffect::LPELattice2::grid_point_28x30
private

◆ grid_point_29x31

PointParam Inkscape::LivePathEffect::LPELattice2::grid_point_29x31
private

◆ grid_point_3

PointParam Inkscape::LivePathEffect::LPELattice2::grid_point_3
private

◆ grid_point_32x33x34x35

PointParam Inkscape::LivePathEffect::LPELattice2::grid_point_32x33x34x35
private

◆ grid_point_4

PointParam Inkscape::LivePathEffect::LPELattice2::grid_point_4
private

◆ grid_point_5

PointParam Inkscape::LivePathEffect::LPELattice2::grid_point_5
private

◆ grid_point_6

PointParam Inkscape::LivePathEffect::LPELattice2::grid_point_6
private

◆ grid_point_7

PointParam Inkscape::LivePathEffect::LPELattice2::grid_point_7
private

◆ grid_point_8x9

PointParam Inkscape::LivePathEffect::LPELattice2::grid_point_8x9
private

◆ horizontal_mirror

BoolParam Inkscape::LivePathEffect::LPELattice2::horizontal_mirror
private

Definition at line 67 of file lpe-lattice2.h.

Referenced by doBeforeEffect(), and LPELattice2().

◆ live_update

BoolParam Inkscape::LivePathEffect::LPELattice2::live_update
private

Definition at line 70 of file lpe-lattice2.h.

Referenced by horizontal(), LPELattice2(), setDefaults(), and vertical().

◆ perimetral

BoolParam Inkscape::LivePathEffect::LPELattice2::perimetral
private

Definition at line 69 of file lpe-lattice2.h.

Referenced by addCanvasIndicators(), doBeforeEffect(), and LPELattice2().

◆ vertical_mirror

BoolParam Inkscape::LivePathEffect::LPELattice2::vertical_mirror
private

Definition at line 68 of file lpe-lattice2.h.

Referenced by doBeforeEffect(), and LPELattice2().


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