[vtkusers] undo changes to binary vtkImageData

Jonathan Morra jonmorra at gmail.com
Fri Jan 28 21:45:27 EST 2011


I have a binary vtkImageData that a user can modify through some tools I
provide them.  However, the user has requested an undo stack be made so they
can go back through their changes.  In my case, storing a new binary
vtkImageData every time the user changes it costs too much memory (these are
large 3D volume sets).  Is there a way to store a difference between two
binary vtkImageData's?  Ideally I'd like to have just one vtkImageData which
is the current image and then a stack of vtkImageDifferences (I made that
class up) which are themselves small, but say how to go to either the next
or previous state of a binary vtkImageData.

Does such a method exist?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110128/93906ad1/attachment.htm>


More information about the vtkusers mailing list