Page 1 of 1

Trace polyline Tool

Posted: Tue May 09, 2017 8:42 am
by vinayan
hi Daniel,

I need the trace polyline tool activated from one of the actions in my plugin. Is this possible to call(I doubt this since this is on a MainWindow and I am not sure how to get a reference to Main Window from my plugin)? If not what should I look at for achieving this?

Re: Trace polyline Tool

Posted: Tue May 09, 2017 7:04 pm
by daniel
Hum, I don't see how you can do that. Your only option is to mimic the way this tool works in your own plugin...

Normally you shouldn't need to 'integrate' a tool that already exists in your own plugin (or at least I don't see how you envision this).

Re: Trace polyline Tool

Posted: Wed May 10, 2017 8:02 am
by vinayan
i kind of mimicked the tool in the end. I had to let the user draw a polyline on screen and have some event like onSketchFinished(Polyline). Anyway thanks for the reply.