widgets#
A set of custom widgets
- class LandmarksSelectorDialog(src_folder, params=None, app=None)[source]#
Bases:
WizardDialog
- property colors#
- property current_color#
- property current_marker#
- property style_sheets#
- class OrthoViewer(img=None, parent=None)[source]#
Bases:
object
Orthogonal viewer for 3D images
This is a class that allows to visualize 3D images in 3 orthogonal views.
- plot_orthogonal_views(img=None, parent=None)[source]#
Plot the orthogonal views of the image
- Parameters:
img (np.ndarray) – The image to plot. If None, the image set at initialization will be used
parent (QWidget) – The parent widget to plot into. If None, the parent set at initialization will be used
Returns
- setup(img, params, parent=None)[source]#
Initialize the viewer after the object has been created
- Parameters:
img (np.ndarray) – The 3D image to visualize
params (UiParameter) – The parameters object
parent (QWidget) – The parent widget
Returns
- update_ranges(ranges)[source]#
Update the ranges (min, max) for each axis of the viewer
- Parameters:
ranges (list(tuple(float, float)))
Returns
- property depth#
Get the depth of the image .. rubric:: Returns
- property height#
Get the height of the image .. rubric:: Returns
- property shape#
Get the shape of the image .. rubric:: Returns
- property width#
Get the width of the image .. rubric:: Returns
- class PatternDialog(src_folder, params=None, app=None, min_file_number=10, tile_extension='.ome.tif')[source]#
Bases:
WizardDialog
- class PerfMonitor(parent, fast_period, slow_period, *args, **kwargs)[source]#
Bases:
QWidget
- cpu_vals_changed#
- gpu_vals_changed#
- percent_thread#
The percentage of the CPU used by the most active process of ClearMap
- class ProgressWatcher(max_progress=100, main_max_progress=1, parent=None)[source]#
Bases:
QWidget
A QWidget that watches the progress of a process. It uses signals to update the progress bar and the text The main setup methods are setup and prepare_for_substep It is meant to be used in conjunction with a ProgressWatcherDialog to which it is connected through its signals
- prepare_for_substep(step_length, pattern, step_name)[source]#
- Parameters:
step_name – str
step_length – int The number of steps in the operation
pattern – str or re.Pattern or (str, re.Pattern) the text to look for in the logs to check for progress
Returns
- setup(main_step_name, main_step_length, sub_step_length=0, pattern=None)[source]#
Post initialisation of the
- Parameters:
main_step_name
main_step_length
sub_step_length
pattern
Returns
- aborted#
- finished#
- main_max_changed#
- property main_max_progress#
- main_progress_changed#
- property main_step_name#
- main_step_name_changed#
- max_changed#
- property max_progress#
- progress_changed#
- property sub_step_name#
- sub_step_name_changed#
- class SamplePickerDialog(src_folder, params=None, app=None)[source]#
Bases:
WizardDialog
- class StructurePickerWidget(parent=None)[source]#
Bases:
QTreeWidget
- DARK_COLOR = '#2E3436'#
- LIGHT_COLOR = 'white'#
- class StructureSelector(src_folder, params=None, app=None)[source]#
Bases:
WizardDialog