mathworks / volume-labeling-widgets

Enable custom workflows for labeling volumes and isosurfaces in your MATLAB app.
Other
2 stars 1 forks source link

Proposed Brush updates #20

Closed rjackey closed 1 year ago

rjackey commented 1 year ago

o +wt+tool\Brush.m - in updatePointer() I call figure(obj.CurrentFigure) to ensure that the figure is in focus when the mouse is moved over it (otherwise weird things happen on other figures that happen to be in focus, and the unfocused figure is not updated); in updateBrushIndicator() I switched the comment from line 223 to 222, to ensure a minimal brush size of 3 pixels; in applyPointerTrailToMask() I added undo/redo functionality to preserve the last 30 mask updates; in getEditingPointer() I updated the cross-hairs so that they are shorter and hide fewer image pixels beneath them.

rjackey commented 1 year ago

@altmany I have included your code for "undo" with the brush, however I assume some additional code on the app side is required to make that work. I've got a property "EnableUndo" defaulting to false that can be toggled on to enable creating the undo structure.