Hi João,
you forgot to swap the rotation axes when you try to reorient the slices. The
following code works for me:
auto sliceNavigationController =
this->GetRenderWindowPart()->GetQmitkRenderWindow("sagittal")->GetSliceNavigationController();
auto planeGeometry = sliceNavigationController->GetCurrentPlaneGeometry();
sliceNavigationController->ReorientSlices(
planeGeometry->GetCenter(),
planeGeometry->GetAxisVector(1), // <- swap axes
planeGeometry->GetAxisVector(0)); // <- swap axes
Best regards,
Stefan
From: Joao Ascenso [mailto:j.asce...@campus.fct.unl.pt]
Sent: Montag, 21. März 2016 18:16
To: mitk-users@lists.sourceforge.net
Subject: [mitk-users] [mikt-users] Rotate QmitkStdMultiWidget View
Hi,
I'm trying to rotatethe sagittal view -90º in the QmitkStdMultiWidget but I'm
not sure about the input parameters.
I'm doing:
newCenter =
multiWidget->GetRenderWindow2()->GetSliceNavigationController()->GetCurrentPlaneGeometry()->GetCenter();
rotationAxis =
multiWidget->GetRenderWindow2()->GetSliceNavigationController()->GetCurrentPlaneGeometry()->GetAxisVector(0);
rotationAxis2 =
multiWidget->GetRenderWindow2()->GetSliceNavigationController()->GetCurrentPlaneGeometry()->GetAxisVector(1);
multiWidget->GetRenderWindow2()->GetSliceNavigationController()->ReorientSlices(newCenter,
rotationAxis, rotationAxis2);
multiWidget->GetRenderWindow2()->GetSliceNavigationController()->Update();
I've tried different vectors but didn't got any change.
Thanks,
--
João Ascenso
Universidade Nova de Lisboa - Faculdade de Ciências e Tecnologias
Mestrado Integrado em Engenharia Electrotécnica e de Computadores
------------------------------------------------------------------------------
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=278785351&iu=/4140
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users