From 3f6c8f3ae27983e28b6de51e9a31f751ccc0150e Mon Sep 17 00:00:00 2001 From: Stephen Thompson Date: Thu, 14 Jul 2022 12:26:56 +0100 Subject: [PATCH] Issue #100 fixed bug in yellow green set and swapped interactor sides --- sksurgerybard/algorithms/bard_config_algorithms.py | 3 +-- sksurgerybard/visualisation/bard_visualisation.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/sksurgerybard/algorithms/bard_config_algorithms.py b/sksurgerybard/algorithms/bard_config_algorithms.py index 19967ea..8825335 100644 --- a/sksurgerybard/algorithms/bard_config_algorithms.py +++ b/sksurgerybard/algorithms/bard_config_algorithms.py @@ -109,5 +109,4 @@ def configure_interaction(interaction_config, vtk_window, pointer_writer, if interaction_config.get('mouse', False): green = interaction_config.get('green', True) vtk_window.AddObserver("LeftButtonPressEvent", - BardMouseEvent(bard_visualisation), - green) + BardMouseEvent(bard_visualisation, green)) diff --git a/sksurgerybard/visualisation/bard_visualisation.py b/sksurgerybard/visualisation/bard_visualisation.py index 8782ca2..0978dea 100644 --- a/sksurgerybard/visualisation/bard_visualisation.py +++ b/sksurgerybard/visualisation/bard_visualisation.py @@ -240,7 +240,7 @@ def visibility_toggle(self, y_pos): actor.SetVisibility(True) return - def luminance_change_left(self, y_pos, green): + def luminance_change_right(self, y_pos, green): """ Changes the luminance of either of the last two actors of the actors At the moment it's hard coded to change the second to last last anatomy @@ -258,7 +258,7 @@ def luminance_change_left(self, y_pos, green): print(f"Changing luminance for actor {actor_index} to ", f"{luminance}, RGB={target_colour}", flush=True) - def luminance_change_right(self, y_pos, green): + def luminance_change_left(self, y_pos, green): """ Changes the luminance of either of the last two actors of the actors At the moment it's hard coded to change the last last anatomy