Commit 3cdb23d0c9719a9f5b29d410d00a9b9e8297f07f

Authored by okahilak
Committed by GitHub
1 parent 3a8009a5
Exists in master

ADD: Send 'Coil at target' message (#287)

Not used by InVesalius, but useful when wanting to have the
information about coil being at the target or not outside
InVesalius.

Co-authored-by: Olli-Pekka Kahilakoski <olli-pekka.kahilakoski@aalto.fi>
Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
invesalius/data/viewer_volume.py
... ... @@ -911,8 +911,10 @@ class Viewer(wx.Panel):
911 911  
912 912 if thrdist and thrcoordx and thrcoordy and thrcoordz:
913 913 self.dummy_coil_actor.GetProperty().SetDiffuseColor(vtk_colors.GetColor3d('Green'))
  914 + Publisher.sendMessage('Coil at target', state=True)
914 915 else:
915 916 self.dummy_coil_actor.GetProperty().SetDiffuseColor(vtk_colors.GetColor3d('DarkOrange'))
  917 + Publisher.sendMessage('Coil at target', state=False)
916 918  
917 919 self.arrow_actor_list = arrow_roll_x1, arrow_roll_x2, arrow_yaw_z1, arrow_yaw_z2, \
918 920 arrow_pitch_y1, arrow_pitch_y2
... ...