How to enforce a screen refresh?

Hi,

I am currently busy hooking-up my molecular dynamics program as a plugin
to Avogadro. That is, I copy the atomic/molecular data in my MD engine,
do one or more timesteps, and copy the geometry back to the
Avogadro::Molecule instance.
In essence it works in the sense I can move the atoms around. However
to see that on the screen, I first have to click on the screen to get an
refresh.
How can I enforce such a refresh?

Looking forward to your suggestions,
Bertwim

Hi,

On Sun, Jan 10, 2010 at 2:47 PM, B.W.H. van Beest bwvb@xs4all.nl wrote:

Hi,

I am currently busy hooking-up my molecular dynamics program as a plugin
to Avogadro. That is, I copy the atomic/molecular data in my MD engine,
do one or more timesteps, and copy the geometry back to the
Avogadro::Molecule instance.
In essence it works in the sense I can move the atoms around. However
to see that on the screen, I first have to click on the screen to get an
refresh.
How can I enforce such a refresh?

Molecule::update() should refresh the molecule…

Cheers,
Tim

Looking forward to your suggestions,
Bertwim


This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon’s best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev


Avogadro-Discuss mailing list
Avogadro-Discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avogadro-discuss

Wel, thanks! Sorry (blush!) that I missed this obvious function!

Tim Vandermeersch wrote:

Hi,

On Sun, Jan 10, 2010 at 2:47 PM, B.W.H. van Beest bwvb@xs4all.nl wrote:

Hi,

I am currently busy hooking-up my molecular dynamics program as a plugin
to Avogadro. That is, I copy the atomic/molecular data in my MD engine,
do one or more timesteps, and copy the geometry back to the
Avogadro::Molecule instance.
In essence it works in the sense I can move the atoms around. However
to see that on the screen, I first have to click on the screen to get an
refresh.
How can I enforce such a refresh?

Molecule::update() should refresh the molecule…

Cheers,
Tim

Looking forward to your suggestions,
Bertwim


This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon’s best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev


Avogadro-Discuss mailing list
Avogadro-Discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avogadro-discuss