| [news.eclipse.gef3d] Re: Best strategy for updating all figures? |
On 2009-05-29 13:40:10 -0700, Jens v.P. <developer@xxxxxxxxx> said:
Hi Miles,
we are currently working on some update problems. Generally, it should work the very same way as it works in GEF, and usually this is the case. I'm not completely sure yet, but I figure there is a problem if only 3D figures are updated.
Is your view updated if you move the camera?
Background: We are using the very same update mechanism as GEF does, although many of GEF "optimizations" (e.g., dirty regions) don't make sense in a 3D scene, when everything has to be rendered anyway. We want to first fix the current version and then remove unnecessary stuff (in the UpdateManager) by overriding it (in PickingUpdateManager3D or a base class).
If it is only an application problem (and not a GEF3D bug): You can call invalidate() or invalidateTree() on figures, this should generally cause the figures to get re-rendered.
Do I need to call render explicitly as well?
thanks!
Miles
Cheers,
Jens
On 2009-05-29 22:28:47 +0200, Miles Parker <milesparker@xxxxxxxxx> said:
Hi guys,
I'm building dynamic 3D views using ViewParts, and I'm having trouble trying to figure out how to re-render all figures. It's looking like I have to walk the entire tree of edit parts but tht isn't working and seems kind of ineffecient. Ideas?
thanks,
Miles