Hi,
I had the same problem. It seems that QmitkSliceWidget does not create
an own default DataStorage any more. So you have to create one by your own:
mitk::StandaloneDataStorage::Pointer myDataStorage =
mitk::StandaloneDataStorage::New();
mySliceWidget->SetDataStorage( myDataStorage );
and then add your data node that contains the image to be displayed:
mySliceWidget->SetData( myImageNode );
At least that worked for me,
regards,
Marius
On 09.05.2011 10:50, Cristina Oyarzun wrote:
Hello!
I am porting a functionality from QT3 (mitk 0.12.2) to QT4 (mitk
revision 29842) and I have a problem with QmitkSliceWidget.
My QmitkSliceWidget is in a pop-up window. In QT3 the node selected by
a QmitkTreeNodeSelector is set as the data for the QmitkSliceWidget by
just using "void QmitkSliceWidget::SetData(
mitk::DataTreeNode::Pointer node)" function. It works fine and I
visualize the slices in the QmitkSliceWidget.
The only difference in QT4 is that I get the data from a
QmitkDataStorageComboBox. I set the node selected by the
QmitkDataStorageComboBox to the QmitkSliceWidget by using once more
"void QmitkSliceWidget::SetData(mitk::DataNode::Pointer node)"
function. As a result the QmitkSliceWidget does not show anything.
Does someone now where could the problem be?
Thank you!
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery,
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now.
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users