Hi Johan,
Perfect! Thanks for the quick answer!
-Ralph
-----Original Message----- From: Johan Engelen [mailto:jbc.engelen@...2592...] Sent: Thursday, June 02, 2011 3:50 PM To: inkscape-devel@lists.sourceforge.net Subject: Re: [Inkscape-devel] How to get path label/id
Hi Ralph,
By design, LPEs do not know about SVG objects and all that. An LPE just receives a path (the actual path data only) and should output a path. However, a trick was implemented to allow for some special LPEs that need a bit more information. Have a look at Effect::doBeforeEffect, which is called before doEffect and receives the item on which the LPE is applied (LPEBendPath uses it for example). Careful though: test whether your stuff works when the LPE
is applied on a group!
Ciao, Johan
On 2-6-2011 15:47, Skinner, Ralph wrote:
Hi,
I'm writing a Live Path Effect, and I'm trying to get the label and/or id of the path to which the effect is being applied. I tried this in
the
'doEffect' method:
Effect::doEffect_pwd2 (Geom::Piecewise<Geom::D2Geom::SBasis > const
&
pwd2_in) { LivePathEffectObject *myLPE =
(LivePathEffectObject*)this->getLPEObj();
myLPE->defaultLabel(); ...
...but of course this returns the label of the path effect, not the
path
itself.
Any suggestions?
Thanks!
------------------------------------------------------------------------ ------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
"Misys" is the trade name for Misys plc (registered in England and Wales). Registration Number: 01360027. Registered office: One Kingdom Street, London W2 6BL, United Kingdom. For a list of Misys group operating companies please go to http://www.misys.com/corp/About_Us/misys_operating_companies.html. This email and any attachments have been scanned for known viruses using multiple scanners. This email message is intended for the named recipient only. It may be privileged and/or confidential. If you are not the named recipient of this email please notify us immediately and do not copy it or use it for any purpose, nor disclose its contents to any other person. This email does not constitute the commencement of legal relations between you and Misys plc. Please refer to the executed contract between you and the relevant member of the Misys group for the identity of the contracting party with which you are dealing.