[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[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?

I think I'll try with just 2D figures first to see if I can get that working. I haven't been able to get the camera working yet. I'm not really sure how well my Mac setup is working..I've only been able to get the 2 1/2 D diagrams working.



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.

But for example if I'm calling invalidate on the root edit part that won't force for the childre -- I'll need to use invaidateTee for that..


But yeah, it seems wasteful to walk the whole tree (I've got thousands of figures) to invlidate and then walk again to re-render.

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