Hello,
I noticed a strange behaviour with QmitkTransferFunctionWidget.
Sometimes, it gives me values between -2.14748e+09 and -2.14748e+09 (so not an
interval) :
[cid:e324e03c-8b68-42cb-8bfb-aaf9e8b03cf7]
And sometimes, with exactly the same data and not changing anything in the
code, it's working fine :
[cid:aafed088-6885-4503-98d8-be7bc2da6d74]
// Create toplevel widget with vertical layout
QVBoxLayout *vlayout0 = new QVBoxLayout();
vlayout0->setMargin(0);
vlayout0->setSpacing(2);
// Create viewParent widget with horizontal layout
QWidget *viewParent0 = new QWidget();
vlayout0->addWidget(viewParent0);
QmitkTransferFunctionWidget *transFuncWidget = new
QmitkTransferFunctionWidget(viewParent0);
transFuncWidget->ShowGradientOpacityFunction(true);
transFuncWidget->SetDataNode(m_VectNodes[1]);
QHBoxLayout *hlayout0 = new QHBoxLayout(viewParent0);
hlayout0->setMargin(0);
hlayout0->addWidget(transFuncWidget);
viewParent0->show();
Is there anything I am doing wrong? Has someone already noticed that?
Thank you and regards,
Emmanuel
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users