KitwareMedical / SlicerQReads

Slicer-based implementation of QREADS medical image viewer used at Mayo Clinic
Other
2 stars 1 forks source link

Add distance measurement tool #70

Closed spycolyf closed 3 years ago

spycolyf commented 3 years ago

Please review this code. It is my attempt to implement to Distance Measurement Tool. There is a known issue with the edit function that replaces the QREADS tool bar. The absolute best solution would be to allow the user to get the QREADS toolbar back rather than eliminating the very useful Slicer measurement line edit function.

jcfr commented 3 years ago

Only the relevant actions are visible when right-clicking:

image

spycolyf commented 3 years ago

I'm currently making the following changes:

1) Make the Distance measurement Tool Button a toggle button. 2) When toggle is checked, enable 1 drawing on any image 3) When toggle is unchecked, Delete line.

jcfr commented 3 years ago

I'm currently making the following changes:

Consider creating a new issue and new branch based on the latest version. Thanks

jcfr commented 3 years ago

When toggle is unchecked, Delete line.

This has already been implemented using right click.

spycolyf commented 3 years ago

OK, Could you make the Interactive handles also a a right mouse choice if easy to do

jcfr commented 3 years ago

OK, Could you make the Interactive handles also a a right mouse choice if easy to do

Consider creating an issue and associated the "Backlog" milestone. For now, I consider this is a very minor tweak that should be addressed at later stage after allocating resources for this project.

spycolyf commented 3 years ago

OK