![]() |
Microscopy Image Browser 2.91
MIB
|
This class is responsible to store the previous versions of the dataset, to be used for Undo (Ctrl+Z) command. More...


Public Member Functions | |
| mibImageUndo (max_steps, max3d_steps) | |
| mibImageUndo class constructor | |
| function | clearContents () |
| Set all elements of the class to default values. | |
| function | setNumberOfHistorySteps (max_steps, max3d_steps) |
| setNumberOfHistorySteps(obj, max_steps, max3d_steps) Set number of history steps for undo | |
| function | store (type, data, meta, options) |
| Store the data. | |
| function [ type , data , meta , options ] = | undo (index) |
| Recover the stored dataset. | |
| function | removeItem (index) |
| Delete a stored item. | |
| function | replaceItem (index, type, data, meta, options) |
| Replace the stored item with a new dataset. | |
Public Attributes | |
| enableSwitch | |
| Enable/disable undo operation a variable to store whether Undo is available or not: | |
| type | |
| a variable to store type of the data: 'image', 'model', 'selection', 'mask', 'labels', 'measurement','everything' (for imageData.model_type=='uint6' only) | |
| undoList | |
| a structure to store the list of the actions for undo | |
| max_steps | |
| a variable to limit maximal number of history steps | |
| max3d_steps | |
| a variable to limit maximal number of history for the 3D datasets | |
| undoIndex | |
| a variable to keep index of NaN (currently restored dataset) element of the undoList structure | |
| prevUndoIndex | |
| a variable to keep previous index of NaN element of the undoList structure, for use with Ctrl+Z | |
| index3d | |
| an array of indeces of the 3D datasets | |
| EVENT | none |
| none | |
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. | |
This class is responsible to store the previous versions of the dataset, to be used for Undo (Ctrl+Z) command.
| mibImageUndo.mibImageUndo | ( | max_steps, | |
| max3d_steps ) |
mibImageUndo class constructor
Constructor for the mibImageUndo class. Create a new instance of the class with default parameters
| max_steps | maximal length of the history log |
| max3d_steps | maximal length of the 3D history log |
References max3d_steps, and max_steps.
| function mibImageUndo.clearContents | ( | ) |
Set all elements of the class to default values.
Examples:
Referenced by store().

| function mibImageUndo.removeItem | ( | index | ) |
Delete a stored item.
| index | [optional] - index of the item to remove, when empty will remove the last entry |
Examples:
| function mibImageUndo.replaceItem | ( | index, | |
| type, | |||
| data, | |||
| meta, | |||
| options ) |
Replace the stored item with a new dataset.
| index | an index of the item to replace, when empty replace the last entry |
| type | a string that defines the type of the new dataset: 'image', 'model', 'selection', 'mask', 'everything' (for imageData.model_type=='uint6' only), or 'mibImage' |
| data | a variable with the new dataset to store |
| meta | [optional] imageData.meta containers.Map, not required for 'model', 'selection', 'mask', 'everything', can be NaN |
| options | a structure with fields:
|
Examples:
References handle.sort, and type.
| function mibImageUndo.setNumberOfHistorySteps | ( | max_steps, | |
| max3d_steps ) |
setNumberOfHistorySteps(obj, max_steps, max3d_steps) Set number of history steps for undo
References max3d_steps, and max_steps.
| function mibImageUndo.store | ( | type, | |
| data, | |||
| meta, | |||
| options ) |
Store the data.
| type | a string that defines the type of the stored data: 'image', 'model', 'selection', 'mask', 'everything' (for imageData.model_type=='uint6' only), labels, lines3d, mibImage |
| data | a cell/cell array with actual 3D or 2D dataset to store, or with a structure for labels or with Lines3D class for lines3d object |
| meta | [optional] a imageData.meta containers.Map, not required for 'model', 'selection', 'mask', 'everything', can be NaN |
| options | a structure with fields:
|
Examples:
References clearContents(), and type.

| function [ type , data , meta , options ] = mibImageUndo.undo | ( | index | ) |
Recover the stored dataset.
| index | [Optional] - index of the dataset to restore. When omitted return the last stored dataset |
| type | a string that defines the type of the stored data: 'image', 'model', 'selection', 'mask', 'everything' (for imageData.model_type=='uint6' only) |
| data | a variable where to retrieve the dataset |
| meta | [optional, NaN for 2D] a imageData.meta containers.Map, not required for 'model', 'selection', 'mask', 'everything' |
| options | a structure with fields:
|
Examples:
References type.
| mibImageUndo.enableSwitch |
Enable/disable undo operation a variable to store whether Undo is available or not:
| mibImageUndo.index3d |
an array of indeces of the 3D datasets
| mibImageUndo.max3d_steps |
a variable to limit maximal number of history for the 3D datasets
Referenced by mibImageUndo(), and setNumberOfHistorySteps().
| mibImageUndo.max_steps |
a variable to limit maximal number of history steps
Referenced by mibImageUndo(), and setNumberOfHistorySteps().
| EVENT mibImageUndo.none |
none
| mibImageUndo.prevUndoIndex |
a variable to keep previous index of NaN element of the undoList structure, for use with Ctrl+Z
| mibImageUndo.type |
a variable to store type of the data: 'image', 'model', 'selection', 'mask', 'labels', 'measurement','everything' (for imageData.model_type=='uint6' only)
Referenced by replaceItem(), store(), and undo().
| mibImageUndo.undoIndex |
a variable to keep index of NaN (currently restored dataset) element of the undoList structure
| mibImageUndo.undoList |
a structure to store the list of the actions for undo
image) obj.mibModel.sessionSettings.SAMsegmenter.Points;