diff options
Diffstat (limited to 'src/live_effects/lpe-path_length.h')
-rw-r--r-- | src/live_effects/lpe-path_length.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/src/live_effects/lpe-path_length.h b/src/live_effects/lpe-path_length.h new file mode 100644 index 0000000..115bf5c --- /dev/null +++ b/src/live_effects/lpe-path_length.h @@ -0,0 +1,56 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +#ifndef INKSCAPE_LPE_PATH_LENGTH_H +#define INKSCAPE_LPE_PATH_LENGTH_H + +/** \file + * LPE <path_length> implementation. + */ + +/* + * Authors: + * Maximilian Albert <maximilian.albert@gmail.com> + * + * Copyright (C) 2007-2008 Authors + * + * Released under GNU GPL v2+, read the file 'COPYING' for more information. + */ + +#include "live_effects/effect.h" +#include "live_effects/parameter/text.h" +#include "live_effects/parameter/unit.h" +#include "live_effects/parameter/bool.h" + +namespace Inkscape { +namespace LivePathEffect { + +class LPEPathLength : public Effect { +public: + LPEPathLength(LivePathEffectObject *lpeobject); + ~LPEPathLength() override; + + Geom::Piecewise<Geom::D2<Geom::SBasis> > doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd2_in) override; + +private: + LPEPathLength(const LPEPathLength&) = delete; + LPEPathLength& operator=(const LPEPathLength&) = delete; + ScalarParam scale; + TextParamInternal info_text; + UnitParam unit; + BoolParam display_unit; +}; + +} //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 : |