gerbilvis / gerbil

Gerbil Hyperspectral Visualization and Analysis Framework
http://gerbilvis.org
GNU General Public License v3.0
43 stars 15 forks source link

Improved label painting in BandDock #15

Closed ypnos closed 9 years ago

ypnos commented 9 years ago

Right now, in the "Label" mode the user has a one-pixel cursor to change labelings. The left click action is add to label, right click is remove from label. However we want the right click to be usable for the new context menu from #14.

This enhancements consists of several parts.

  1. Enhance the ModeWidget to contain more controls when in Label mode. This is similar to the ProgressBar enhancement of the control widget in FalseColorDock. See falsecolor_sel.ui and how it is used for inspiration.
  2. In the new part of the widget, include the following items:
    • Several buttons depicting different cursor sizes to choose from
    • A rubber button which makes the cursor remove labeling (set label to zero) for all pixels of same label, shortcut 'x' for this button
  3. Implement different cursor sizes for drawing in the bandview. Ideally, the cursor would consist of a mask like this:

cursor 1:

1

cursor 2:

0110
1111
0110

Cursor 3:

0011100
0111110
1111111
1111111
1111111
0111110
0011100

When drawing labels, three things happen:

ypnos commented 9 years ago

Merged pull request #18