X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Flive_effects%2Flpe-curvestitch.h;h=a0050760ceb750c3a3677b8b163d0deb5016e82b;hb=00b090b634756cdf4b9c01dfffc76c2e2ed0ae0d;hp=571996a7cc89f770c157deb6757a9193ec960de4;hpb=28d8fa1e12582d875e115bd439d35c5b6ab56259;p=inkscape.git diff --git a/src/live_effects/lpe-curvestitch.h b/src/live_effects/lpe-curvestitch.h index 571996a7c..a0050760c 100644 --- a/src/live_effects/lpe-curvestitch.h +++ b/src/live_effects/lpe-curvestitch.h @@ -1,46 +1,54 @@ -#ifndef INKSCAPE_LPE_EXPRESSION_H -#define INKSCAPE_LPE_EXPRESSION_H - -/** \file - * Implementation of an effect similar to Expression, see lpe-expression.cpp - */ - -/* - * Authors: - * Johan Engelen -* -* Copyright (C) Johan Engelen 2007 - * - * Released under GNU GPL, read the file 'COPYING' for more information - */ - -#include "live_effects/effect.h" -#include "live_effects/parameter/path.h" -#include "live_effects/parameter/parameter.h" -#include "live_effects/parameter/bool.h" - -namespace Inkscape { -namespace LivePathEffect { - -class LPECurveStitch : public Effect { -public: - LPECurveStitch(LivePathEffectObject *lpeobject); - ~LPECurveStitch(); - - std::vector doEffect (std::vector & path_in); - -private: - PathParam strokepath; - ScalarParam nrofpaths; - ScalarParam startpoint_variation; - ScalarParam endpoint_variation; - BoolParam scale_y; - - LPECurveStitch(const LPECurveStitch&); - LPECurveStitch& operator=(const LPECurveStitch&); -}; - -} //namespace LivePathEffect -} //namespace Inkscape - -#endif +#ifndef INKSCAPE_LPE_CURVESTITCH_H +#define INKSCAPE_LPE_CURVESTITCH_H + +/** \file + * Implementation of the curve stitch effect, see lpe-curvestitch.cpp + */ + +/* + * Authors: + * Johan Engelen +* +* Copyright (C) Johan Engelen 2007 + * + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +#include "live_effects/effect.h" +#include "live_effects/parameter/path.h" +#include "live_effects/parameter/parameter.h" +#include "live_effects/parameter/bool.h" +#include "live_effects/parameter/random.h" + +namespace Inkscape { +namespace LivePathEffect { + +class LPECurveStitch : public Effect { +public: + LPECurveStitch(LivePathEffectObject *lpeobject); + virtual ~LPECurveStitch(); + + virtual std::vector doEffect_path (std::vector & path_in); + + virtual void resetDefaults(SPItem * item); + + virtual void transform_multiply(Geom::Matrix const& postmul, bool set); + +private: + PathParam strokepath; + ScalarParam nrofpaths; + RandomParam startpoint_edge_variation; + RandomParam startpoint_spacing_variation; + RandomParam endpoint_edge_variation; + RandomParam endpoint_spacing_variation; + ScalarParam prop_scale; + BoolParam scale_y_rel; + + LPECurveStitch(const LPECurveStitch&); + LPECurveStitch& operator=(const LPECurveStitch&); +}; + +} //namespace LivePathEffect +} //namespace Inkscape + +#endif