[vtkusers] How to bypass parts of the VTK pipeline
Seun Odutola
seun at rogue-research.com
Tue May 3 16:28:59 EDT 2016
Apologies for not being clear in my initial message, what I meant to say was that A—>C does work. I was hoping to find out a way of having A—>B—>C all connected but to suppress any effect of B when I don’t need it thus working like (A—>C) and turn B’s effect back on when I need it. In short, I have A(probe filter) —> B(ClipPolyData) —> C(PolyDataMapper) all connected but since one won’t be clipping much in the application am working with I want to keep the connection but just completely ignore B’s effect when clipping isn’t being executed (which is most of the time during normal operations) and vice versa turn it back on for just clipping.
> On May 2, 2016, at 4:36 PM, Dan Lipsa <dan.lipsa at kitware.com> wrote:
>
> Seun,
> What you tried should work. Call SetInputConnection on C with the output port of A and then call vktRenderWindow::Render.
> This should execute A->C
> Try setting a breakpoint on RequestUpdate for A, B and C to see what gets called.
>
>
>
> On Mon, May 2, 2016 at 4:19 PM, Seun Odutola <seun at rogue-research.com <mailto:seun at rogue-research.com>> wrote:
> Hello Everyone,
>
> After researching & googling for answers to no avail, I was wondering if someone here could help me regarding a situation am facing. To keep things simple let’s say I have 3 nodes, A, B, C. A is a probeFilter, B is a ClipPolyData and C is a PolyDataMapper. I currently have a pipeline A—> B—>C and I would like to occasionally ignore B and thus have A—>C directly, how do I achieve this. I have tried to connect directly A—> to C which does nothing (unless am doing something wrong). Hoping someone could point me in the right direction.
>
> Regards,
> Seun
> _______________________________________________
> Powered by www.kitware.com <http://www.kitware.com/>
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html <http://www.kitware.com/opensource/opensource.html>
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ <http://www.vtk.org/Wiki/VTK_FAQ>
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers <http://markmail.org/search/?q=vtkusers>
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers <http://public.kitware.com/mailman/listinfo/vtkusers>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160503/2904d1eb/attachment.html>
More information about the vtkusers
mailing list