Skip to content

Commit

Permalink
Issue #100 fixed bug in yellow green set and swapped interactor sides
Browse files Browse the repository at this point in the history
  • Loading branch information
thompson318 committed Jul 14, 2022
1 parent 0bf787d commit 3f6c8f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions sksurgerybard/algorithms/bard_config_algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
4 changes: 2 additions & 2 deletions sksurgerybard/visualisation/bard_visualisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3f6c8f3

Please sign in to comment.