Hi,

I added an action to the Data Manager view, from which I have to access the
selected slice and time step of the currently shown image.

The code is the following:

    mitk::SliceNavigationController* timeNavigationController =

mitk::RenderingManager::GetInstance()->GetTimeNavigationController();
    mitk::Stepper* timeStepper = timeNavigationController->GetTime();
    unsigned timeStep = timeStepper->GetPos();
    mitk::Stepper* sliceStepper = timeNavigationController->GetSlice();
    unsigned slice = sliceStepper->GetPos();
    MITK_INFO << "time position: " << timeStep << std::endl;
    MITK_INFO << "slice position: " << slice << std::endl;

However, it does not work well. The returned time step is correct, but for
the slice I always get zero. Is this the intended behavior from the side of
MITK? If yes, what is the way of accessing the selected slice?

Thank you,
Miklos Espak
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to