Qudi
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
poimangui.PoiManagerGui Class Reference

This is the GUI Class for PoiManager. More...

Inheritance diagram for poimangui.PoiManagerGui:
Inheritance graph
[legend]
Collaboration diagram for poimangui.PoiManagerGui:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, config, kwargs)
 
def on_activate (self)
 Initializes the overall GUI, and establishes the connectors. More...
 
def mouseMoved (self, event)
 Handles any mouse movements inside the image. More...
 
def initMainUI (self)
 Definition, configuration and initialisation of the POI Manager GUI. More...
 
def initReorientRoiDialogUI (self)
 Definition, configuration and initialization fo the Reorient ROI Dialog GUI. More...
 
def on_deactivate (self)
 Deinitialisation performed during deactivation of the module.
 
def show (self)
 Make main window visible and put it above all other windows. More...
 
def get_confocal_image (self)
 Update the roi_map_data in poi manager logic, and use this updated data to redraw an image of the ROI.
 
def shortcut_to_roi_cb_manual (self)
 
def shortcut_to_roi_cb_centiles (self)
 
def refresh_roi_colorscale (self)
 Adjust the colorbar in the ROI xy image, and update the image with the new color scale. More...
 
def determine_cb_range (self)
 Process UI input to determine color bar range.
 
def set_new_poi (self)
 This method sets a new poi from the current crosshair position. More...
 
def delete_last_point (self)
 Delete the last track position of a chosen poi. More...
 
def delete_poi (self)
 Delete the active poi from the list of managed points. More...
 
def manual_update_poi (self)
 Manually adds a point to the trace of a given poi without refocussing, and uses that information to update sample position.
 
def move_poi (self)
 Manually move a POI to a new location in the sample map, but WITHOUT changing the sample position. More...
 
def toggle_tracking (self)
 
def goto_poi (self, key)
 Go to the last known position of poi <key>. More...
 
def populate_poi_list (self)
 Populate the dropdown box for selecting a poi. More...
 
def change_refind_method (self)
 Make appropriate changes in the GUI to reflect the newly chosen refind method. More...
 
def set_roi_name (self)
 Set the name of a ROI (useful when saving). More...
 
def change_poi_name (self)
 Change the name of a poi. More...
 
def handle_active_poi_ComboBox_index_change (self)
 Handle the change of index in the active POI combobox. More...
 
def select_poi_from_marker (self, poikey=None)
 Process the selection of a POI from click on POImark. More...
 
def update_poi_pos (self)
 
def toggle_follow (self)
 
def set_track_period (self)
 Change the progress bar and update the timer duration. More...
 
def make_new_roi (self)
 Start new ROI by removing all POIs and resetting the sample history. More...
 
def save_roi (self)
 Save ROI to file. More...
 
def load_roi (self)
 Load a saved ROI from file. More...
 
def open_reorient_roi_dialog (self)
 Open the dialog for reorienting the ROI. More...
 
def ref_a_at_crosshair (self)
 Set the newpos for ref A from the current crosshair position. More...
 
def ref_b_at_crosshair (self)
 Set the newpos for ref B from the current crosshair position. More...
 
def ref_c_at_crosshair (self)
 Set the newpos for ref C from the current crosshair position. More...
 
def do_roi_reorientation (self)
 Pass the old and new positions of refs A, B, C to PoiManager Logic to reorient every POI in the ROI.
 
def reset_reorientation_dialog (self)
 Reset all the values in the reorient roi dialog. More...
 
def reorientation_sanity_check (self)
 Calculate the difference in length between edges of old triangle defined by refs A, B, C and the new triangle.
 
def do_autofind_poi_procedure (self)
 Run the autofind_pois procedure in the POI Manager Logic to get all the POIs in the current ROI image. More...
 
def optimize_roi (self)
 Run the autofind_pois procedure in the POI Manager Logic to get all the POIs in the current ROI image. More...
 

Public Attributes

 roi_xy_image_data
 Configuring the dock widgets. More...
 
 roi_map_image
 
 roi_cb
 
 x_shift_plot
 Setting up display of sample shift plot.
 
 y_shift_plot
 
 z_shift_plot
 
 roi_map_xmin
 
 roi_map_xmax
 
 roi_map_ymin
 
 roi_map_ymax
 

Static Public Attributes

 poimanagerlogic1 = Connector(interface='PoiManagerLogic')
 
 confocallogic1 = Connector(interface='ConfocalLogic')
 

Detailed Description

This is the GUI Class for PoiManager.

Member Function Documentation

◆ change_poi_name()

def poimangui.PoiManagerGui.change_poi_name (   self)

Change the name of a poi.

◆ change_refind_method()

def poimangui.PoiManagerGui.change_refind_method (   self)

Make appropriate changes in the GUI to reflect the newly chosen refind method.

◆ delete_last_point()

