()
| 1992 | } |
| 1993 | |
| 1994 | void getCursorLoc() { |
| 1995 | Variable x = getFirstVariable(); |
| 1996 | Variable y = getNextVariable(); |
| 1997 | Variable z = getNextVariable(); |
| 1998 | Variable flags = getLastVariable(); |
| 1999 | ImagePlus imp = getImage(); |
| 2000 | ImageCanvas ic = imp.getCanvas(); |
| 2001 | if (ic==null) return; |
| 2002 | Point p = ic.getCursorLoc(); |
| 2003 | x.setValue(p.x); |
| 2004 | y.setValue(p.y); |
| 2005 | z.setValue(imp.getCurrentSlice()-1); |
| 2006 | Roi roi = imp.getRoi(); |
| 2007 | flags.setValue(ic.getModifiers()+((roi!=null)&&roi.contains(p.x,p.y)?32:0)); |
| 2008 | } |
| 2009 | |
| 2010 | void getLine() { |
| 2011 | Variable vx1 = getFirstVariable(); |
no test coverage detected