Bob wrote:
> Q: What EXACTLY is causing restrict to turn on the hbonds?

Here is what it looks like to me:


restrict is calling

  viewer.setShapeSize(SHAPE_HSTICKS, 0);

AminoPolymer.calcHydrogenBonds() is being called several times from
several different places in the code.

running Hsticks.setSize causes frame.calcHbonds to run.
This leads to AminoPolymer.calcHydrogenBonds() being run.
This runs once, because then the 'hbondsAlreadyCalculated' flag is set.

But in trunk200603 the behavior may have been different in this case if
the shape was not already loaded.

Separately, if there are no secondary structures defined in the file, then
trying to display any secondary structures will cause
AminoPolymer.calcHydrogenBonds() being called ... because the hydrogen
bonds are used to try to calculate the structures.


Miguel



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to