On Tue, Aug 07, 2012 at 01:59:43PM +0100, Stuart Mumford wrote:
>    I am now creating my own tvtk contourfilter and feeding the output from
>    that into mlab.pipeline.surface. When I update the data for the pipeline
>    that leads into the contour filter (seed array > Stream_Tracer >
>    SurfaceReconstructionFilter > ContourFilter) everything upto the mayavi
>    surface updates, but the surface wont re-draw with the updated data in the
>    contour filter.

Indeed, the pipeline has been broken, so the refresh model no longer
works.

>    How can I make the surface re-draw the new contour filter pipeline?

How important is this? If it really is, you can always build your own
subclass of Filter (mayavi.core.filter.Filter), that does everything
right, in particular implements the 'update_pipeline' method.
Maybe you can actually subclass mayavi.filters.contour.Contour. Anyhow,
this will require some work.

Maybe you can simple get away with registering a filter on 'data_changed'
(or 'pipeline_changed', I am not sure), using the Trait's event
mechanism:

http://code.enthought.com/projects/traits/docs/html/traits_user_manual/notification.html#dynamic-notification

HTH,

Gael

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
MayaVi-users mailing list
MayaVi-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to