On Nov 5, 2004, at 9:29 AM, Miguel wrote:
Rene wrote:
Tomorrow is over, so here is the reminder :-)That seems quite reasonable. If I don't send you something tomorrow then send me a reminder.
I have added JmolViewer.evalStringQuiet ... which will not output 'Script
completed' at the end. It is now used for menus and popup menus.
Nice, thank you.
I mentioned this in a later message, but I was wondering whether it would be possible to have a method that will animate a list of AtomSets, stored in an array of AtomSetIndices?
You are talking about 'animation', not 'vibration' ... correct?
Indeed animation.
I am having a hard time context switching between them.
To me an animation is a sequence of frames, while a vibration is the visualization of vector information in a single frame, where I use the term frame as the 'frame' in the scripting language, which I think is equivalent to a Model or AtomSet. Still with me? :-)
What is the example of wanting to animate a series of AtomSets that is a
subset of the complete AtomSetCollection?
If you open up the H2O_3.log in the gaussian samples and look at the AtomSetChooser, you will see that there are 6 branches. The first branch consists of two sets of atomsets, the Input and the Standard orientations that were encountered for the geometry optimization.
I would like to be able to 'select' the Input orientations and only animate those. You can't see that from the tree, but the AtomSetIndex values for those are 0, 2, 4, 6, 8, while the Standard ones are 1, 3, 5, 7, 9 (since each step outputs both).
I would need to modify the AtomSetChooser and add an animate button for that, which I haven't done yet, partly because I am not very good at the user interface and was wondering whether I should use a slider, play, stop etc. 'buttons' like the Animate... window had in v9.
Question: Do you think it makes sense to have the look-and-feel of the application be determined by the OS. I was surprised by how the tree (and divider bar in the split pane) looks different with the look-and-feel that Jmol currently has.
Not sure exactly what you are saying.
I think that we should use standard swing controls whenever possible.
If you look at the AtomChooserTreeDemo.java that I sent a few days ago, Sun uses the UIManager.setLookAndFeel. I added the snippet of code here:
/**
* Create the GUI and show it. For thread safety,
* this method should be invoked from the
* event-dispatching thread.
*/
private static void createAndShowGUI() {
if (useSystemLookAndFeel) {
try {
UIManager.setLookAndFeel(
UIManager.getSystemLookAndFeelClassName());
} catch (Exception e) {
System.err.println("Couldn't use system look and feel.");
}
}
//Make sure we have nice window decorations.
JFrame.setDefaultLookAndFeelDecorated(true); //Create and set up the window.
JFrame frame = new JFrame("AtomChooserTreeDemo");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //Create and set up the content pane.
AtomChooserTreeDemo newContentPane = new AtomChooserTreeDemo();
newContentPane.setOpaque(true); //content panes must be opaque
frame.setContentPane(newContentPane); //Display the window.
frame.pack();
frame.setVisible(true);
} public static void main(String[] args) {
//Schedule a job for the event-dispatching thread:
//creating and showing this application's GUI.
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI();
}
});
}I am willing to try it out in my sandbox to see whether I can get that to work if you want me to.
I do not particularly like the current Jmol application UI, but have not
worked on it.
That will get us closer to the idea that we may be able to pick a set
of AtomSets and do things with them (animation is the only one that
seems to make sense at this time). Seems somewhat analogous to a select
command/method for atoms within a frame, but now for a select of a set
of frames.
I really don't want to bug you (I see that you are very busy with other
things :-), so if you feel that this is something you want to put off
for a bit (till after the release), that is fine with me.
Some of this will have to wait until after the release.
OK, whenever I bring something up that you want to wait with, just let me know and I'll stop nagging you.
I am also wondering whether you would consider having the AtomSetChooser in the release, or hold of on that part. I wouldn't be offended if you decided to do that :-) (as long as I can play with it in my sandbox so I can finally get it to where I want it.)
I think that the AtomSetChooser should be included in the release.
OK.
Ren�
------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_idU88&alloc_id065&op=click _______________________________________________ Jmol-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jmol-developers
