fndpnt | Find a graphical object for a specified point |
<graphic> | name of the graphic structure |
<x> <y> | x and y values, normally between [0,1] |
fndreg | Find graphical objects inside a specified region |
<graphic> | name of the graphic structure |
< > < > ... < > < > | (x, y) pairs |
These commands are used to return the identifiers of graphical objects, which are close to a specified point or inside a spcified region. The result actually contains the identifiers of the owners of those objects. Neurons' id numbers, for instance.
The objects are located from a low level image and, thus, the coordinates given to the command are typically in the space . In practice, points for this procedure are received from mouse events.
Example: A graphic structure has been created and layer 2 selected to be displayed. Then the topmost object for the point (0.2, 0.2) is located. Secondly, all the objects with different owners are located from the region, which is located in the bottom-left corner of the graphic structure. See also the second example in section 2.13. You should first run the example `ex7.4' and then apply commands fndpnt and fndreg.
... NDA> mkgrp grp1 -s s1 NDA> layer grp1 -l 2 ... # Locate the topmost neuron from point (0.2, 0.2). NDA> fndpnt grp1 0.2 0.2 5 ... # Locate neurons from a given region NDA> fndreg grp1 0.1 0.1 0.5 0.1 0.5 0.5 0.1 0.5 8 6 5 7 ...