A widget witch allows constructing gradients of multiple colors. More...
#include <OpenMS/VISUAL/MultiGradientSelector.h>
Public Slots | |
| void | stairsInterpolation (bool state) |
| sets what interpolation mode is used More... | |
Public Member Functions | |
| MultiGradientSelector (QWidget *parent=0) | |
| Constructor. More... | |
| ~MultiGradientSelector () | |
| Desctructor. More... | |
| const MultiGradient & | gradient () const |
| returns a const reference to the gradient More... | |
| MultiGradient & | gradient () |
| returns a mutable reference to the gradient More... | |
| void | setInterpolationMode (MultiGradient::InterpolationMode mode) |
| sets the interploation mode More... | |
| MultiGradient::InterpolationMode | getInterpolationMode () const |
| returns the interpolaion mode More... | |
Protected Member Functions | |
Reimpelented Qt events | |
| void | paintEvent (QPaintEvent *e) |
| void | mousePressEvent (QMouseEvent *e) |
| void | mouseMoveEvent (QMouseEvent *e) |
| void | mouseReleaseEvent (QMouseEvent *e) |
| void | mouseDoubleClickEvent (QMouseEvent *e) |
| void | keyPressEvent (QKeyEvent *e) |
| void | contextMenuEvent (QContextMenuEvent *e) |
Protected Attributes | |
| MultiGradient | gradient_ |
| Int | margin_ |
| Int | gradient_area_width_ |
| Int | lever_area_height_ |
| Int | selected_ |
| QColor | selected_color_ |
| bool | left_button_pressed_ |
A widget witch allows constructing gradients of multiple colors.
The above example image shows a MultiGradientSelector.
| MultiGradientSelector | ( | QWidget * | parent = 0 | ) |
Constructor.
Desctructor.
|
protected |
| MultiGradient::InterpolationMode getInterpolationMode | ( | ) | const |
returns the interpolaion mode
| const MultiGradient& gradient | ( | ) | const |
returns a const reference to the gradient
| MultiGradient& gradient | ( | ) |
returns a mutable reference to the gradient
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| void setInterpolationMode | ( | MultiGradient::InterpolationMode | mode | ) |
sets the interploation mode
|
slot |
sets what interpolation mode is used
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| OpenMS / TOPP release 1.11.1 | Documentation generated on Thu Nov 14 2013 11:19:35 using doxygen 1.8.5 |