<div dir="ltr"><div><div><div><div><div>Hi Matthieu,<br><br></div>I would strongly recommend that you use a ParaView GUI generated Python Catalyst pipeline script instead of hand-written C++ Catalyst pipeliine to do what you want. There are a surprising amount of settings required to output images from VTK. If you want to do that in parallel the complexity goes up even more due to parallel compositing of the images. Everyone that I've run across that wanted to avoid Python with their Catalyst instrumented code quickly changed their mind after trying out the Python generated scripts. The overhead of using Python really is negligible compared to a pure C++ description of the Catalyst pipeline. Also, the Catalyst Live and Cinema output are all driven by Python code as well.<br><br></div>The last and only time I tried doing rendering in parallel in VTK it took me about 5 days and that was with constantly asking questions from other people here at Kitware that knew how to do that. <br><br></div>That being said, if after reading this you're still set on doing all of this in C++ then let us know and we'll see what can be done.<br><br></div>Regards,<br></div>Andy<br><div><div><div><div><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 2, 2015 at 2:38 PM, Dorier, Matthieu <span dir="ltr"><<a href="mailto:mdorier@anl.gov" target="_blank">mdorier@anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div style="direction:ltr;font-family:Tahoma;color:#333399;font-size:10pt">Hi,<br>
<br>
I'm diving into Catalyst and try to build a pipeline in C++ for an simple example code. My use case is the following:<br>
I have a uniform 3D grid (converted into vtkImageData) on which I map a field of double values (wrapped into a vtkDoubleArray).<br>
By looking at the examples I managed to make the adaptor that creates the grid and maps the field on it. Now I would like to build pipelines for 2 scenarios:<br>
- slicing the grid horizontally at a given level, apply a color map, and output the result in a PNG file;<br>
- building an isosurface from the 3d grid (with configurable isovalue) and print the result in a PNG file.<br>
In both cases I don't know which classes to look at in the Doxygen of VTK. Besides, I suppose for the second case there should be some concept of camera position and parameters...<br>
<br>
Any hint or examples would be appreciated.<br>
Thanks,<br>
<br>
Matthieu Dorier<br>
</div>
</div>

<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>