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

#include <lpe-rough-hatches.h>

Inheritance diagram for Inkscape::LivePathEffect::LPERoughHatches:
Inkscape::LivePathEffect::Effect

Public Member Functions

 LPERoughHatches (LivePathEffectObject *lpeobject)
 
 ~LPERoughHatches () override
 
Geom::Piecewise< Geom::D2< Geom::SBasis > > doEffect_pwd2 (Geom::Piecewise< Geom::D2< Geom::SBasis > > const &pwd2_in) override
 
void doOnApply (SPLPEItem const *lpeitem) override
 Is performed a single time when the effect is freshly applied to a path.
 
void resetDefaults (SPItem const *item) override
 Sets all parameters to their default values and writes them to SVG.
 
void doBeforeEffect (SPLPEItem const *item) override
 Is performed each time before the effect is updated.
 
std::vector< double > generateLevels (Geom::Interval const &domain, double x_org)
 
std::vector< std::vector< Geom::Point > > linearSnake (Geom::Piecewise< Geom::D2< Geom::SBasis > > const &f, Geom::Point const &org)
 
Geom::Piecewise< Geom::D2< Geom::SBasis > > smoothSnake (std::vector< std::vector< Geom::Point > > const &linearSnake)
 
- 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)
 
virtual Gtk::Widget * newWidget ()
 This creates a managed widget.
 
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 ()
 

Private Member Functions

 LPERoughHatches (const LPERoughHatches &)=delete
 
LPERoughHatchesoperator= (const LPERoughHatches &)=delete
 

Private Attributes

double hatch_dist
 
RandomParam dist_rdm
 
ScalarParam growth
 
ScalarParam scale_tf
 
ScalarParam scale_tb
 
ScalarParam scale_bf
 
ScalarParam scale_bb
 
RandomParam top_edge_variation
 
RandomParam bot_edge_variation
 
RandomParam top_tgt_variation
 
RandomParam bot_tgt_variation
 
RandomParam top_smth_variation
 
RandomParam bot_smth_variation
 
BoolParam fat_output
 
BoolParam do_bend
 
ScalarParam stroke_width_top
 
ScalarParam stroke_width_bot
 
ScalarParam front_thickness
 
ScalarParam back_thickness
 
VectorParam direction
 
VectorParam bender
 

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 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 *)
 
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 27 of file lpe-rough-hatches.h.

Constructor & Destructor Documentation

◆ LPERoughHatches() [1/2]

◆ ~LPERoughHatches()

Inkscape::LivePathEffect::LPERoughHatches::~LPERoughHatches ( )
overridedefault

◆ LPERoughHatches() [2/2]

Inkscape::LivePathEffect::LPERoughHatches::LPERoughHatches ( const LPERoughHatches )
privatedelete

Member Function Documentation

◆ doBeforeEffect()

void Inkscape::LivePathEffect::LPERoughHatches::doBeforeEffect ( SPLPEItem const *  lpeitem)
overridevirtual

◆ doEffect_pwd2()

◆ doOnApply()

void Inkscape::LivePathEffect::LPERoughHatches::doOnApply ( SPLPEItem const *  lpeitem)
overridevirtual

Is performed a single time when the effect is freshly applied to a path.

Reimplemented from Inkscape::LivePathEffect::Effect.

Definition at line 283 of file lpe-rough-hatches.cpp.

References Inkscape::LivePathEffect::Effect::lpeversion, and Inkscape::LivePathEffect::HiddenParam::param_setValue().

◆ generateLevels()

std::vector< double > Inkscape::LivePathEffect::LPERoughHatches::generateLevels ( Geom::Interval const &  domain,
double  x_org 
)

◆ linearSnake()

std::vector< std::vector< Point > > Inkscape::LivePathEffect::LPERoughHatches::linearSnake ( Geom::Piecewise< Geom::D2< Geom::SBasis > > const &  f,
Geom::Point const &  org 
)

◆ operator=()

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

◆ resetDefaults()

◆ smoothSnake()

Member Data Documentation

◆ back_thickness

ScalarParam Inkscape::LivePathEffect::LPERoughHatches::back_thickness
private

Definition at line 67 of file lpe-rough-hatches.h.

Referenced by LPERoughHatches(), and smoothSnake().

◆ bender

VectorParam Inkscape::LivePathEffect::LPERoughHatches::bender
private

Definition at line 70 of file lpe-rough-hatches.h.

Referenced by doEffect_pwd2(), LPERoughHatches(), and resetDefaults().

◆ bot_edge_variation

RandomParam Inkscape::LivePathEffect::LPERoughHatches::bot_edge_variation
private

Definition at line 58 of file lpe-rough-hatches.h.

