[vtkusers] Visual debugging

Darshan Pai darshanpai at gmail.com
Fri Oct 22 14:57:56 EDT 2010


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?


On Tue, Oct 19, 2010 at 6:46 PM, David Doria <daviddoria at gmail.com> wrote:

> This is a pattern I have found very useful to keep things organized.
> The idea is to be able to "look at" the state of the "scene" as you
> manipulate it inside of an algorithm - but without having to do the
> visualization work inside the algorithm. All I do is invoke an event
> which tells the rendering code (outside of the algorithm) to update
> based on the current state of the algorithm. Of course you have to
> expose the data that is being updated (I have provided a
> GetIntermediateOutput function).
>
> Here is a demo:
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Demos/VisualDebugging
>
> The only thing I don't understand is why the camera doesn't refresh
> despite the calls to intermediate->Modified() and
> this->Renderer->ResetCamera();, but in most cases the scene won't be
> growing (as in this example) this much so it works pretty well even
> without this.
>
> I just wanted to share, as I feel that this is a very valuable thing
> to know how to do. If anyone has a better way to do the same thing,
> I'd love to see it!
>
> David
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101022/bf183aec/attachment.htm>


More information about the vtkusers mailing list