[vtkusers] display image on vtkplanewidget
alex Dowson
alexdowson at hotmail.com
Thu Jun 21 09:35:55 EDT 2012
Hi
I didn’t see any planeWidget data filled ? You have to specify the plane
data and call the function planeWidget->On() to make the widge visible.
Alex
-----Original Message-----
From: amir k.
Sent: Thursday, June 21, 2012 7:03 PM
To: vtkusers at vtk.org
Subject: [vtkusers] display image on vtkplanewidget
Hello,
I would like to display image on my vtkPlaneWidget, and trying to do this
with qvtkWidget. so basically, here is what I do:
vtkResliceImageViewer *resliceImageViewer = vtkResliceImageViewer::New():
vtkPlaneWidget *planeWidget = vtkPlaneWidget::New();
/../
resliceImageViewer->SetInput(planeWidget->GetResliceOutput());
this->ui.qvtkWidget->SetRenderWindow(resliceImageViewer->GetRenderWindow());
this->ui.qvtkWIdget->Show();
but nothing show on my qvtkWidget. Just blank black.
I am sure some of you have tried this before. I have checked the exemple of
QtVTKRenderWindows.cxx but I would like to stay with my c++ project
algorithm and really understand what I am doing.
I've been thinking something like signal-slot with thread principe but I
still don't really understand the principe. Forgive your noob here.
Thank you for your helps and suggestions.
--
View this message in context:
http://vtk.1045678.n5.nabble.com/display-image-on-vtkplanewidget-tp5714062.html
Sent from the VTK - Users mailing list archive at Nabble.com.
_______________________________________________
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
More information about the vtkusers
mailing list