Hi Miguel,
I'm currently developing an AJAX web service that uses Jmol to view
an overlay of PDB conformers generated on a server.
I've been working on a Javascript that includes a loop similar to the
following:
- XMLHTTP server request for newly generated model
- append new model to string containing all previous models
- get view
- loadInline(concatenated model)
- Jmol script call to set view to the previous and to restore the
previous rendering style
- repeat
There are several things that would dramatically simplify development
on my end.
First, from looking at the Jmol source, I think that it should be
relatively easy to modify PdbReader.java to add support for appending
a new model to an existing set of models. If you could add a
Javascript call to the API and a 'appendAtomSetCollection' method
(based on readAtomSetCollection), I wouldn't have to build the multi-
model file in the browser's Javascript memory and Jmol wouldn't have
to continually reload the entire set of models with every update. It
would also save me from having to capture and reset the orientation
and rendering format on every reload.
Second, all of the Jmol scripting functions seem to be asynchronous.
This is good because the script doesn't have to wait for Jmol to
complete a call before proceeding but it raises severe timing issues.
Right now, I've had to resort to an ugly messageCallback Javascript.
It'd be great if there were an option to change all of the applet
calls so that they would automatically be enqueued and executed in-
order.
Finally, it'd be nice if there was a simple way to change the
callback function with a Javascript call. As far as I understand, the
only way to do that now is to set the callback to a wrapper function
then to use the wrapper to dispatch the call to a specific listener
or method (note that this would be unnecessary (for me, at least)
with guaranteed in-order execution).
If you can do any of the above or have any suggestions, I'd greatly
appreciate it.
Thanks,
Scott
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers