Import 2017-06-07 23:51:09: master c8c4cd3b

Author Committer Branch Timestamp Parent
jcfr jcfr master 2014-06-04 17:04:30 master ccfee8a5
Changeset

ENH: Editor: paint using pixel mode if brush size is too small

For volumes with anisotropic spacing the minimum brush size in the paint
tool may be smaller than the pixel size. When a the brush size is smaller
than the pixel size then no pixels are filled when the user clicks on the
image, which is very confusing for the user.

Implemented solution: added a check in the PaintEffect tool so that if
the brush size is too small then pixels are painted using paintPixel mode.

From: Andras Lasso <lasso@queensu.ca>

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23307 3bd1e089-480b-0410-8dfb-8563597acbee

mod - Modules/Scripted/EditorLib/PaintEffect.py Diff File