MibView¶
- class views.MibView¶
Bases:
handleMIBVIEW - the main view class of MIB.
- Constructor Summary
- MibView(controller)¶
MIBVIEW - main view class constructor.
- Syntax:
obj = MibView(controller)- Input Arguments:
controller - handle to
MibControllerclass
- Property Summary
- brushCursorOffset¶
logical identifier whether or not to show the brush cursor; false until MibController.initialize picks the value up from the selected segmentation tool - the segmentation panel is built before that and already triggers updateBrushCursor, which needs a logical here
- brushCursorShow¶
- brushSizeNumbers¶
[x y] offsets for drawing of the brush cursor
- controller¶
handles to the model
- ctrlPressed¶
- gui¶
- handles¶
handles to mibController
- mibModel¶
handle to the main gui
- Method Summary
- addActiveDatasetPanel()¶
ADDACTIVEDATASETPANEL - add the Datasets panel with context menus and callbacks.
- Syntax:
panelHandles = obj.addActiveDatasetPanel()- Output Arguments:
panelHandles - [struct] handles to the active dataset panel widgets
Notes
The callbacks are added in the controller of the panel:
controllers.MibActiveDatasetduring its creation inMibController.initialize()andMibController.addGuiControllers()
- addDirContentsPanel()¶
ADDDIRCONTENTSPANEL - add the directory contents panel with context menus and callbacks.
- Syntax:
panelHandles = obj.addDirContentsPanel()- Output Arguments:
panelHandles - [struct] handles to the directory contents panel widgets
Notes
The callbacks are added in the controller of the panel:
controllers.MibDirContentsduring its creation inMibController.initialize()andMibController.addGuiControllers()
- addFijiConnectPanel()¶
ADDROIPANEL - add the Fiji Connect panel with context menus and callbacks.
- Syntax:
panelHandles = obj.addFijiConnectPanel()- Output Arguments:
panelHandles - [struct] handles to the ROI panel widgets
Notes
The callbacks are added in the controller of the panel:
controllers.MibFijiConnectduring its creation inMibController.initialize()andMibController.addGuiControllers()
- addQuickAccessBar()¶
ADDQUICKACCESSBAR - add quick access bar with shortcut buttons.
- Syntax:
qab = obj.addQuickAccessBar()- Output Arguments:
qab - [struct] handles to the quick access bar widgets
- addRibbonDataset(lazyInit)¶
ADDRIBBONDATASET - build the Dataset tab group and add it to the global ribbon.
- Syntax:
widgetHandles = obj.addRibbonDataset() widgetHandles = obj.addRibbonDataset(lazyInit)- Input Arguments:
lazyInit (optional) - [logical] when
true, only a placeholder is initialized; full rendering occurs on first tab activation viaMibController.globalTabGroup_SelectionCallback(default:false)
- Output Arguments:
widgetHandles - [struct] handles to the Dataset ribbon section widgets
- addRibbonHome()¶
ADDRIBBONHOME - build the Home tab group and add it to the global ribbon.
- Syntax:
homeHandles = obj.addRibbonHome()- Output Arguments:
homeHandles - [struct] handles to the Home ribbon section widgets
- addRibbonImage(lazyInit)¶
ADDRIBBONIMAGE - build the Image tab group and add it to the global ribbon.
- Syntax:
widgetHandles = obj.addRibbonImage() widgetHandles = obj.addRibbonImage(lazyInit)- Input Arguments:
lazyInit (optional) - [logical] when
true, only a placeholder is initialized; full rendering occurs on first tab activation viaMibController.globalTabGroup_SelectionCallback(default:false)
- Output Arguments:
widgetHandles - [struct] handles to the Image ribbon section widgets
- addRibbonMask(lazyInit)¶
ADDRIBBONMASK - build the Mask tab group and add it to the global ribbon.
- Syntax:
widgetHandles = obj.addRibbonMask() widgetHandles = obj.addRibbonMask(lazyInit)- Input Arguments:
lazyInit (optional) - [logical] when
true, only a placeholder is initialized; full rendering occurs on first tab activation viaMibController.globalTabGroup_SelectionCallback(default:false)
- Output Arguments:
widgetHandles - [struct] handles to the Mask ribbon section widgets
- addRibbonModel(lazyInit)¶
ADDRIBBONMODEL - build the Model tab group and add it to the global ribbon.
- Syntax:
widgetHandles = obj.addRibbonModel() widgetHandles = obj.addRibbonModel(lazyInit)- Input Arguments:
lazyInit (optional) - [logical] when
true, only a placeholder is initialized; full rendering occurs on first tab activation viaMibController.globalTabGroup_SelectionCallback(default:false)
- Output Arguments:
widgetHandles - [struct] handles to the Model ribbon section widgets
- addRibbonPlugins(lazyInit)¶
ADDRIBBONPLUGINS - build the Plugins tab group and add it to the global ribbon.
- Syntax:
widgetHandles = obj.addRibbonPlugins() widgetHandles = obj.addRibbonPlugins(lazyInit)- Input Arguments:
lazyInit (optional) - [logical] when
true, only a placeholder is initialized; full rendering occurs on first tab activation viaMibController.globalTabGroup_SelectionCallback(default:false)
- Output Arguments:
widgetHandles - [struct] handles to the Plugins ribbon section widgets
- addRibbonSelection(lazyInit)¶
ADDRIBBONSELECTION - build the Selection tab group and add it to the global ribbon.
- Syntax:
widgetHandles = obj.addRibbonSelection() widgetHandles = obj.addRibbonSelection(lazyInit)- Input Arguments:
lazyInit (optional) - [logical] when
true, only a placeholder is initialized; full rendering occurs on first tab activation viaMibController.globalTabGroup_SelectionCallback(default:false)
- Output Arguments:
widgetHandles - [struct] handles to the Selection ribbon section widgets
- addRibbonTabs()¶
ADDRIBBONTABS - add the global ribbon tab group and initialize all ribbon tabs.
- Syntax:
[ribbonHandles, ribbonWidgets] = obj.addRibbonTabs()- Output Arguments:
ribbonHandles - [struct] all ribbon panel handles
ribbonWidgets - [struct] widget handles for all ribbon tabs
- addRibbonTools(lazyInit)¶
ADDRIBBONTOOLS - build the Tools tab group and add it to the global ribbon.
- Syntax:
widgetHandles = obj.addRibbonTools() widgetHandles = obj.addRibbonTools(lazyInit)- Input Arguments:
lazyInit (optional) - [logical] when
true, only a placeholder is initialized; full rendering occurs on first tab activation viaMibController.globalTabGroup_SelectionCallback(default:false)
- Output Arguments:
widgetHandles - [struct] handles to the Tools ribbon section widgets
- addRoiPanel()¶
ADDROIPANEL - add the ROI panel with context menus and callbacks.
- Syntax:
panelHandles = obj.addRoiPanel()- Output Arguments:
panelHandles - [struct] handles to the ROI panel widgets
Notes
The callbacks are added in the controller of the panel:
controllers.MibRoiduring its creation inMibController.initialize()andMibController.addGuiControllers()
- addSegmentationPanel()¶
ADDSEGMENTATIONPANEL - add the Segmentation panel with context menus and callbacks.
- Syntax:
panelHandles = obj.addSegmentationPanel()- Output Arguments:
panelHandles - [struct] handles to the segmentation panel widgets
Notes
The callbacks are added in the controller of the panel:
controllers.MibSegmentationduring its creation inMibController.initialize()andMibController.addGuiControllers()
- addSelectionViewSettingsPanel()¶
ADDSELECTIONVIEWSETTINGSPANEL - add the Selection and View Settings panel with context menus and callbacks.
- Syntax:
panelHandles = obj.addSelectionViewSettingsPanel()- Output Arguments:
panelHandles - [struct] handles to the selection and view settings panel widgets
Notes
The callbacks are added in the controller of the panel:
controllers.MibSelectionduring its creation inMibController.initialize()andMibController.addGuiControllers()
- addStatusBar()¶
ADDSTATUSBAR - add status bar with status widgets to the main window.
- Syntax:
statusHandles = obj.addStatusBar()- Output Arguments:
statusHandles - [struct] handles to the status bar widgets
- doPostInitializationTasks()¶
DOPOSTINITIALIZATIONTASKS - perform post-initialization tasks after the main GUI window is visible.
- Syntax:
obj.doPostInitializationTasks()
- initializeMibView()¶
INITIALIZEMIBVIEW - initialize the main MIB view and its components.
- Syntax:
obj.initializeMibView()
- recenterGui()¶
RECENTERGUI - recenter the MIB window to the center of the display screen.
- Syntax:
obj.recenterGui()