/** @file * @brief PowerStroke LPE effect, see lpe-powerstroke.cpp. */ /* Authors: * Johan Engelen * * Copyright (C) 2010-2011 Authors * * Released under GNU GPL, read the file 'COPYING' for more information */ #ifndef INKSCAPE_LPE_POWERSTROKE_H #define INKSCAPE_LPE_POWERSTROKE_H #include "live_effects/parameter/enum.h" #include "live_effects/effect.h" #include "live_effects/parameter/bool.h" #include "live_effects/parameter/powerstrokepointarray.h" namespace Inkscape { namespace LivePathEffect { class LPEPowerStroke : public Effect { public: LPEPowerStroke(LivePathEffectObject *lpeobject); virtual ~LPEPowerStroke(); virtual std::vector doEffect_path (std::vector const & path_in); virtual void doOnApply(SPLPEItem *lpeitem); // methods called by path-manipulator upon edits void adjustForNewPath(std::vector const & path_in); PowerStrokePointArrayParam offset_points; private: BoolParam sort_points; EnumParam interpolator_type; ScalarParam interpolator_beta; EnumParam start_linecap_type; EnumParam linejoin_type; ScalarParam miter_limit; EnumParam end_linecap_type; LPEPowerStroke(const LPEPowerStroke&); LPEPowerStroke& operator=(const LPEPowerStroke&); }; } //namespace LivePathEffect } //namespace Inkscape #endif /* Local Variables: mode:c++ c-file-style:"stroustrup" c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +)) indent-tabs-mode:nil fill-column:99 End: */ // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :