Select shapes using a graphical interface.
g=uiselect(f)
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])
The UISELECT function brings up a shape selection form similar to the IMAT Function selection form, listing all elements of the imat_shp. The user can select elements of f, then click on 'OK'. The selected elements are returned in the output argument g. If a title string is provided, it is used to name the function selection window. If a numeric vector is provided, the shapes corresponding to the indices in the vector will be preselected when the form is displayed. The optional second output argument shpind will contain the indices into f of the shapes selected and returned in g. The attributes listed in the attribute columns on the form will default to the attributes set by SETDISPLAY. Alternately, you can specify them by passing in a cell array of strings of attributes to display.
The optional input string 'adfsel' will enable and display the ADF Selection button on the form. It is not displayed by default.
If the user clicks on 'Cancel', then g=-1 is returned.
The shape selection window also provides a button named "ADF Selection". The "ADF Selection" button brings up a file dialog, and displays the shapes from the selected ADF to the shape selection form.