Hi Kevin,

after loading your 4D image, you can check dimensions and timesteps to ensure 
it is 4D.
If it is loaded correctly, then the mistake is propably in your signal/slot 
connections:
Try this:

    mitk::SliceNavigationController* timeController = 
GetActiveStdMultiWidget()->GetTimeNavigationController();
    if (timeController)
    {       
       m_TimeStepper = new QmitkStepperAdapter(m_Controls->m_SliderTime,
          timeController->GetTime(),
          "sliceNavigatorTimeFromSimpleExample");
       m_Controls->m_SliderTime->setEnabled(true);       
    }
    else
    {
       m_Controls->m_SliderTime->setEnabled(false);              
    }

You need to have the member variable:
QmitkStepperAdapter* m_TimeStepper;


Regards,

Bastian

-----Ursprüngliche Nachricht-----
Von: "Kévin Bianchi" [mailto:[email protected]] 
Gesendet: Montag, 21. Mai 2012 16:35
An: [email protected]
Betreff: [mitk-users] MRI 3D+t : time slider doesn't work

Hi,

I try to visualize 3D images + T.

To create a slider linked to time steps, I used QmitkSliderNavigatorWidget and 
QmitkStepperAdapter classes. But when I move the slider, the image does not 
update.

QmitkSliderNavigatorWidget *sliderNavigatorTime = new 
QmitkSliderNavigatorWidget(controlsParent);

new QmitkStepperAdapter(sliderNavigatorTime,
sliceNaviControllerTime->GetTime(),"Time");

I used the function LoadDicomSeries() to sort and open 3D + t.

m_ResultNode =
mitk::DicomSeriesReader::LoadDicomSeries(fileNameList,true,true,0);
m_ResultImage = dynamic_cast<mitk::Image*>(m_ResultNode->GetData());

The image has four dimensions and the slider has as the same count of steps as 
there is time steps in the image.

I have no idea why the slider is not working. Any thought ?

Thank you for your help, Kevin B.

--
Kévin Bianchi
[email protected]


KEOSYS Company
1, Impasse Auguste Fresnel - ZA du Moulin Neuf
BP 60227 - 44815 Saint Herblain Cedex
Tel :  02 40 92 26 13
Fax : 02 40 92 26 14
www.keosys.com

This e-mail is intended only for use of the individual or entity to which
it is
addressed and may contain information that is privileged, confidential and
exempt
from disclosure under applicable law. Any use, distribution or copying of
this
e-mail communication is strictly prohibited if you are not the addressee.
If so,
please notify us immediately by e-mail, and destroy the original.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to