Select shapes using a graphical interface.
g=uiselect(f)
[g,shpind,attrib,zfilt]=uiselect(f,title,presel,filter,attrib,'adfsel')
g=uiselect(f,'Title')
g=uiselect(f,[presel])
g=uiselect(f,'adfsel')
g=uiselect(f,{'Attrib1','Attrib2','Attrib3'})
[g,shpind]=uiselect(f)
[g,shpind]=uiselect(f,'Title',[presel])
UISELECT brings up a shape selection form, listing all elements of the imat_shp F. The user can select shapes of F, then click on 'Okay'. The selected shapes are returned in G. If the user clicks on 'Cancel', then G = -1 is returned.
Five optional input arguments are supported. TITLE allows you to set the shape selection dialog title. PRESEL is a numeric vector defining a list of shapes in F to be preselected on the form. FILTER is an imat_filt. If supplied, the filter will automatically be toggled on and UISELECT will display the filtered list of shapes. If PRESEL is also supplied, FILTER is applied after PRESEL. ATTRIB is a cell array of strings containing the names of the attributes to be displayed. The optional input string 'adfsel' will enable and display the ADF Selection button on the form. It is not displayed by default.
Four output arguments are supported. G contains the selected shapes. FNIND is a numeric vector containing indices into F for the shapes returned in G. ATTRIB is a cell array of strings containing the names of the displayed attributes. ZFILT is the currently applied filter (empty if none was applied).
imat_fn/uiselect, imat_filt/uiselect, imat_result/uiselect, imat_ctrace/uiselect, imat_fn/setdisplay