Hi!
In reply to my own email from yesterday - To fix this issue the
setShapeSize and
setShapeProperty methods in
org.jmol.viewer.ModelManager
need to be declared as synchronized.
If this is correct, could somebody with write permission commit this to
cvs?
Thanks,
Andreas
On 12 Jan 2006, at 20:24, Andreas Prlic wrote:
Hi!
I noticed an issue when doing mutiple JmolSimpleViewer.evalString() +
selections.
It seems some of the sent rasmol commands are skipped/lost.
An example how this occurs is when using the integration.java as
shown in the examples,
load a protein structure and send a few scripting commands:
public static void main(String[] argv) {
JFrame frame = new JFrame("Hello");
frame.addWindowListener(new ApplicationCloser());
Container contentPane = frame.getContentPane();
JmolPanel jmolPanel = new JmolPanel();
contentPane.add(jmolPanel);
frame.setSize(300, 300);
frame.setVisible(true);
JmolSimpleViewer viewer = jmolPanel.getViewer();
viewer.openFile("/Users/ap3/WORK/PDB/1tim.pdb");
String strError = viewer.getOpenFileError();
if (strError != null)
System.out.println(strError);
viewer.evalString("select *; spacefill on; ");
viewer.evalString("select *; spacefill off; backbone off;
wireframe off;");
viewer.evalString("select *; cartoon on;");
}
I would expect to see a cartoon only structure in the end, but
surprisingly it is in spacefill mode.
If the 2nd and 3rd select statement are removed it is working o.k., -
but it should not be wrong to have the selects, is it?
Any ideas?
Thank you,
Andreas
-----------------------------------------------------------------------
Andreas Prlic Wellcome Trust Sanger Institute
Hinxton, Cambridge CB10 1SA, UK
+44 (0) 1223 49 6891
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers
-----------------------------------------------------------------------
Andreas Prlic Wellcome Trust Sanger Institute
Hinxton, Cambridge CB10 1SA, UK
+44 (0) 1223 49 6891
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers