Microscopy Image Browser 2.91
MIB
Loading...
Searching...
No Matches
mibAnnotationsController Class Reference

a controller class for the list of annotations available via MIB->Menu->Models->Annotations->List of annotations More...

Inheritance diagram for mibAnnotationsController:
Collaboration diagram for mibAnnotationsController:

Public Member Functions

 mibAnnotationsController (mibModel)
 
function  closeWindow ()
 closing mibAnnotationsController window
 
function  updateWidgets ()
 update annotation table
 
function  loadBtn_Callback ()
 load annotation from a file or import from Matlab
 
function  saveBtn_Callback ()
 save annotations to a file or export to Matlab
 
function  saveAnnotationsToFile (labelText, labelPosition, labelValue)
 save annotations to a file
 
function  deleteBtn_Callback ()
 delete all annotations
 
function  annotationTable_CellSelectionCallback (Indices)
 a callback for cell selection of obj.View.handles.annotationTable
 
function  annotationTable_CellEditCallback (Indices)
 a callback for cell edit of obj.View.handles.annotationTable
 
function  precisionEdit_Callback ()
 callback for modification of the precision parameter for the annotation values
 
function  tableContextMenu_cb (parameter)
 callbacks for the context menu of obj.View.handles.annotationTable
 
function  mibAnnotationsGUI_KeyPressFcn (eventdata)
 callback from key presses within the mibAnnotationsGUI
 
function  annotationTable_KeyPressFcn (eventdata)
 callback from key pressed within the obj.View.handles.annotationTable
 
function  resortTablePopup_Callback ()
 Resort the list of annotation labels.
 
function  startController (controllerName, varargin)
 start a child controller using provided name, see more in see more in mibController.startController
 
function id = findChildId (childName)
 find id of a child controller, see more in mibController.findChildId
 
function  settingsBtn_Callback ()
 define additional settings for the annotations
 

Static Public Member Functions

static function  ViewListner_Callback2 (obj, src, evnt)
 
static function  purgeControllers (obj, src, evnt)
 find index of the child controller and purge it
 

Public Attributes

 mibModel
 handles to the model
 
 View
 handle to the view
 
 listener
 a cell array with handles to listeners
 
 imarisOptions
 a structure with export options for imaris .radii - number with default radius .color - default color [Red Green Blue Alpha] in range from 0 to 1; .name - default name
 
 indices
 indices of selected annotations in the table
 
 jScroll
 java handle to the scroll bar of obj.View.handles.annotationTable
 
 jTable
 java handle to the obj.View.handles.annotationTable
 
 batchModifyExpressionOperation
 operation
 
 batchModifyExpressionFactor
 factor to modify value
 
 childControllers
 list of opened subcontrollers
 
 childControllersIds
 a cell array with names of initialized child controllers
 
 BatchOpt
 BatchOpt structure.
 
EVENT closeEvent
 > Description of events event firing when window is closed
 
- Public Attributes inherited from handle
 addlistener
 Creates a listener for the specified event and assigns a callback function to execute when the event occurs.
 
 notify
 Broadcast a notice that a specific event is occurring on a specified handle object or array of handle objects.
 
 delete
 Handle object destructor method that is called when the object's lifecycle ends.
 
 disp
 Handle object disp method which is called by the display method. See the MATLAB disp function.
 
 display
 Handle object display method called when MATLAB software interprets an expression returning a handle object that is not terminated by a semicolon. See the MATLAB display function.
 
 findobj
 Finds objects matching the specified conditions from the input array of handle objects.
 
 findprop
 Returns a meta.property objects associated with the specified property name.
 
 fields
 Returns a cell array of string containing the names of public properties.
 
 fieldnames
 Returns a cell array of string containing the names of public properties. See the MATLAB fieldnames function.
 
 isvalid
 Returns a logical array in which elements are true if the corresponding elements in the input array are valid handles. This method is Sealed so you cannot override it in a handle subclass.
 
 eq
 Relational functions example. See details for more information.
 
 transpose
 Transposes the elements of the handle object array.
 
 permute
 Rearranges the dimensions of the handle object array. See the MATLAB permute function.
 
 reshape
 hanges the dimensions of the handle object array to the specified dimensions. See the MATLAB reshape function.
 
 sort
 ort the handle objects in any array in ascending or descending order.
 

Detailed Description

a controller class for the list of annotations available via MIB->Menu->Models->Annotations->List of annotations

Constructor & Destructor Documentation

◆ mibAnnotationsController()

mibAnnotationsController.mibAnnotationsController ( mibModel)

References handle.addlistener, findjobj(), and mibModel.

Referenced by startController().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ annotationTable_CellEditCallback()

function mibAnnotationsController.annotationTable_CellEditCallback ( Indices)

a callback for cell edit of obj.View.handles.annotationTable

Parameters
Indicesindex of the selected cell, returned by eventdata.Indices structure of GUI

References handle.notify.

◆ annotationTable_CellSelectionCallback()

function mibAnnotationsController.annotationTable_CellSelectionCallback ( Indices)

a callback for cell selection of obj.View.handles.annotationTable

Parameters
Indicesindex of the selected cell, returned by eventdata.Indices structure of GUI

◆ annotationTable_KeyPressFcn()

function mibAnnotationsController.annotationTable_KeyPressFcn ( eventdata)

callback from key pressed within the obj.View.handles.annotationTable

Required fields of eventdata:

