Hello again

I've resolved the problem but there are two problems still present:


 - No crosshair, and crosshair on multiwidget in different plugin is broken, 
not sure why that happen

 - After loading some DICOM I should select Reset for menu to make my copy of 
multiwidget work


Still doing research around what could cause those problems. Here is the code 
(in html from VS)


  QmitkStdMultiWidget* mw = new QmitkStdMultiWidget(this, 0, 0, renderingMode);


  mitk::DataStorage::Pointer dataStorage = dataStorageRef->GetDataStorage();


  mw->SetDataStorage(dataStorage);

  //mitk::TimeGeometry::Pointer geo = 
dataStorage->ComputeBoundingGeometry3D(dataStorage->GetAll());
  //mitk::RenderingManager::GetInstance()->InitializeViews(geo);

  // Initialize bottom-right view as 3D view
  mw->GetRenderWindow4()->GetRenderer()->SetMapperID(
    mitk::BaseRenderer::Standard3D);

  mw->DisableStandardLevelWindow();

  // Add the displayed views to the tree to see their positions
  // in 2D and 3D
  mw->AddDisplayPlaneSubTree();

  mw->EnableNavigationControllerEventListening();

  #define RIGHT_3D 2
  mw->OnLayoutDesignChanged(RIGHT_3D);

  mw->SetWidgetPlanesVisibility(true);



Thank you!


________________________________
От: Mikhail Pukhlikov <mikhail.pukhli...@outlook.com>
Отправлено: 16 марта 2016 г. 12:54
Кому: mitk-users@lists.sourceforge.net
Тема: [mitk-users] How can I use QmitkStdMultiWidget as widget?


Hello


I want to wrap/put QmitkStdMultiWidget inside different widget.

I was trying just to create it just with new and call Init but then when I load 
DICOM and run reinit - application is crushing.


Is it possible to use QmitkStdMultiWidget widget outside separated plugin?


Thank you!

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to