ui/ImageView.py
def show_box_properties_dialog(self, box: GraphicsBoundingBox):
        """
        Construct a dialog for bounding box properties
        :param box: Graphical bounding box object to manipulate
        :return: None
        """
        self.selected_box = box.source
        self.redraw()

        box_json_before = box.source.get_json()
        box_label_before = box.source.label

        dialog = PropertiesDialog(box.source)
        dialog.setup_form(self.pixmap_src, self.redraw)
        dialog.set_delete_callback(self.delete_box)

        dialog.setModal(True)
        dialog.exec_()

        box_json_after = box.source.get_json()
        if box_json_after != box_json_before:
            box.source.observer = self.observer  # Update observer field
            box.source.strength = utils.get_observer_confidence(box.source.observer)  # Update strength field
            modify_box(box_json_after, box.source.observation_uuid, box.source.association_uuid)  # Call modification request
            update_imaged_moment_entry(self.moment)  # Update tree

        self.pt_1 = None
        self.pt_2 = None

        self.selected_box = None
        self.redraw()

        Construct a dialog for bounding box properties
        :param box: Graphical bounding box object to manipulate
        :return: None
        
Construct a dialog for bounding box properties
Construct a dialog for bounding box properties
def show_box_properties_dialog(self, box: GraphicsBoundingBox):
        self.selected_box = box.source
        self.redraw()
        box_json_before = box.source.get_json()
        box_label_before = box.source.label
        dialog = PropertiesDialog(box.source)
        dialog.setup_form(self.pixmap_src, self.redraw)
        dialog.set_delete_callback(self.delete_box)
        dialog.setModal(True)
        dialog.exec_()
        box_json_after = box.source.get_json()
        if box_json_after != box_json_before:
            box.source.observer = self.observer  
            box.source.strength = utils.get_observer_confidence(box.source.observer)  
            modify_box(box_json_after, box.source.observation_uuid, box.source.association_uuid)  
            update_imaged_moment_entry(self.moment)  
        self.pt_1 = None
        self.pt_2 = None
        self.selected_box = None
        self.redraw()
def show_box_properties_dialog ( self , box : GraphicsBoundingBox ) : self . selected_box = box . source self . redraw ( ) box_json_before = box . source . get_json ( ) box_label_before = box . source . label dialog = PropertiesDialog ( box . source ) dialog . setup_form ( self . pixmap_src , self . redraw ) dialog . set_delete_callback ( self . delete_box ) dialog . setModal ( True ) dialog . exec_ ( ) box_json_after = box . source . get_json ( ) if box_json_after != box_json_before : box . source . observer = self . observer box . source . strength = utils . get_observer_confidence ( box . source . observer ) modify_box ( box_json_after , box . source . observation_uuid , box . source . association_uuid ) update_imaged_moment_entry ( self . moment ) self . pt_1 = None self . pt_2 = None self . selected_box = None self . redraw ( )
Construct a dialog for bounding box properties
Construct a dialog for bounding box properties
"""
        Construct a dialog for bounding box properties
        :param box: Graphical bounding box object to manipulate
        :return: None
        """ # Update observer field # Update strength field # Call modification request # Update tree
None
self
box
GraphicsBoundingBox
Graphical bounding box object to manipulate
Graphical bounding box object to manipulate