I am not entirely sure what are you doing here . So you want to make a TestFilter which will make some output depending on the pipeline you want and as you keep adding to this filter you can see the result of the pipeline currently in the TestFilter, at any time?<br>
<br><br><div class="gmail_quote">On Tue, Oct 19, 2010 at 6:46 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
This is a pattern I have found very useful to keep things organized.<br>
The idea is to be able to "look at" the state of the "scene" as you<br>
manipulate it inside of an algorithm - but without having to do the<br>
visualization work inside the algorithm. All I do is invoke an event<br>
which tells the rendering code (outside of the algorithm) to update<br>
based on the current state of the algorithm. Of course you have to<br>
expose the data that is being updated (I have provided a<br>
GetIntermediateOutput function).<br>
<br>
Here is a demo:<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Demos/VisualDebugging" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Demos/VisualDebugging</a><br>
<br>
The only thing I don't understand is why the camera doesn't refresh<br>
despite the calls to intermediate->Modified() and<br>
this->Renderer->ResetCamera();, but in most cases the scene won't be<br>
growing (as in this example) this much so it works pretty well even<br>
without this.<br>
<br>
I just wanted to share, as I feel that this is a very valuable thing<br>
to know how to do. If anyone has a better way to do the same thing,<br>
I'd love to see it!<br>
<br>
David<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br>