Skip to content

Commit

Permalink
mavpicviewer: mosaic loses ability to set poi directly
Browse files Browse the repository at this point in the history
  • Loading branch information
rmackay9 committed Oct 10, 2024
1 parent 65cb057 commit 2e8feb5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 31 deletions.
30 changes: 0 additions & 30 deletions MAVProxy/tools/mavpicviewer/mavpicviewer_mosaic.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,6 @@ def on_key(self, event):
wx.CallAfter(self.set_filenunmber, self.filenumber-5)
elif keycode == wx.WXK_DOWN:
wx.CallAfter(self.set_filenunmber, self.filenumber+5)
elif keycode == ord('p') or keycode == ord('P'):
wx.CallAfter(self.add_poi, self.filenumber)
elif keycode == ord('c') or keycode == ord('C'):
wx.CallAfter(self.clear_poi, self.filenumber)

# process window events
def on_image_click(self, event):
Expand Down Expand Up @@ -358,32 +354,6 @@ def set_filenunmber(self, filenumber, notify_image_viewer=True):
# notify image viewer
self.send_comm_object(mpv.SetFilenumber(self.filenumber))

# add POI to image
def add_poi(self, filenumber):
"""add POI to image"""
# return immediately if filenumber is invalid
if filenumber < 0 or filenumber >= len(self.filelist):
return

# update POI dictionary -- FIXME!
self.poi_dict[filenumber] = True

# update highlighting
self.update_highlighting(filenumber)

# clear POI from image
def clear_poi(self, filenumber):
"""clear POI from image"""
# return immediately if filenumber is invalid
if filenumber < 0 or filenumber >= len(self.filelist):
return

# update POI dictionary -- FIXME!
self.poi_dict[filenumber] = False

# update highlighting and scroll into view
self.update_highlighting(filenumber)

# update highlighting for an image
def update_highlighting(self, filenumber):
"""update highlighting for an image"""
Expand Down
1 change: 0 additions & 1 deletion MAVProxy/tools/mavpicviewer/mavpicviewer_shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ def __init__(self, filenumber, loc):


# set POI for the given filenumber
# if poi is None then the entire image should be used
class SetPOI:
def __init__(self, filenumber, poi):
self.filenumber = filenumber
Expand Down

0 comments on commit 2e8feb5

Please sign in to comment.