Icy-imaging/Icy-Kernel — Issue #213: paint() for AbstractPainter not called
Author: nicolasC
Created: 2011-11-03 17:16:48+00:00
State: open

Hi,

I have noticed that the paint method for an abstract painter is not called as soon at it should. For instance, it is not called when the user switches from a 2D viewer to a 3D viewer.

One easy way to check this is to run the tutorial plugin 'Painter 3D Example 2' which basically adds a painter showing a 3d cube for the current sequence.
If you launch the plugin while the 3D viewer is already activated then it works fine.
However, if you launch the plugin while the 2D viewer is activated, and then switch to the 3d view, it does not work anymore. The paint() function which is initializing the 3d actor is not called.
However, if you change then the transparency curve, then the cube is displayed because a call to the 3d actor has occured.

I don't kwnow if it is related, but when I visualize a large 3d image, vtk will use some kind of 'coarse resolution' while I am rotating the volume. The problem is that after the rotation is terminated my 3d objects (numerous 3D lines) are still displayed with this coarse resolution. I can only force back the refresh of the display by changing the transparency curve or resizing the window.

nicolas