Referenced by doBeforeEffect(), LPERoughHatches(), resetDefaults(), and smoothSnake().

◆ bot_smth_variation

RandomParam Inkscape::LivePathEffect::LPERoughHatches::bot_smth_variation
private

Definition at line 62 of file lpe-rough-hatches.h.

Referenced by doBeforeEffect(), LPERoughHatches(), and smoothSnake().

◆ bot_tgt_variation

RandomParam Inkscape::LivePathEffect::LPERoughHatches::bot_tgt_variation
private

Definition at line 60 of file lpe-rough-hatches.h.

Referenced by doBeforeEffect(), LPERoughHatches(), and smoothSnake().

◆ direction

VectorParam Inkscape::LivePathEffect::LPERoughHatches::direction
private

Definition at line 69 of file lpe-rough-hatches.h.

Referenced by doEffect_pwd2(), LPERoughHatches(), and resetDefaults().

◆ dist_rdm

RandomParam Inkscape::LivePathEffect::LPERoughHatches::dist_rdm
private

Definition at line 52 of file lpe-rough-hatches.h.

Referenced by doBeforeEffect(), generateLevels(), and LPERoughHatches().

◆ do_bend

BoolParam Inkscape::LivePathEffect::LPERoughHatches::do_bend
private

Definition at line 64 of file lpe-rough-hatches.h.

Referenced by doEffect_pwd2(), and LPERoughHatches().

◆ fat_output

BoolParam Inkscape::LivePathEffect::LPERoughHatches::fat_output
private

Definition at line 64 of file lpe-rough-hatches.h.

Referenced by LPERoughHatches(), and smoothSnake().

◆ front_thickness

ScalarParam Inkscape::LivePathEffect::LPERoughHatches::front_thickness
private

Definition at line 67 of file lpe-rough-hatches.h.

Referenced by LPERoughHatches(), and smoothSnake().

◆ growth

ScalarParam Inkscape::LivePathEffect::LPERoughHatches::growth
private

Definition at line 53 of file lpe-rough-hatches.h.

Referenced by generateLevels(), and LPERoughHatches().

◆ hatch_dist

double Inkscape::LivePathEffect::LPERoughHatches::hatch_dist
private

Definition at line 51 of file lpe-rough-hatches.h.

Referenced by doEffect_pwd2(), generateLevels(), linearSnake(), and resetDefaults().

◆ scale_bb

ScalarParam Inkscape::LivePathEffect::LPERoughHatches::scale_bb
private

Definition at line 55 of file lpe-rough-hatches.h.

Referenced by LPERoughHatches(), and smoothSnake().

◆ scale_bf

ScalarParam Inkscape::LivePathEffect::LPERoughHatches::scale_bf
private

Definition at line 55 of file lpe-rough-hatches.h.

Referenced by LPERoughHatches(), and smoothSnake().

◆ scale_tb

ScalarParam Inkscape::LivePathEffect::LPERoughHatches::scale_tb
private

Definition at line 55 of file lpe-rough-hatches.h.

Referenced by LPERoughHatches(), and smoothSnake().

◆ scale_tf

ScalarParam Inkscape::LivePathEffect::LPERoughHatches::scale_tf
private

Definition at line 55 of file lpe-rough-hatches.h.

Referenced by LPERoughHatches(), and smoothSnake().

◆ stroke_width_bot

ScalarParam Inkscape::LivePathEffect::LPERoughHatches::stroke_width_bot
private

Definition at line 66 of file lpe-rough-hatches.h.

Referenced by LPERoughHatches(), and smoothSnake().

◆ stroke_width_top

ScalarParam Inkscape::LivePathEffect::LPERoughHatches::stroke_width_top
private

Definition at line 65 of file lpe-rough-hatches.h.

Referenced by LPERoughHatches(), and smoothSnake().

◆ top_edge_variation

RandomParam Inkscape::LivePathEffect::LPERoughHatches::top_edge_variation
private

Definition at line 57 of file lpe-rough-hatches.h.

Referenced by doBeforeEffect(), LPERoughHatches(), resetDefaults(), and smoothSnake().

◆ top_smth_variation

RandomParam Inkscape::LivePathEffect::LPERoughHatches::top_smth_variation
private

Definition at line 61 of file lpe-rough-hatches.h.

Referenced by doBeforeEffect(), LPERoughHatches(), and smoothSnake().

◆ top_tgt_variation

RandomParam Inkscape::LivePathEffect::LPERoughHatches::top_tgt_variation
private

Definition at line 59 of file lpe-rough-hatches.h.

Referenced by doBeforeEffect(), LPERoughHatches(), and smoothSnake().


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