<div dir="ltr"><div><div>Hi Jose Ignacio,<br>although I have not compiled and run the Medical1 example myself, some general rules that may help you are the following.<br><br>Each object has its own mapper. If you have all objects int eh samen window, you are sharing the renderwindow, which has its renderer and its the interactor.<br>
</div><div><br></div>When you modify a property such as the zoom or the angle, the rendererwindow should be updated; a way to do (force) it is to call the renderwindow's Render() method.<br><br></div><div>If you have multiple windows or scenes, each scene may be a renderwindow and you should take care of synchronizing the events.<br>
<br></div><div></div>HTH,<br>JON HAITZ<br><br><div class="gmail_extra"><br><div class="gmail_quote">On 15 April 2013 15:03, Jose Ignacio Prieto <span dir="ltr"><<a href="mailto:joseignacio.prieto@gmail.com" target="_blank">joseignacio.prieto@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jon, I wan to modify Medical1 example, so I still have the skin<br>
contour in the center of the screen and have an MIP projection of the<br>
volume in a 2D plane to the right of the contour, so you can see both<br>
things at the same time. I want the projection to update itself if I<br>
change the zoom, view angle or contrast. It would be similar as the<br>
software 3dSlicer, where you have a volume in one window and the<br>
projection in another. I don't know if this is one mapper and two<br>
actors, of they just share the data source and the mouse interaction<br>
is deliberately done in both windows. Thanks<br>
<div class="HOEnZb"><div class="h5"><br>
On Fri, Apr 12, 2013 at 6:36 PM, Jon Haitz Legarreta<br>
<<a href="mailto:jhlegarreta@vicomtech.org">jhlegarreta@vicomtech.org</a>> wrote:<br>
> Dear Jose Ignacio,<br>
> if I understand well, you mean having a volume render of the heart and<br>
> showing an arbitrary 2D plane together, in the same scene. This is<br>
> definitely possible.<br>
><br>
> You must just have all the necessary input data (your volume and have your<br>
> 2D cut computed) and then add the necessary actors to the scene.<br>
><br>
> If you need more precise answers or directions, you may want to give further<br>
> details.<br>
><br>
> HTH,<br>
> JON HAITZ<br>
><br>
><br>
> On 12 April 2013 15:13, Jose Ignacio Prieto <<a href="mailto:joseignacio.prieto@gmail.com">joseignacio.prieto@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Hi, is this too complicated? Has somebody done anything similar?<br>
>> Gracias!<br>
>><br>
>> On Thu, Apr 11, 2013 at 10:17 AM, Jose Ignacio Prieto<br>
>> <<a href="mailto:joseignacio.prieto@gmail.com">joseignacio.prieto@gmail.com</a>> wrote:<br>
>> > Hi all,<br>
>> > I am starting with VTK, ran some examples and now I am trying to<br>
>> > display a volume (like an isosurface of a heart) and next to it, a<br>
>> > plane (let's say in an angle of 45 degree to the camera) where you<br>
>> > could get the MIP projection of the heart. So when you rotate the<br>
>> > isosurface, then the MIP would change as well and it would be "easier"<br>
>> > to visualize what are you looking at. I think it is like the shadows<br>
>> > example (<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/Shadows" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/Shadows</a>)<br>
>> > , but instead of a light it would be a projector of "xrays" to a<br>
>> > screen. Is it possible to build it?<br>
>> > Thanks!<br>
>> > Jose<br>
>> ><br>
>> > --<br>
>> > José Ignacio Prieto<br>
>> > celular(nuevo): 94348182<br>
>><br>
>><br>
>><br>
>> --<br>
>> José Ignacio Prieto<br>
>> celular(nuevo): 94348182<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<br>
>> <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:<br>
>> <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>
><br>
><br>
<br>
<br>
<br>
--<br>
José Ignacio Prieto<br>
celular(nuevo): 94348182<br>
</div></div></blockquote></div><br></div></div>