next up previous contents
Next: Executing macros according to Up: Commands for working with Previous: Generating a low level

Finding objects from a graphic structure

  

tabular2805

The commands are used to return the identifiers of the graphical objects which match to either a given point or a given region. The result actually includes the identifiers of objects' owners, for instance, neurons' id-numbers.

The objects are found from a low level image and, thus, the coordinates given to the command are typically in the space tex2html_wrap_inline6564 . In practice, points to this procedure are got by mouse events.

Example: A graphic structure has been created and the layer 2 is selected to be displayed. Then the topmost object for the point (0.2,0.2) is found. Secondly, all the objects with different owners are found from the region which is located in the left-bottom corner of the graphic structure. (See also the second example in Section 2.15.) Run first the example `ex7.4' and then apply the commands fndpnt and fndreg.

...
NDA> mkgrp grp1 -s s1
NDA> layer grp1 -l 2
...
# find the topmost neuron from point (0.2, 0.2).
NDA> fndpnt grp1 0.2 0.2
5
...
# find 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
...



Erkki Hakkinen
Thu Sep 24 11:51:34 EET DST 1998