I think you could have problems with this, but I'm not sure. some commands do a repaint and wait for a message via the system update indicating that the message has gone full-circle before they continue. The update (paint?) event has to trigger to do that, and if you bypass render1, then I think you break that cycle. The main reason the screen is going black is that the frame renderer runs so that it sets certain variables, like atom clickability, which can't be known until atoms are rendered (or not) in relation to clipping planes. Also, the ZAP command, which is inserted between models, runs clear(), which resets refreshing to true, currently.
But from the app, when I insert a logical trap there where you indicate, strangely displays the console window text in the applet window (so I see it twice) when I bypass render1. Maybe you know what's going on there? Bob Dean Johnston wrote: >Yes, I've tried the set refreshing false, but for my application (I'm >creating animations dynamically) it briefly turns the applet black while >loading the new structure. This is pretty distracting for what I'm doing. > >Are there any potential problems with what I've done, Bob? I'm perfectly >willing to keep my local modification. > >Dean > > >On 2/13/07 6:04 PM, "Bob Hanson" <[EMAIL PROTECTED]> wrote: > > > >>the command sequence is >> >>set refreshing false >> >>.....no refresh at all here... >> >>set refreshing true >> >>This was developed for reading the state from a file. >>Be sure to give that second command! >> >>Bob >> >>SourceForge.net wrote: >> >> >> >>>Feature Requests item #1659295, was opened at 2007-02-13 15:58 >>>Message generated for change (Tracker Item Submitted) made by Item Submitter >>>You can respond by visiting: >>>https://sourceforge.net/tracker/?func=detail&atid=379136&aid=1659295&group_id >>>=23629 >>> >>>Please note that this message will contain a full copy of the comment thread, >>>including the initial issue submission, for this request, >>>not just the latest update. >>>Category: Interface Improvements >>>Group: None >>>Status: Open >>>Priority: 5 >>>Private: No >>>Submitted By: Dean Johnston (deanjohnston) >>>Assigned to: Nobody/Anonymous (nobody) >>>Summary: Force applet not to repaint >>> >>>Initial Comment: >>>I'd like to be able to load and set up a molecule without the user seeing all >>>the setup (loading, rotating, bond creation, etc.) Since the new molecule is >>>virtually identical to the currently loaded molecule, the user doesn't need >>>to know that a new molecule has been loaded. >>> >>>I've implemented this locally as a new "set noRepaint true | false" scripting >>>option. I'd like to see it incorporated in the official version. >>> >>>Here is what I've done locally, but there's probably a better way: >>> >>>(from Viewer.java) >>> >>>private void render1(Graphics g, Image img, int x, int y) { >>> if (g == null || noRepaint) >>> return; >>>... >>> >>>The noRepaint value gets set in the setBooleanProperty method. >>> >>>Dean Johnston >>> >>>---------------------------------------------------------------------- >>> >>>You can respond by visiting: >>>https://sourceforge.net/tracker/?func=detail&atid=379136&aid=1659295&group_id >>>=23629 >>> >>>------------------------------------------------------------------------- >>>Using Tomcat but need to do more? Need to support web services, security? >>>Get stuff done quickly with pre-integrated technology to make your job >>>easier. >>>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >>>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>>_______________________________________________ >>>Jmol-developers mailing list >>>[email protected] >>>https://lists.sourceforge.net/lists/listinfo/jmol-developers >>> >>> >>> >>> >>------------------------------------------------------------------------- >>Using Tomcat but need to do more? Need to support web services, security? >>Get stuff done quickly with pre-integrated technology to make your job easier. >>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>_______________________________________________ >>Jmol-developers mailing list >>[email protected] >>https://lists.sourceforge.net/lists/listinfo/jmol-developers >> >> > > > >------------------------------------------------------------------------- >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job easier. >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >_______________________________________________ >Jmol-developers mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/jmol-developers > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Jmol-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-developers
