Hi David,
ok, for the freehand ROI:
See ImageCanvas.mouseDragged, it calls
Roi.handleMouseDrag, which calls (during the construction phase of the ROI)
FreehandRoi.grow. Finally, that's where the coordinates xp, yp are calculated.
If you want to create a plugin that records the mouse movement (while the button is down), it would be easiest if you create a PlugInTool and simply have a mouseDragged method that records the coordinates.
Michael
________________________________________________________________
On Jun 12, 2012, at 05:59, David Webster wrote:
> All,
>
> Could someone point me to the ImageJ API code that deals with reading the
> xy coordinates of the cursor as it is used to trace an ROI. I want the code
> the generates an xy coordinates list, not the creation of an ROI itself.
>
> David Webster
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html