Qudi
|
This is the GUI Class for PoiManager. More...
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') | |
This is the GUI Class for PoiManager.
def poimangui.PoiManagerGui.change_poi_name | ( | self | ) |
Change the name of a poi.
def poimangui.PoiManagerGui.change_refind_method | ( | self | ) |
Make appropriate changes in the GUI to reflect the newly chosen refind method.
def poimangui.PoiManagerGui.delete_last_point | ( | self | ) |
Delete the last track position of a chosen poi.
def poimangui.PoiManagerGui.delete_poi | ( | self | ) |
Delete the active poi from the list of managed points.
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.
def poimangui.PoiManagerGui.goto_poi | ( | self, | |
key | |||
) |
Go to the last known position of poi <key>.
def poimangui.PoiManagerGui.handle_active_poi_ComboBox_index_change | ( | self | ) |
Handle the change of index in the active POI combobox.
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.
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.
def poimangui.PoiManagerGui.load_roi | ( | self | ) |
Load a saved ROI from file.
def poimangui.PoiManagerGui.make_new_roi | ( | self | ) |
Start new ROI by removing all POIs and resetting the sample history.
def poimangui.PoiManagerGui.mouseMoved | ( | self, | |
event | |||
) |
Handles any mouse movements inside the image.
event | Event 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.
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.
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.
def poimangui.PoiManagerGui.open_reorient_roi_dialog | ( | self | ) |
Open the dialog for reorienting the 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.
def poimangui.PoiManagerGui.populate_poi_list | ( | self | ) |
Populate the dropdown box for selecting a poi.
def poimangui.PoiManagerGui.ref_a_at_crosshair | ( | self | ) |
Set the newpos for ref A from the current crosshair position.
def poimangui.PoiManagerGui.ref_b_at_crosshair | ( | self | ) |
Set the newpos for ref B from the current crosshair position.
def poimangui.PoiManagerGui.ref_c_at_crosshair | ( | self | ) |
Set the newpos for ref C from the current crosshair position.
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.
def poimangui.PoiManagerGui.reset_reorientation_dialog | ( | self | ) |
Reset all the values in the reorient roi dialog.
def poimangui.PoiManagerGui.save_roi | ( | self | ) |
Save ROI to file.
def poimangui.PoiManagerGui.select_poi_from_marker | ( | self, | |
poikey = None |
|||
) |
Process the selection of a POI from click on POImark.
def poimangui.PoiManagerGui.set_new_poi | ( | self | ) |
This method sets a new poi from the current crosshair position.
def poimangui.PoiManagerGui.set_roi_name | ( | self | ) |
Set the name of a ROI (useful when saving).
def poimangui.PoiManagerGui.set_track_period | ( | self | ) |
Change the progress bar and update the timer duration.
def poimangui.PoiManagerGui.show | ( | self | ) |
Make main window visible and put it above all other windows.
poimangui.PoiManagerGui.roi_xy_image_data |
Configuring the dock widgets.
Setting up display of ROI map xy image