lpe-transform_2pts.h revision 3d582ef6febed03712c97a2c5184f62c44b2ec57
#ifndef INKSCAPE_LPE_TRANSFORM_2PTS_H
#define INKSCAPE_LPE_TRANSFORM_2PTS_H
/** \file
* LPE "Transform through 2 points" implementation
*/
/*
* Authors:
*
*
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#if HAVE_CONFIG_H
# include "config.h"
#endif
#if defined(GLIBMM_DISABLE_DEPRECATED) && defined(HAVE_GLIBMM_THREADS_H)
# include <glibmm/threads.h>
#endif
#include "ui/widget/registered-widget.h"
#include "live_effects/effect.h"
#include "live_effects/parameter/pointreseteable.h"
#include "live_effects/lpegroupbbox.h"
namespace Inkscape {
namespace LivePathEffect {
class LPETransform2Pts : public Effect, GroupBBoxEffect {
public:
LPETransform2Pts(LivePathEffectObject *lpeobject);
virtual ~LPETransform2Pts();
virtual void doOnApply (SPLPEItem const* lpeitem);
virtual Geom::Piecewise<Geom::D2<Geom::SBasis> > doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd2_in);
virtual void doBeforeEffect (SPLPEItem const* lpeitem);
void updateIndex();
virtual Gtk::Widget *newWidget();
virtual void reset();
protected:
virtual void addCanvasIndicators(SPLPEItem const *lpeitem, std::vector<Geom::PathVector> &hp_vec);
private:
BoolParam fromOriginalWidth;
PointReseteableParam start;
PointReseteableParam end;
ScalarParam firstKnot;
ScalarParam lastKnot;
Geom::Point A;
Geom::Point B;
LPETransform2Pts(const LPETransform2Pts&);
LPETransform2Pts& operator=(const LPETransform2Pts&);
};
} //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 :