index d8049c176d7ae193770cd1edca90746fabcd37d3..8d9622c672cf95d888c8685fddf14ec6f081491a 100644 (file)
namespace Inkscape {
namespace LivePathEffect {
+namespace TtC {
+ // we need a separate namespace to avoid clashes with LPEPerpBisector
+ class KnotHolderEntityLeftEnd;
+ class KnotHolderEntityRightEnd;
+ class KnotHolderEntityAttachPt;
+}
+
class LPETangentToCurve : public Effect {
public:
LPETangentToCurve(LivePathEffectObject *lpeobject);
virtual Geom::Piecewise<Geom::D2<Geom::SBasis> >
doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd2_in);
- /* the knotholder functions must be declared friends */
- friend NR::Point attach_pt_get(SPItem *item);
- friend void attach_pt_set(SPItem *item, NR::Point const &p, NR::Point const &origin, guint state);
+ virtual LPEPathFlashType pathFlashType() { return PERMANENT_FLASH; }
+
+ /* the knotholder entity classes must be declared friends */
+ friend class TtC::KnotHolderEntityLeftEnd;
+ friend class TtC::KnotHolderEntityRightEnd;
+ friend class TtC::KnotHolderEntityAttachPt;
private:
+ ScalarParam angle;
+
ScalarParam t_attach;
+ ScalarParam length_left;
+ ScalarParam length_right;
- Geom::Point ptA;
+ Geom::Point ptA; // point of attachment to the curve
Geom::Point derivA;
+ Geom::Point C; // left end of tangent
+ Geom::Point D; // right end of tangent
+
LPETangentToCurve(const LPETangentToCurve&);
LPETangentToCurve& operator=(const LPETangentToCurve&);
};