this->GetRenderWindowPart()->GetSelectedPosition()
where you can pass the render window name as an argument to the
GetSelectedPosition() function. It can be "axial", "sagittal", "coronal" or
"3d" if you use the standard MITK display.
You can also assign listeners to the slice navigation controllers of these
render windows to get notified of the position changes. You can access the
controllers like this:
this->GetRenderWindowPart()->GetRenderWindow("axial")->GetSliceNavigationController()
But then you have to pay attention to remove the listeners when the user
closes the display, because currently they cannot be "uncloseable" by
design.
Good luck,
Miklos
On 9 December 2013 18:34, Ben Ben <[email protected]> wrote:
> Hi MITK users,
>
> An absolute beginner question I'm afraid. What is the simplest way to get
> the current mitkWorkbench cross-hair location in a plugin?
>
> I'm currently trying out plugin development by modifying
> QmitkSimpleExampleView and would like to access the 4D image data from the
> point of the current cross hair location.
>
> The only way I can see from examples is by defining a list of points like
> QmitkPointSetInteractionView.cpp but that seems overly complicated to just
> get the current coordinate.
>
> Thanks,
> Ben
>
>
> ------------------------------------------------------------------------------
> Sponsored by Intel(R) XDK
> Develop, test and display web and hybrid apps with a single code base.
> Download it for free now!
>
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
> _______________________________________________
> mitk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mitk-users
>
>
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users