X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Flive_effects%2Flpe-rough-hatches.h;h=cbc3c3b26d9d19debeb7064d45daecd1eaa7b4ea;hb=62dad53172661dfa1ef8dd3ed07e06d2ea2523a4;hp=816955e4d1050b4164efbf7b85cc205d0e334bdd;hpb=b45c97a239397bed144bc7922ee8cc5664d2dcc7;p=inkscape.git diff --git a/src/live_effects/lpe-rough-hatches.h b/src/live_effects/lpe-rough-hatches.h index 816955e4d..cbc3c3b26 100644 --- a/src/live_effects/lpe-rough-hatches.h +++ b/src/live_effects/lpe-rough-hatches.h @@ -1,78 +1,78 @@ -#ifndef INKSCAPE_LPE_ROUGH_HATCHES_H -#define INKSCAPE_LPE_ROUGH_HATCHES_H - -/** \file - * Fills an area with rough hatches. - */ - -/* - * Authors: - * JFBarraud - * - * Copyright (C) JF Barraud 2008. - * - * Released under GNU GPL, read the file 'COPYING' for more information - */ - -#include "live_effects/effect.h" -#include "live_effects/parameter/point.h" -#include "live_effects/parameter/parameter.h" -#include "live_effects/parameter/bool.h" -#include "live_effects/parameter/random.h" -#include "live_effects/parameter/vector.h" - -namespace Inkscape { -namespace LivePathEffect { - -class LPERoughHatches : public Effect { -public: - LPERoughHatches(LivePathEffectObject *lpeobject); - virtual ~LPERoughHatches(); - - virtual Geom::Piecewise > - doEffect_pwd2 (Geom::Piecewise > const & pwd2_in); - - virtual void resetDefaults(SPItem * item); - - virtual void doBeforeEffect(SPLPEItem * item); - - std::vector - generateLevels(Geom::Interval const &domain, double x_org); - - std::vector > - linearSnake(Geom::Piecewise > const &f, Geom::Point const &org); - - Geom::Piecewise > - smoothSnake(std::vector > const &linearSnake); - -private: - double hatch_dist; - RandomParam dist_rdm; - ScalarParam growth; - //topfront,topback,bottomfront,bottomback handle scales. - ScalarParam scale_tf, scale_tb, scale_bf, 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, do_bend; - ScalarParam stroke_width_top; - ScalarParam stroke_width_bot; - ScalarParam front_thickness, back_thickness; - - //PointParam bender; - VectorParam direction; - VectorParam bender; - - LPERoughHatches(const LPERoughHatches&); - LPERoughHatches& operator=(const LPERoughHatches&); -}; - -} //namespace LivePathEffect -} //namespace Inkscape - -#endif +#ifndef INKSCAPE_LPE_ROUGH_HATCHES_H +#define INKSCAPE_LPE_ROUGH_HATCHES_H + +/** \file + * Fills an area with rough hatches. + */ + +/* + * Authors: + * JFBarraud + * + * Copyright (C) JF Barraud 2008. + * + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +#include "live_effects/effect.h" +#include "live_effects/parameter/point.h" +#include "live_effects/parameter/parameter.h" +#include "live_effects/parameter/bool.h" +#include "live_effects/parameter/random.h" +#include "live_effects/parameter/vector.h" + +namespace Inkscape { +namespace LivePathEffect { + +class LPERoughHatches : public Effect { +public: + LPERoughHatches(LivePathEffectObject *lpeobject); + virtual ~LPERoughHatches(); + + virtual Geom::Piecewise > + doEffect_pwd2 (Geom::Piecewise > const & pwd2_in); + + virtual void resetDefaults(SPItem * item); + + virtual void doBeforeEffect(SPLPEItem * item); + + std::vector + generateLevels(Geom::Interval const &domain, double x_org); + + std::vector > + linearSnake(Geom::Piecewise > const &f, Geom::Point const &org); + + Geom::Piecewise > + smoothSnake(std::vector > const &linearSnake); + +private: + double hatch_dist; + RandomParam dist_rdm; + ScalarParam growth; + //topfront,topback,bottomfront,bottomback handle scales. + ScalarParam scale_tf, scale_tb, scale_bf, 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, do_bend; + ScalarParam stroke_width_top; + ScalarParam stroke_width_bot; + ScalarParam front_thickness, back_thickness; + + //PointParam bender; + VectorParam direction; + VectorParam bender; + + LPERoughHatches(const LPERoughHatches&); + LPERoughHatches& operator=(const LPERoughHatches&); +}; + +} //namespace LivePathEffect +} //namespace Inkscape + +#endif