◆ closeWindow()

function mibAnnotationsController.closeWindow ( )

closing mibAnnotationsController window

References handle.isvalid, and handle.notify.

◆ deleteBtn_Callback()

function mibAnnotationsController.deleteBtn_Callback ( )

delete all annotations

References handle.notify.

◆ findChildId()

function id = mibAnnotationsController.findChildId ( childName)

find id of a child controller, see more in mibController.findChildId

Parameters
childNamename of a child controller
Return values
idindex of the requested child controller or empty if it is not open

◆ loadBtn_Callback()

function mibAnnotationsController.loadBtn_Callback ( )

load annotation from a file or import from Matlab

References amiraLandmarks2points(), handle.disp, mib_uigetfile(), mibInputMultiDlg(), N, handle.notify, Labels.replaceLabels(), and handle.sort.

Here is the call graph for this function:

◆ mibAnnotationsGUI_KeyPressFcn()

function mibAnnotationsController.mibAnnotationsGUI_KeyPressFcn ( eventdata)

callback from key presses within the mibAnnotationsGUI

Required fields of eventdata:

◆ precisionEdit_Callback()

function mibAnnotationsController.precisionEdit_Callback ( )

callback for modification of the precision parameter for the annotation values

References editbox_Callback(), and handle.notify.

Here is the call graph for this function:

◆ purgeControllers()

static function mibAnnotationsController.purgeControllers ( obj,
src,
evnt )
static

find index of the child controller and purge it

Required fields of obj:

◆ resortTablePopup_Callback()

function mibAnnotationsController.resortTablePopup_Callback ( )

Resort the list of annotation labels.

◆ saveAnnotationsToFile()

function mibAnnotationsController.saveAnnotationsToFile ( labelText,
labelPosition,
labelValue )

save annotations to a file

Parameters
labelTextlabels of annotations, cell array
labelPositiona matrix with coordinates for the annotations
labelValuean array with annotation values

References max, and mibInputMultiDlg().

Here is the call graph for this function:

◆ saveBtn_Callback()

function mibAnnotationsController.saveBtn_Callback ( )

save annotations to a file or export to Matlab

References mibInputDlg().

Here is the call graph for this function:

◆ settingsBtn_Callback()

function mibAnnotationsController.settingsBtn_Callback ( )

define additional settings for the annotations

References mibInputMultiDlg(), and handle.notify.

Here is the call graph for this function:

◆ startController()

function mibAnnotationsController.startController ( controllerName,
varargin )

start a child controller using provided name, see more in see more in mibController.startController

Parameters
controllerNamea string with name of a child controller, for example, mibImageAdjController
vararginadditional optional controllers or parameters

References handle.addlistener, and mibAnnotationsController().

Here is the call graph for this function:

◆ tableContextMenu_cb()

function mibAnnotationsController.tableContextMenu_cb ( parameter)

callbacks for the context menu of obj.View.handles.annotationTable

Parameters
parametera string with selected option 'Add' - add annotations 'Modify' - batch modify selected annotations 'Rename' - rename selected annotations 'Jump' - jump to the selected annotation 'Count' - count annotations 'Clipboard' - copy selected annotations to the system clipboard 'CropPatches' - crop patches from image around selected annotations 'Mask' - copy selected annotations to the mask layer 'Interpolate' - interpolate between two selected annotations; add result as new annotations 'Export' - export/save annotations to matlab or to a file 'Imaris' - export annotations to Imaris 'OrderTop', 'OrderUp', 'OrderDown', 'OrderBottom' - change order of the annotation in the list 'Delete' - delete selected annotations

References A(), cell2clip(), max, mibInputMultiDlg(), mibSetImarisSpots(), min, handle.notify, and handle.sort.

Here is the call graph for this function:

◆ updateWidgets()

function mibAnnotationsController.updateWidgets ( )

update annotation table

◆ ViewListner_Callback2()

static function mibAnnotationsController.ViewListner_Callback2 ( obj,
src,
evnt )
static

Member Data Documentation

◆ batchModifyExpressionFactor

mibAnnotationsController.batchModifyExpressionFactor

factor to modify value

◆ batchModifyExpressionOperation

mibAnnotationsController.batchModifyExpressionOperation

operation

◆ BatchOpt

mibAnnotationsController.BatchOpt

BatchOpt structure.

◆ childControllers

mibAnnotationsController.childControllers

list of opened subcontrollers

◆ childControllersIds

mibAnnotationsController.childControllersIds

a cell array with names of initialized child controllers

◆ closeEvent

EVENT mibAnnotationsController.closeEvent

> Description of events event firing when window is closed

Events
closeEvent

◆ imarisOptions

mibAnnotationsController.imarisOptions

a structure with export options for imaris .radii - number with default radius .color - default color [Red Green Blue Alpha] in range from 0 to 1; .name - default name

◆ indices

mibAnnotationsController.indices

indices of selected annotations in the table

◆ jScroll

mibAnnotationsController.jScroll

java handle to the scroll bar of obj.View.handles.annotationTable

◆ jTable

mibAnnotationsController.jTable

java handle to the obj.View.handles.annotationTable

◆ listener

mibAnnotationsController.listener

a cell array with handles to listeners

◆ mibModel

mibAnnotationsController.mibModel

handles to the model

Referenced by mibAnnotationsController().

◆ View

mibAnnotationsController.View

handle to the view


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