<div class="gmail_extra">Could this code be of some help:</div><div class="gmail_extra"><div class="gmail_extra"><br></div><div class="gmail_extra"> #include "QVTKWidget.h"</div><div class="gmail_extra">...</div>
<div class="gmail_extra"> QVTKWidget * imageWindow;</div><div class="gmail_extra">...</div><div class="gmail_extra"> imageWindow = new QVTKWidget( parentWidget );</div><div class="gmail_extra"> imageWindow->setObjectName( "ImageWindow" );</div>
<div class="gmail_extra"> imageWindow->setMinimumSize( QSize( DEFAULTWIN_X, DEFAULTWIN_Y ) );</div><div class="gmail_extra"> imageWindow->setMaximumSize( QSize( DEFAULTWIN_X, DEFAULTWIN_Y ) );</div><div class="gmail_extra">
imageWindow->setGeometry( QRect( 2, 2, DEFAULTWIN_X, DEFAULTWIN_Y ) );</div><div class="gmail_extra"> imageWindow->resize( DEFAULTWIN_X, DEFAULTWIN_Y );</div><div class="gmail_extra"> vtkRenderWindowInteractor *interactor = imageWindow->GetInteractor( );</div>
<div class="gmail_extra"> vtkInteractorStyleImage * style = vtkInteractorStyleImage::New( );</div><div class="gmail_extra"> interactor->SetInteractorStyle( style );</div><div class="gmail_extra"> vtkRenderer *renderer = vtkRenderer::New( );</div>
<div class="gmail_extra"> renderer->AddViewProp(actor);</div><div class="gmail_extra"> imageWindow->GetRenderWindow()->AddRenderer( renderer );</div><div><br></div><div>Anka</div><div><br></div><br><div class="gmail_quote">
On Thu, Apr 26, 2012 at 7:54 AM, Ale <span dir="ltr"><<a href="mailto:notinmyhead@gmail.com" target="_blank">notinmyhead@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
But can I set actors from QT widgets? It sound a bit strange to me...<br>
<br>
Ale<br>
<br>
Il giorno 26/apr/2012, alle ore 13.08, Jothybasu Selvaraj ha scritto:<br>
<br>
> You could manipulate the Z positon of the actors yuo add to the vtkRenderer, so that they all stay above the image.<br>
><br>
><br>
> Jothy<br>
><br>
> On Thu, Apr 26, 2012 at 12:01 PM, Ale <<a href="mailto:notinmyhead@gmail.com">notinmyhead@gmail.com</a>> wrote:<br>
> Hello,<br>
><br>
> I'm going crazy trying to add extra "layers" to a qvtkwidget in order to have text labels, combo boxes and so on, among the qvtkwidget main view (such as a single slice of a 3dvolume). Is there a way to do it properly resorting to a mix of vtk and qt? Is there some "canonical" approach I'm missing?<br>
><br>
> Thanks,<br>
> Ale<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>
><br>
><br>
><br>
> --<br>
> Jothy<br>
><br>
<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></div>