def poimangui.PoiManagerGui.delete_last_point (   self)

Delete the last track position of a chosen poi.

◆ delete_poi()

def poimangui.PoiManagerGui.delete_poi (   self)

Delete the active poi from the list of managed points.

◆ do_autofind_poi_procedure()

def poimangui.PoiManagerGui.do_autofind_poi_procedure (   self)

Run the autofind_pois procedure in the POI Manager Logic to get all the POIs in the current ROI image.

◆ goto_poi()

def poimangui.PoiManagerGui.goto_poi (   self,
  key 
)

Go to the last known position of poi <key>.

◆ handle_active_poi_ComboBox_index_change()

def poimangui.PoiManagerGui.handle_active_poi_ComboBox_index_change (   self)

Handle the change of index in the active POI combobox.

◆ initMainUI()

def poimangui.PoiManagerGui.initMainUI (   self)

Definition, configuration and initialisation of the POI Manager GUI.

This init connects all the graphic modules, which were created in the *.ui file and configures the event handling between the modules.

◆ initReorientRoiDialogUI()

def poimangui.PoiManagerGui.initReorientRoiDialogUI (   self)

Definition, configuration and initialization fo the Reorient ROI Dialog GUI.

This init connects all the graphic modules which were created in the *.ui file and configures event handling.

◆ load_roi()

def poimangui.PoiManagerGui.load_roi (   self)

Load a saved ROI from file.

◆ make_new_roi()

def poimangui.PoiManagerGui.make_new_roi (   self)

Start new ROI by removing all POIs and resetting the sample history.

◆ mouseMoved()

def poimangui.PoiManagerGui.mouseMoved (   self,
  event 
)

Handles any mouse movements inside the image.

Parameters
eventEvent that signals the new mouse movement. This should be of type QPointF.

Gets the mouse position, converts it to a position scaled to the image axis and than calculates and updated the position to the current POI.

◆ move_poi()

def poimangui.PoiManagerGui.move_poi (   self)

Manually move a POI to a new location in the sample map, but WITHOUT changing the sample position.

This moves a POI relative to all the others.

◆ on_activate()

def poimangui.PoiManagerGui.on_activate (   self)

Initializes the overall GUI, and establishes the connectors.

This method executes the init methods for each of the GUIs.

◆ open_reorient_roi_dialog()

def poimangui.PoiManagerGui.open_reorient_roi_dialog (   self)

Open the dialog for reorienting the ROI.

◆ optimize_roi()

def poimangui.PoiManagerGui.optimize_roi (   self)

Run the autofind_pois procedure in the POI Manager Logic to get all the POIs in the current ROI image.

◆ populate_poi_list()

def poimangui.PoiManagerGui.populate_poi_list (   self)

Populate the dropdown box for selecting a poi.

◆ ref_a_at_crosshair()

def poimangui.PoiManagerGui.ref_a_at_crosshair (   self)

Set the newpos for ref A from the current crosshair position.

◆ ref_b_at_crosshair()

def poimangui.PoiManagerGui.ref_b_at_crosshair (   self)

Set the newpos for ref B from the current crosshair position.

◆ ref_c_at_crosshair()

def poimangui.PoiManagerGui.ref_c_at_crosshair (   self)

Set the newpos for ref C from the current crosshair position.

◆ refresh_roi_colorscale()

def poimangui.PoiManagerGui.refresh_roi_colorscale (   self)

Adjust the colorbar in the ROI xy image, and update the image with the new color scale.

Calls the refresh method from colorbar, which takes either the lowest and higherst value in the image or predefined ranges. Note that you can invert the colorbar if the lower border is bigger then the higher one.

◆ reset_reorientation_dialog()

def poimangui.PoiManagerGui.reset_reorientation_dialog (   self)

Reset all the values in the reorient roi dialog.

◆ save_roi()

def poimangui.PoiManagerGui.save_roi (   self)

Save ROI to file.

◆ select_poi_from_marker()

def poimangui.PoiManagerGui.select_poi_from_marker (   self,
  poikey = None 
)

Process the selection of a POI from click on POImark.

◆ set_new_poi()

def poimangui.PoiManagerGui.set_new_poi (   self)

This method sets a new poi from the current crosshair position.

◆ set_roi_name()

def poimangui.PoiManagerGui.set_roi_name (   self)

Set the name of a ROI (useful when saving).

◆ set_track_period()

def poimangui.PoiManagerGui.set_track_period (   self)

Change the progress bar and update the timer duration.

◆ show()

def poimangui.PoiManagerGui.show (   self)

Make main window visible and put it above all other windows.

Member Data Documentation

◆ roi_xy_image_data

poimangui.PoiManagerGui.roi_xy_image_data

Configuring the dock widgets.

Setting up display of ROI map xy image


The documentation for this class was generated from the following file: