OK, I solved it.

Since I am using an independent rendering manager for my
qmitkstdmultiwidget, and the functions in mitkContourTool take the global
instance (mitk::RenderingManager::GetInstance()) it was not updating the
drawing. I changed my code so that the qmitkstdmultiwidget has now the
global rendering manager and it works.




2018-06-11 15:10 GMT+02:00 LOPEZ VELAZCO, ROCIO <rocio.lo...@upf.edu>:

> Hello again,
>
> I managed to make the segmentation module work.
>
> However the real-time painting on the 2D renders is not working ...
> Example: by using the Add Tool, I draw something  and have to wait until I
> move the mouse again to update the render, then it paints what I draw (and
> it even take a while). Since I am working in a MITK-based app, I have an
> independent QmitkStdMultiWidget and there is no code where I connect the
> segmentation tools with the render windows. It is clear that the
> MousePressEvent is not taking the "active" render window where I am
> painting... What could I do? Any hint would be appreciated!
>
> Thank you very much in advance.
> Best regards,
>
> Rocío
>
> 2018-06-01 17:46 GMT+02:00 LOPEZ VELAZCO, ROCIO <rocio.lo...@upf.edu>:
>
>> Hello,
>>
>> I am trying to integrate the segmentation module in a MITK-based
>> application.
>>
>> I have two different questions:
>>
>> On one hand, I read here
>> <http://docs.mitk.org/2015.05/QmitkSegmentationTechnicalPage.html> that
>> I could use QmitkToolReferenceDataSelectionBox
>> <http://docs.mitk.org/2015.05/classQmitkToolReferenceDataSelectionBox.html>
>> and QmitkToolWorkingDataSelectionBox
>> <http://docs.mitk.org/2015.05/classQmitkToolWorkingDataSelectionBox.html>
>> to promote two QtComboBox respectively and receive the Reference Image and
>> the Working Data image. However when using these classes I get errors in
>> qtCompiler... Do you know if they are ready to use? or which is the correct
>> way to use them?
>>
>> On the other hand, I succeded  by promoting both QtComboBox to
>> QmitkDataStorageComboBox, exactly as in mitk Segmentation Plugin... And the
>> tool interface QmitkToolSelectionBox shows correctly all 2D segmentation
>> tools, but its functionalities don't work. I understood that I have to pass
>> both reference and working images to mitkToolManager... but I still miss
>> some more information.
>>
>> As it is the first time that I go inside Segmentation Module, could
>> someone share with me the main "parameters" that I should create and
>> connect?
>> I will continue reading the documentation, I just ask in case someone
>> could give me a "faster" introduction :)
>>
>> Thank you very much in advance!
>>
>> Best regards,
>>
>> --
>>
>> Rocío López Velazco
>>
>> *SimbioSYS** group, BCN MedTech*
>>
>> *UniversityPompeu Fabra*
>>
>>
>>
>>
>> *Department of Information and Communication Technologies Roc Boronat,
>> 122 (Tànger Building),  08018 Barcelona                    Office 55 119
>> https://bcn-medtech.upf.edu/ <https://bcn-medtech.upf.edu/>*
>>
>>
>>
>>
>>
>
>
> --
>
> Rocío López Velazco
>
> *SimbioSYS** group, BCN MedTech*
>
> *UniversityPompeu Fabra*
>
>
>
>
> *Department of Information and Communication Technologies Roc Boronat, 122
> (Tànger Building),  08018 Barcelona                    Office 55 119
> https://bcn-medtech.upf.edu/ <https://bcn-medtech.upf.edu/>*
>
>
>
>


-- 

Rocío López Velazco

*SimbioSYS** group, BCN MedTech*

*UniversityPompeu Fabra*




*Department of Information and Communication Technologies Roc Boronat, 122
(Tànger Building),  08018 Barcelona                    Office 55 119
https://bcn-medtech.upf.edu/ <https://bcn-medtech.upf.edu/>*
------------------------------------------------------------------------------
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
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to