[vtkusers] Does a load array not cause an update?

michał strzelecki nexgen at poczta.onet.pl
Wed Jul 23 15:10:48 EDT 2003


>This works *the first time* I load it; I can see my data from
>somePointer, I can interactively control W/L via mouse, etc.

>However, when I attempt the iArray SetArray again (and again and again
>in acquisition loop), I do not get a re-display of data, that is, I
>continue to see same first frame.

>I have tried some Update's on some objects, but I think I am missing
>something fundamental about the nature of 'dirty buffers' in vtk so that
>implicit refresh of pipeline will be honored. I suspect this has to do
>with the SetArray, but I am not sure.

>Any suggestions on how to approach this problem?

>Many thanks.

>Hernando Vidal, Jr.
>Tesseract Technology

In your loop when you reload an array
you mast repeat:

[imgData GetPointData] SetScalars iArray

becase method SetScalars copy iArray 
iArray isn't add to pipeline, so the frame isn't update;

michal



More information about the vtkusers mailing list