new contact map functions
|Opened on:||Tuesday, August 19, 2014 - 02:53|
|Last modified:||Sunday, October 9, 2016 - 07:15|
As proposed for the 2014/8/19 devchat:
Selecting all contacts in the contact map tends to result in "too much information" to be useful. Manually selecting individual contacts is time-consuming and error-prone. (It's easy to accidentally select points that are not in contact.)
A script can find contact points and band them. The bands can then guide manually or scripted folding. For manual folding, however, the bands present problems. It's easy to close a band by accident, and bands take up more space than the "selected contact" lines.
A new contactmap function, contactmap.Select ( segment1, segment2 ) would allow a script to select a contact, similar to clicking a cell on the contact map. The function could return boolean, integer to indicate whether the two segments are in contact (false if no contact) and the heat of the contact.
A complementary function, contactmap.Deselect ( segment1, segment2 ) should be included to undo the select. Similarly, contactmap.DeselectAll () might also be useful.
Just for logical consistency, contactmap.SelectAll ( noContact ) might be included, where noContact is boolean, true indicating that only point not already in contact should be selected, and the default false indicating that all contacts should be selected.
A function contactmap.GetDistance ( segment1, segment2 ) might be provided as convenience, although this information is already available to scripts through other calls.