[Insight-developers] Mini pipelines

Miller, James V (Research) millerjv@crd.ge.com
Tue, 18 Mar 2003 16:59:57 -0500


You should be able to use a combination of DataObject::DisconnectSource
and ImageSource::GraftOutput to do what you want.

When you reconnect the output back on, you should also disconnect 
that output from the input of your mini-pipeline (by calling SetInput(0))



> -----Original Message-----
> From: Joshua Cates [mailto:cates@sci.utah.edu]
> Sent: Tuesday, March 18, 2003 4:22 PM
> To: Insight-Developers
> Subject: [Insight-developers] Mini pipelines
> 
> 
> Hi,
> 
> Is there a way to temporarily disconnect an image from a pipeline, and
> then reconnect it?  I have a situation where I need to use 
> the Output of a
> filter A as the Input to a mini-pipeline within filter A.  Unless
> disconnected from the main pipeline, this situation causes an infinite
> loop.  But once disconnected, I cannot figure out how to reconnect. 
> 
> Will GraftOutput() safely do what I want?
> 
> Josh.
> 
> ______________________________
>  Josh Cates			
>  School of Computer Science	
>  University of Utah
>  Email: cates@sci.utah.edu
>  Phone: (801) 587-7697
>  URL:   http://www.sci.utah.edu/~cates
> 
> 
> _______________________________________________
> Insight-developers mailing list
> Insight-developers@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-developers
>