Hi, All interactions are defined by a state machine in MITK, which are written in XML files. Usually files called *Interaction.xml in the "resource/Interactions" folder of a module. For example the global display interaction can be found here [1]. You find a developer manual for interactions in our documentation [2]. In a nutshell, you wire up a C++ class with such a state machine (see [3]) and the methods will be triggered according to the current state transition (see [4]). I recommend to start debugging at [4] and place a breakpoint to see, if the scrolling is triggered at all.
Best, Stefan [1] https://github.com/MITK/MITK/blob/master/Modules/Core/resource/Interactions/DisplayInteraction.xml [2] http://docs.mitk.org/2016.11/DataInteractionPage.html [3] https://github.com/MITK/MITK/blob/master/Modules/Core/src/Interactions/mitkDisplayInteractor.cpp#L66 [4] https://github.com/MITK/MITK/blob/master/Modules/Core/src/Interactions/mitkDisplayInteractor.cpp#L503-L516 -----Original Message----- From: Pierre-Jean Petitprez [mailto:[email protected]] Sent: Dienstag, 1. August 2017 17:55 To: Dinkelacker, Stefan; [email protected] Subject: Re: [mitk-users] Unable to scroll through slices in a QmitkRenderWindow Hi Stefan, Thank you for your answer. Unfortunately I can't manage to find where something could be blocking. I have checked the call stack; all MITK calls are the same between the 2 applications, but then MITK makes calls to VTK (for example the QmitkRenderWindow::wheelEvent method calls QVTKWidget::wheelEvent) and I don't manage to see what's going on in the VTK part. First I thought there was a problem with the vtkRenderWindowInteractor, but after having checked it looks fine. As for custom interactors, I have removed all of them but nothing changes. I have tried to look to basic examples to see how to set up a MITK application. In some old posts I found some references to "state machine" xml files that are used to set up the interactions, though I am not sure I have understood what it is about. I haven't found such xml files in my current MITK installation, so I guess the information I found was obsolete? Best regards, Pierre Le 01/08/2017 à 11:52, Dinkelacker, Stefan a écrit : > Hi, > > welcome to MITK. :-) It's hard to tell what's missing from the provided > information. Do you have the possibility to debug the original application > (or maybe even plain MITK) to see what the call stack should look like? In > general there's a global interaction for all the standard interaction and > custom interactors for things like placement of points or drawing > segmentations. Maybe there's a custom interactor blocking events for > scrolling in 2D? > > Best, > Stefan > > -----Original Message----- > From: Pierre-Jean Petitprez > [mailto:[email protected]] > Sent: Dienstag, 1. August 2017 10:57 > To: [email protected] > Subject: [mitk-users] Unable to scroll through slices in a > QmitkRenderWindow > > Hi, > > I am a new user of MITK. I use a (huge) application developed by somebody > else, which uses QmitkRenderWindow. This application works as expected, I can > load DICOM series and scroll through the 2D slices with the mouse wheel. I > have reused some parts of its code for my own application which should > perform more or less the same thing (load some DICOM and be able to scroll > through the slices). > > My problem is that in my own application I am not able to scroll through the > 2D slices in the QmitkRenderWindow. The render windows receive the mouse > events correctly, but nothing happens in the 2D slices (while everything > works fine in the 3D view, as I can zoom in and out properly with the mouse > wheel). > > Is there some code needed to activate the missing interaction, that I would > have missed? > > Many thanks. > > Best regards, > > Pierre > > > ---------------------------------------------------------------------- > -------- Check out the vibrant tech community on one of the world's > most engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > mitk-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mitk-users ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
